Skip to content

Commit 2c1a841

Browse files
committed
docs: update contributing guidelines in README
1 parent ef4804b commit 2c1a841

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,21 @@ All involved are expected to follow the [PEcAn code of conduct](https://pecanpro
180180

181181
First time contributors are welcome. Contributions can be very simple, make sure to check out beginner friendly issues, if present.
182182

183+
## Editing a Documentation File
184+
The PEcAn documentation is a crucial part of the project. We aim to make it comprehensive, accurate, and easy to navigate. When contributing to documentation, please keep the following in mind:
185+
186+
* **Always use explicit heading IDs** when adding or editing headings in documentation file(`.mdx`). This prevents broken links if heading text changes later. For example:
187+
188+
```markdown
189+
### My Important Section{#my-important-section}
190+
```
191+
Then, you can link to this section using:
192+
193+
```markdown
194+
[Link to my section](#my-important-section)
195+
```
196+
* **Use appropriate file formats**, primarily Markdown (`.md`) and MDX (`.mdx`). MDX allows embedding JSX components within documentation for more flexibility. Refer to [Docusaurus Docs](https://docusaurus.io/docs) for MDX syntax.
197+
183198
## Next Steps
184199

185200
This section contains future plans for the website. New contributors can use this section as a reference for planning their contributions.

0 commit comments

Comments
 (0)