Skip to content

No documentation on how to use tags with docs pages #5432

Closed

Description

@HonkingGoose

📚 Documentation

The release notes say you can now use tags like you can with blogs: https://github.com/facebook/docusaurus/releases/tag/v2.0.0-beta.5

I don't think there's documentation on "how to use tags with documentation files".

I think you can just use the tags: property in the frontmatter of the .md file, like this?

---
title: Feature documentation
description: Learn about the new feature snorgleborf
tags: [snorgleborf, features]
---

The next version of the docs doesn't mention tags: https://docusaurus.io/docs/next/create-doc

And the current version of the docs also doesn't mention tags: https://docusaurus.io/docs/create-doc

Maybe the beta.5 documentation isn't ready yet/not deployed? Or maybe I'm looking in the wrong place?

Have you read the Contributing Guidelines on issues?

Yes.

Activity

  1. added
    documentation
    status: needs triage
    on Aug 27, 2021
  2. Josh-Cena commented on Aug 27, 2021

    @Josh-Cena
    Collaborator

    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?

  3. HonkingGoose commented on Aug 27, 2021

    @HonkingGoose
    ContributorAuthor

    I think this part of the doc is missing, but in fact, neither is there documentation about creating blog tags.

    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-posts

    Also this section explains a bit about using tags in the header: https://docusaurus.io/docs/blog#header-options

    I agree that the "docs tags" part is missing somehow. But there is some documentation for "blog tags".

    Also, the website seems to still tag beta.5 as the next version?

    I noticed that as well. So something is going wrong...

  4. Josh-Cena commented on Aug 27, 2021

    @Josh-Cena
    Collaborator

    Also this section explains a bit about using tags in the header: https://docusaurus.io/docs/blog#header-options

    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)

  5. slorber commented on Aug 27, 2021

    @slorber
    Collaborator

    Doc PRs welcome if you want to add this.

    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...

  6. Josh-Cena commented on Aug 27, 2021

    @Josh-Cena
    Collaborator

    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

  7. removed
    status: needs triage
    on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions