Skip to content

Commit ed3fd75

Browse files
authored
Reorder paragraphs to follow inverted pyramid structure (#1101)
1 parent 9b8228f commit ed3fd75

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CONTRIBUTING-docs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ After you have been assigned to an issue, fork the [json-schema-org/website](htt
6464

6565
To propose modifications to our documentation that do not have an issue in the [documentation board](https://github.com/orgs/json-schema-org/projects/16), you can [create a GitHub issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue#creating-an-issue-from-a-repository) and use the *Documentation* template to describe the changes. After that, you can decide whether you want to work on the changes yourself or let someone else claim the issue. If you decide to work on the issue, assign it to yourself and commit the changes to a new branch.
6666

67+
## Add metadata to newly created markdown files
68+
Metadata helps organize content and maintain consistency across all pages in the documentation. It also provides key information about the file, such as its title, author, and the last updated date.
69+
70+
When contributing to the documentation, it is essential to include metadata in every new markdown file. Metadata is critical for successfully building and rendering the file locally. Without it, the file may fail to render correctly or cause errors in the documentation system.
71+
72+
### Example of metadata in a new markdown file
73+
Every new `.md` file should start with a YAML front matter block. Here's an example:
74+
---
75+
title: "Your Page Title"
76+
section: "docs" # Can be used to categorize the content
77+
date: "YYYY-MM-DD" # Optional: Date when the page was created or last updated
78+
author: "Your Name" # Optional: Your name if you're the author
79+
tags: ["tag1", "tag2"] # Optional: Tags to categorize the page
80+
---
81+
To add the front matter metadata, copy and paste the example above at the top of your .md file and replace the details with the information of your document.
82+
6783
## Create a Pull Request
6884

6985
To submit your work to review by the community, open a draft pull request to the `main` upstream branch, and add the issue your pull request solves. Add @json-schema-org/docs-team as a reviewer of your pull request, and let us know in the #documentation Slack channel your pull request is ready for review.

0 commit comments

Comments
 (0)