mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
feat(v2): add docs pagination_label frontmatter (#4982)
* feat(v2): add docs pagination_label frontmatter * feat(v2): add docs pagination_label frontmatter * feat(v2): add docs pagination_label frontmatter
This commit is contained in:
parent
41d9288e3d
commit
32e76f1cc0
8 changed files with 25 additions and 10 deletions
|
@ -199,8 +199,9 @@ Markdown documents can use the following Markdown FrontMatter metadata fields, e
|
|||
- `title`: The text title of your document. Used for the page metadata and as a fallback value in multiple places (sidebar, next/previous buttons...). Automatically added at the top of your doc if it does not contain any Markdown title. Default value: Markdown title or doc `id`
|
||||
- `hide_title`: Whether to hide the title at the top of the doc. It only hides a title declared through the frontmatter, and have no effect on a Markdown title at the top of your document. Default value: `false`
|
||||
- `hide_table_of_contents`: Whether to hide the table of contents to the right. Default value: `false`
|
||||
- `sidebar_label`: The text shown in the document sidebar and in the next/previous button for this document. Default value: doc `title`
|
||||
- `sidebar_label`: The text shown in the document sidebar for this document. Default value: `title`
|
||||
- `sidebar_position`: Permits to control the position of a doc inside the generated sidebar slice, when using `autogenerated` sidebar items. Can be Int or Float.
|
||||
- `pagination_label`: The text used in the document next/previous buttons for this document. Default value: `sidebar_label`, or `title`
|
||||
- `parse_number_prefixes`: When a document has a number prefix (`001 - My Doc.md`, `2. MyDoc.md`...), it is automatically parsed and extracted by the plugin `numberPrefixParser`, and the number prefix is used as `sidebar_position`. Use `parse_number_prefixes: false` to disable number prefix parsing on this doc. Default value: `parse_number_prefixes` plugin option
|
||||
- `custom_edit_url`: The URL for editing this document. Default value: computed using the `editUrl` plugin options
|
||||
- `keywords`: Keywords meta tag for the document page, for search engines
|
||||
|
@ -213,10 +214,12 @@ Example:
|
|||
```yml
|
||||
---
|
||||
id: doc-markdown
|
||||
title: Markdown Features
|
||||
title: Docs Markdown Features
|
||||
hide_title: false
|
||||
hide_table_of_contents: false
|
||||
sidebar_label: Markdown :)
|
||||
sidebar_label: Markdown
|
||||
sidebar_position: 3
|
||||
pagination_label: Markdown features
|
||||
custom_edit_url: https://github.com/facebook/docusaurus/edit/master/docs/api-doc-markdown.md
|
||||
description: How do I find you when I cannot solve this problem
|
||||
keywords:
|
||||
|
@ -225,6 +228,8 @@ keywords:
|
|||
image: https://i.imgur.com/mErPwqL.png
|
||||
slug: /myDoc
|
||||
---
|
||||
# Markdown Features
|
||||
|
||||
My Document Markdown content
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue