-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(v1): allow specifying meta desc in front matter #1859
Conversation
233dece
to
c7c88ac
Compare
Deploy preview for docusaurus-2 ready! Built with commit 233dece |
Deploy preview for docusaurus-preview ready! Built with commit 233dece |
Deploy preview for docusaurus-2 ready! Built with commit 85bcf44 |
Deploy preview for docusaurus-preview ready! Built with commit 85bcf44 |
c7c88ac
to
b60efb8
Compare
docs/api-doc-markdown.md
Outdated
@@ -15,6 +15,8 @@ Documents use the following markdown header fields that are enclosed by a line ` | |||
|
|||
`title`: The title of your document. If this field is not present, the document's `title` will default to its `id`. | |||
|
|||
`description`: The description of your document which will become the `<meta name="description" content="..."/>` and `<meta property="og:description" content="..."/>` in `<head>`. If this field is not present, it will default to the first line of the contents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe should make it similar to v2
docs/api-doc-markdown.md
Outdated
@@ -15,6 +15,8 @@ Documents use the following markdown header fields that are enclosed by a line ` | |||
|
|||
`title`: The title of your document. If this field is not present, the document's `title` will default to its `id`. | |||
|
|||
`description`: The description of your document which will become the `<meta name="description" content="..."/>` and `<meta property="og:description" content="..."/>` in `<head>`. If this field is not present, it will default to the first line of the contents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`description`: The description of your document which will become the `<meta name="description" content="..."/>` and `<meta property="og:description" content="..."/>` in `<head>`. If this field is not present, it will default to the first line of the contents. | |
`description`: Description meta tag for the document page, for search engines. If this field is not present, it will default to the first line of the contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to keep it explicit
b60efb8
to
85bcf44
Compare
Motivation
RN docs wanted to be able to explicitly specify the description in the front matter.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Related PRs
NA