mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 11:47:23 +02:00
* initial create-docusaurus impl * cleanup * @docusaurus/init renamed to create-docusaurus * 0.0.6 * update lockfile * fix lint * remove npm2yarn for "npm init" because npm2yarn doesn't convert it and yarn result fails to execute * prettier * add correct version * prettier * prettier * prettier * prettier * fix annoying --config .prettierrc issue
35 lines
645 B
Markdown
35 lines
645 B
Markdown
---
|
|
sidebar_position: 1
|
|
---
|
|
|
|
# Tutorial Intro
|
|
|
|
Let's discover **Docusaurus in less than 5 minutes**.
|
|
|
|
## Getting Started
|
|
|
|
Get started by **creating a new site**.
|
|
|
|
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
|
|
|
|
## Generate a new site
|
|
|
|
Generate a new Docusaurus site using the **classic template**:
|
|
|
|
```shell
|
|
npm init docusaurus@latest my-website classic
|
|
```
|
|
|
|
## Start your site
|
|
|
|
Run the development server:
|
|
|
|
```shell
|
|
cd my-website
|
|
|
|
npx docusaurus start
|
|
```
|
|
|
|
Your site starts at `http://localhost:3000`.
|
|
|
|
Open `docs/intro.md` and edit some lines: the site **reloads automatically** and display your changes.
|