Version: 1.14.6
Create a New Site
In this section, we'll get our Docusaurus site up and running for local development. The process only takes a few minutes.
Scaffold the Site
- Execute the
docusaurus-init
command in your terminal.
docusaurus-init
The
Linking dependencies...
step might take a while, but it will finish eventually.
The following contents will be created in your current directory. Some example documentation pages (under docs
) and blog posts (under website/blog
) are included.
โโโ Dockerfile
โโโ docker-compose.yml
โโโ docs
โ โโโ doc1.md
โ โโโ doc2.md
โ โโโ doc3.md
โ โโโ exampledoc4.md
โ โโโ exampledoc5.md
โโโ website
โโโ README.md
โโโ blog
โ โโโ 2016-03-11-blog-post.md
โ โโโ 2017-04-10-blog-post-two.md
โ โโโ 2017-09-25-testing-rss.md
โ โโโ 2017-09-26-adding-rss.md
โ โโโ 2017-10-24-new-version-1.0.0.md
โโโ core
โ โโโ Footer.js
โโโ package.json
โโโ pages
โ โโโ en
โ โโโ help.js
โ โโโ index.js
โ โโโ users.js
โโโ sidebars.json
โโโ siteConfig.js
โโโ static
โ โโโ css
โ โ โโโ custom.css
โ โโโ img
โ โโโ docusaurus.svg
โ โโโ favicon
โ โ โโโ favicon.ico
โ โโโ favicon.png
โ โโโ oss_logo.png
โโโ yarn.lock
- Run
cd website
to go into thewebsite
directory. - Run
npm start
oryarn start
.
A browser window will open up at http://localhost:3000.
Congratulations, you have just made your first Docusaurus site! Click around the pages to get a feel for it.