Skip to main content

How to setup docusaurus

· One min read
  • setup project
  • setup i18n
    • difference between start and serve with i18n
  • create new page

setup i18n

npm i
npx docusaurus write-translations
# build after translations write
npm run build
npm run serve

translate blog

mydocuproject/
├── blog
│ └── 2025-09-27-setup-docusaurus/
│ └── index.md
├── docs
│ └── intro.md
├── i18n
│ ├── en
│ └── it
│ └── docusaurus-plugin-content-blog/
│ └── 2025-09-27-setup-docusaurus/
│ └── index.md
└── ...

sources