Skip to main content
Docusaurus

docusaurus

Install

  1. Install Node..js from https://nodejs.org/en/download/
  2. Change to the directory where the Docusaurus instance should be
  3. run npx create-docusaurus@latest, set instance name and template (classic)
  4. How to Azure Staic WebApp #11: Share Content with Docusaurus & Azure Static Web Apps - DEV Community
  5. Run npx create-docusaurus@latest website-justinn classic --typescript

Run

  1. Build npm run build
  2. Build and start npm run start
  3. Start npm run serve
  4. Build npm run docusaurus build
  5. Build and start npm docusaurus start

Update

Get update command by using npx docusaurus --version, if there is a newer version it will be provide the command:

Example: npm i @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/theme-live-codeblock@latest @docusaurus/module-type-aliases@latest @docusaurus/tsconfig@lates