mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 19:27:48 +02:00
Improve directory file tree (#614)
This commit is contained in:
parent
38f93e750a
commit
327ef85770
5 changed files with 92 additions and 92 deletions
|
@ -22,22 +22,22 @@ Along with previously existing files and directories, your root directory will n
|
||||||
```bash
|
```bash
|
||||||
root-of-repo
|
root-of-repo
|
||||||
├── docs-examples-from-docusaurus
|
├── docs-examples-from-docusaurus
|
||||||
│ └── doc1.md
|
│ ├── doc1.md
|
||||||
│ └── doc2.md
|
│ ├── doc2.md
|
||||||
│ └── doc3.md
|
│ ├── doc3.md
|
||||||
│ └── exampledoc4.md
|
│ ├── exampledoc4.md
|
||||||
│ └── exampledoc5.md
|
│ └── exampledoc5.md
|
||||||
└── website
|
├── website
|
||||||
│ └── blog-examples-from-docusaurus
|
│ ├── blog-examples-from-docusaurus
|
||||||
│ └── 2016-03-11-blog-post.md
|
│ │ ├── 2016-03-11-blog-post.md
|
||||||
│ └── 2017-04-10-blog-post-two.md
|
│ │ └── 2017-04-10-blog-post-two.md
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── Footer.js
|
│ │ └── Footer.js
|
||||||
│ └── node_modules
|
│ ├── node_modules
|
||||||
│ └── package.json
|
│ ├── package.json
|
||||||
│ └── pages
|
│ ├── pages
|
||||||
│ └── sidebars.json
|
│ ├── sidebars.json
|
||||||
│ └── siteConfig.js
|
│ ├── siteConfig.js
|
||||||
│ └── static
|
│ └── static
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -12,22 +12,22 @@ As shown after you [installed Docusaurus](getting-started-installation.md), the
|
||||||
```bash
|
```bash
|
||||||
root-of-repo
|
root-of-repo
|
||||||
├── docs-examples-from-docusaurus
|
├── docs-examples-from-docusaurus
|
||||||
│ └── doc1.md
|
│ ├── doc1.md
|
||||||
│ └── doc2.md
|
│ ├── doc2.md
|
||||||
│ └── doc3.md
|
│ ├── doc3.md
|
||||||
│ └── exampledoc4.md
|
│ ├── exampledoc4.md
|
||||||
│ └── exampledoc5.md
|
│ └── exampledoc5.md
|
||||||
└── website
|
├── website
|
||||||
│ └── blog-examples-from-docusaurus
|
│ ├── blog-examples-from-docusaurus
|
||||||
│ └── 2016-03-11-blog-post.md
|
│ │ ├── 2016-03-11-blog-post.md
|
||||||
│ └── 2017-04-10-blog-post-two.md
|
│ │ └── 2017-04-10-blog-post-two.md
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── Footer.js
|
│ │ └── Footer.js
|
||||||
│ └── node_modules
|
│ ├── node_modules
|
||||||
│ └── package.json
|
│ ├── package.json
|
||||||
│ └── pages
|
│ ├── pages
|
||||||
│ └── sidebars.json
|
│ ├── sidebars.json
|
||||||
│ └── siteConfig.js
|
│ ├── siteConfig.js
|
||||||
│ └── static
|
│ └── static
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,15 +14,15 @@ Your site structure looks like the following:
|
||||||
```bash
|
```bash
|
||||||
root-of-repo
|
root-of-repo
|
||||||
├── docs
|
├── docs
|
||||||
└── website
|
├── website
|
||||||
│ └── blog
|
│ ├── blog
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── Footer.js
|
│ │ └── Footer.js
|
||||||
│ └── node_modules
|
│ ├── node_modules
|
||||||
│ └── package.json
|
│ ├── package.json
|
||||||
│ └── pages
|
│ ├── pages
|
||||||
│ └── sidebars.json
|
│ ├── sidebars.json
|
||||||
│ └── siteConfig.js
|
│ ├── siteConfig.js
|
||||||
│ └── static
|
│ └── static
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,18 @@ Docusaurus provides some simple example pages in the `website/pages/en` director
|
||||||
```bash
|
```bash
|
||||||
root-of-repo
|
root-of-repo
|
||||||
├── docs
|
├── docs
|
||||||
└── website
|
├── website
|
||||||
│ └── blog
|
│ ├── blog
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── Footer.js
|
│ │ └── Footer.js
|
||||||
│ └── node_modules
|
│ ├── node_modules
|
||||||
│ └── package.json
|
│ ├── package.json
|
||||||
│ └── pages
|
│ ├── pages
|
||||||
│ └── index.js
|
│ │ ├── index.js
|
||||||
│ └── users.js
|
│ │ ├── users.js
|
||||||
│ └── help.js
|
│ │ └── help.js
|
||||||
│ └── sidebars.json
|
│ ├── sidebars.json
|
||||||
│ └── siteConfig.js
|
│ ├── siteConfig.js
|
||||||
│ └── static
|
│ └── static
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -49,22 +49,22 @@ When you run docusaurus-init, you will see a structure similar to:
|
||||||
```
|
```
|
||||||
root-of-repo
|
root-of-repo
|
||||||
├── docs-examples-from-docusaurus
|
├── docs-examples-from-docusaurus
|
||||||
│ └── doc1.md
|
│ ├── doc1.md
|
||||||
│ └── doc2.md
|
│ ├── doc2.md
|
||||||
│ └── doc3.md
|
│ ├── doc3.md
|
||||||
│ └── exampledoc4.md
|
│ ├── exampledoc4.md
|
||||||
│ └── exampledoc5.md
|
│ └── exampledoc5.md
|
||||||
└── website
|
├── website
|
||||||
│ └── blog-examples-from-docusaurus
|
│ ├── blog-examples-from-docusaurus
|
||||||
│ └── 2016-03-11-blog-post.md
|
│ │ ├── 2016-03-11-blog-post.md
|
||||||
│ └── 2017-04-10-blog-post-two.md
|
│ │ └── 2017-04-10-blog-post-two.md
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── Footer.js
|
│ │ └── Footer.js
|
||||||
│ └── node_modules
|
│ ├── node_modules
|
||||||
│ └── package.json
|
│ ├── package.json
|
||||||
│ └── pages
|
│ ├── pages
|
||||||
│ └── sidebars.json
|
│ ├── sidebars.json
|
||||||
│ └── siteConfig.js
|
│ ├── siteConfig.js
|
||||||
│ └── static
|
│ └── static
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -77,19 +77,19 @@ Docusaurus is written primarily in JavaScript and [React](https://facebook.githu
|
||||||
```
|
```
|
||||||
root-of-Docusaurus
|
root-of-Docusaurus
|
||||||
├── lib
|
├── lib
|
||||||
│ └── core
|
│ ├── core
|
||||||
│ └── server
|
│ ├── server
|
||||||
│ └── generate.js
|
│ │ ├── generate.js
|
||||||
│ └── server.js
|
│ │ ├── server.js
|
||||||
│ └── ...and more files
|
│ │ └── ...and more files
|
||||||
│ └── static
|
│ ├── static
|
||||||
│ └── build-files.js
|
│ ├── build-files.js
|
||||||
│ └── copy-examples.js
|
│ ├── copy-examples.js
|
||||||
│ └── generate-feed.js
|
│ ├── generate-feed.js
|
||||||
│ └── publish-gh-pages.js
|
│ ├── publish-gh-pages.js
|
||||||
│ └── rename-version.js
|
│ ├── rename-version.js
|
||||||
│ └── start-server.js
|
│ ├── start-server.js
|
||||||
│ └── versions.js
|
│ ├── versions.js
|
||||||
│ └── write-translations.js
|
│ └── write-translations.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -115,15 +115,15 @@ The final structure of your compiled site will look similar to:
|
||||||
```
|
```
|
||||||
build
|
build
|
||||||
├── website
|
├── website
|
||||||
│ └── CNAME
|
│ ├── CNAME
|
||||||
│ └── blog
|
│ ├── blog
|
||||||
│ └── css
|
│ ├── css
|
||||||
│ └── docs
|
│ ├── docs
|
||||||
│ └── en
|
│ ├── en
|
||||||
│ └── help.html # custom page
|
│ ├── help.html # custom page
|
||||||
│ └── img
|
│ ├── img
|
||||||
│ └── index.html # landing page
|
│ ├── index.html # landing page
|
||||||
│ └── sitemap.xml
|
│ ├── sitemap.xml
|
||||||
│ └── users.html # custom page
|
│ └── users.html # custom page
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue