From 3adc965dd09490b7efa1cce9f09b0a3b30970277 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 17:30:39 +0800 Subject: ✨优化文档 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/1.introduction/1.getting-started.md | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docs/.docs/content/1.introduction/1.getting-started.md (limited to 'docs/.docs/content/1.introduction/1.getting-started.md') diff --git a/docs/.docs/content/1.introduction/1.getting-started.md b/docs/.docs/content/1.introduction/1.getting-started.md new file mode 100644 index 0000000..4c08c14 --- /dev/null +++ b/docs/.docs/content/1.introduction/1.getting-started.md @@ -0,0 +1,57 @@ +# Getting Started + +From your Markdown files to a deployed website in few minutes. + +## Play online + +You can start playing with Docus in your browser using Stackblitz: + +:button-link[Play on StackBlitz]{size="small" icon="IconStackBlitz" href="https://stackblitz.com/github/nuxt-themes/docus-starter" blank} + +## Create a new project + +1. Start a fresh Docus project with: + +```bash [npx] +npx nuxi@latest init docs -t themes/docus +``` + +2. Install the dependencies in the `docs` folder: + +::code-group + + ```bash [npm] + npm install + ``` + + ```bash [yarn] + yarn install + ``` + + ```bash [pnpm] + pnpm install --shamefully-hoist + ``` + +:: + +3. Run the `dev` command to start Docus in development mode: + +::code-group + +```bash [npm] +npm run dev +``` + +```bash [yarn] +yarn dev +``` + +```bash [pnpm] +pnpm run dev +``` + +:: + +::alert{type="success"} +✨ Well done! A browser window should automatically open for +:: -- cgit v1.2.3-70-g09d2