You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No documentation on how to use tags with docs pages #5432
I think this part of the doc is missing, but in fact, neither is there documentation about creating blog tags. The only section to find these info is in the API section on front matter.
Also, the website seems to still tag beta.5 as the next version?
This section no longer exists in beta.5 docs after I moved it to the API 🤦♂️ In fact the tags front matter is more than an array of strings, because you can also set a custom permalink, so it's better that we can document both docs and blog tags in the "user-friendly" section (I tend to see the API section as too hardcore for normal users)
Also, the website seems to still tag beta.5 as the next version?
Just a deploy failure, fixed now
In fact the tags front matter is more than an array of strings, because you can also set a custom permalink,
Actually, I'm not very fan of this "feature" that I suspect nobody is using. A tag can end up being declared twice with different permalinks, and first occurrence wins. I'd prefer to actually keep it undocumented and emit a warning on usage someday to see if it's safe to remove or if it's relied on. Eventually we could add a tags.yml or {tags} config option to override default tags settings like behavior etc, and maybe have the ability to provide a tag description or something...
tags.yml or {tags} config option to override default tags settings like behavior etc, and maybe have the ability to provide a tag description or something...
So we are really getting into this global YAML config thing😹 Tag description sounds good to me, and having a global tags file also prevents typos like "back-end" and "backend" becoming two different tags
Activity
Josh-Cena commentedon Aug 27, 2021
I think this part of the doc is missing, but in fact, neither is there documentation about creating blog tags. The only section to find these info is in the API section on front matter.
Also, the website seems to still tag
beta.5as thenextversion?HonkingGoose commentedon Aug 27, 2021
The blog documentation doesn't call out the
tags:feature explicitly, but it does use it in a frontmatter example here: https://docusaurus.io/docs/blog#adding-postsAlso this section explains a bit about using
tagsin the header: https://docusaurus.io/docs/blog#header-optionsI agree that the "docs tags" part is missing somehow. But there is some documentation for "blog tags".
I noticed that as well. So something is going wrong...
Josh-Cena commentedon Aug 27, 2021
This section no longer exists in
beta.5docs after I moved it to the API 🤦♂️ In fact thetagsfront matter is more than an array of strings, because you can also set a custompermalink, so it's better that we can document both docs and blog tags in the "user-friendly" section (I tend to see the API section as too hardcore for normal users)slorber commentedon Aug 27, 2021
Doc PRs welcome if you want to add this.
Just a deploy failure, fixed now
Actually, I'm not very fan of this "feature" that I suspect nobody is using. A tag can end up being declared twice with different permalinks, and first occurrence wins. I'd prefer to actually keep it undocumented and emit a warning on usage someday to see if it's safe to remove or if it's relied on. Eventually we could add a
tags.ymlor{tags}config option to override default tags settings like behavior etc, and maybe have the ability to provide a tag description or something...Josh-Cena commentedon Aug 27, 2021
So we are really getting into this global YAML config thing😹 Tag description sounds good to me, and having a global tags file also prevents typos like "back-end" and "backend" becoming two different tags