docs(v2): use explicit heading IDs (#4460)

This commit is contained in:
Alexey Pyltsyn 2021-03-19 13:00:41 +03:00 committed by GitHub
parent 962c3748ea
commit 291a72fbae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
162 changed files with 1435 additions and 1435 deletions

View file

@ -7,7 +7,7 @@ slug: /docs-introduction
The docs feature provides users with a way to organize Markdown files in a hierarchical format.
## Document ID
## Document ID {#document-id}
Every document has a unique `id`. By default, a document `id` is the name of the document (without the extension) relative to the root docs directory.
@ -49,7 +49,7 @@ It is possible to use:
:::
## Home page docs
## Home page docs {#home-page-docs}
If you want a document to be available at the root, and have a path like `https://v2.docusaurus.io/docs/`, you can use the slug frontmatter:
@ -61,7 +61,7 @@ slug: /
Lorem ipsum
```
## Docs-only mode
## Docs-only mode {#docs-only-mode}
If you only want the documentation feature, you can run your Docusaurus 2 site without a landing page and display your documentation page as the index page instead.