mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
docs: document doc tags + refinements (#5433)
* Various improvements Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Oops Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
49c5f3ed41
commit
1481bc2eb7
2 changed files with 27 additions and 6 deletions
|
@ -83,3 +83,19 @@ With <code>{#custom-id}</code> syntax you can set your own header id.
|
|||
|
||||
</BrowserWindow>
|
||||
```
|
||||
|
||||
## Doc tags {#doc-tags}
|
||||
|
||||
Optionally, you can add tags to your doc pages, which introduces another dimension of categorization in addition to the [docs sidebar](./sidebar.md). Tags are passed in the front matter as a list of labels:
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
```yml "your-doc-page.md"
|
||||
---
|
||||
id: doc-with-tags
|
||||
title: A doc with tags
|
||||
tags:
|
||||
- Demo
|
||||
- Getting started
|
||||
---
|
||||
```
|
||||
<!-- prettier-ignore-end -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue