Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.81 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.81 KB

Note

This repository serves as an issue tracker. The readme is mirrored from, and the source code is at monorepo/packages/md-app. Make pull requests to the monorepo.

Lix markdown app

This markdown app illustrates the benefits of using Lix in the context of document writing.

Development

  1. Clone the monorepo
  2. Install dependencies pnpm install
  3. Build pnpm --filter md-app... build
  4. Start dev mode pnpm --filter md-app dev
  5. (Optional) Add a .env file with OPENAI_API_KEY="***" and run pnpm --filter lix-website-server dev to enable AI features.

Update Plate editor

The editor is based on the AI template of the Plate editor from udecode. To update the editor, follow these steps:

  1. Navigate to the md-app directory with cd packages/md-app
  2. Update @udecode/ dependencies with npm-check-updates or ncu
  3. Install the latest version of the dependencies with
npx npm-check-updates '/@udecode\/plate.*/' -u
npm install

Note: This will only update the dependencies that start with @udecode/plate. You may need to update other dependencies manually or by running ncu -u for all dependencies.

  1. Update the ui components and plugins by running npx shadcx@latest add plate/editor-ai to reinstall the latest version of the editor template.
  2. Check the changes in source control to exclude any unwanted changes (e.g. files you modified before).
  3. Test the editor in the app to ensure that it works as expected.

Check the video guide on how to update the editor.

Taking a look at the Plates Breaking Changes and recent Releases might be helpful.