Define document front matter #9
Replies: 4 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Regarding the DocumentID, @cheny0 I checked what other projects like Docusaurus or GitHub Pages do for traceability, and had a long conversation with Kimi. Our goal is to uniquely identify a document so we can go back in time and see what happened with the document (this is a just-in-case scenario). We already have git and GitHub's Nevertheless, it's nice to have a unique document identifier to refer to the document. This can be handy in many situations, such as the one we have with illustrations in Status Help, where Francesca uses the ID to organize the pictures. However, using the original ID number as the document ID is not ideal because, after several updates, this ID no longer corresponds to the document. It seems random. I think the document title can be confusing, and it forces us to adapt the title, as you suggest ("Quickstart for {feature/product name}" instead of just "Quickstart"). Docusaurus and GitHub Pages use GitHub's document URL. The risk is that the URL can change if the document is renamed or moved, but I don't think this is very frequent. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
So, we would have: |
Beta Was this translation helpful? Give feedback.
-
|
My concern is, if we use the document URL as the document ID, a major ID update will be needed when we move the existing docs to a new platform like GitBook. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Background information
Front matter is a section at the very top of a file (often in YAML format) that contains metadata about the document. A front matter helps to categorize and uniquely identify a document in the repository.
In specific setups, the front matter is used to categorize, filter, sort, or process documents programmatically.
In the Status app documentation, we use a simple front matter where the document ID corresponds to the ID of the issue that led to the document. This approach, however, doesn't work when the document is updated in other issues with other numbers. In other words, the issue ID-document ID doesn't work well in the long term, but it ensures each document is unique, as a given repo can't have the same issue or PR ID (they're unique).
This is an example from the GitHub documentation:
Questions
@cheny0
Beta Was this translation helpful? Give feedback.
All reactions