Contributions are welcome
Contributions to this documentation website are encouraged!
#
⚠️ IssuesCheck if there are issues related to your contribution, or create a new issue to discuss your problem.
#
⚡ Quick edit on GitHubMake changes in this repository
If you are part of the MaastrichtU-IDS organization on GitHub you can directly create a new branch to make your change in the main repository.
Otherwise fork it
Otherwise you will need to first fork this repository, then send a pull request when your changes have been pushed.
You can really easily make quick changes directly on the GitHub website by clicking the Edit this page button at the bottom left of each documentation page.
For example to edit this page you can go to https://github.com/MaastrichtU-IDS/best-practices/edit/main/website/src/pages/contributing.md
Quick changes on main branch
For small changes to the documentation feel free to make them directly on the main
branch.
#
🏗️ Larger changes locallyTo make larger changes to the documentation it is easier to clone the repository on your laptop.
Use a Markdown editor
We strongly recommend you to use a markdown editor, such as Typora. It makes writing documentation much faster, and more enjoyable.
- Clone the repository on your machine:
- Create a new branch from the
main
branch 🕊️
Add your changes in this branch ✒️
Start the website on http://localhost:3000 to test it:
Send a pull request
Send a pull request to the main
branch when your changes are done
#
🔄 Automated deploymentThe documentation website is automatically updated and redeployed at each change to the main
branch using a GitHub Actions workflow.
#
📝 HelpMost pages of this website are written in Markdown, hence they are really easy to edit, especially when you are using a convenient markdown editor. Only the index.js
page is written in React JavaScript.
#
🔎 Files locations- Main "best practices" documentation markdown files in
website/docs
- Left docs menu defined in
website/sidebars.json
- Left docs menu defined in
- Blog articles as markdown files in
website/docs
- Index and contribute pages in
website/src/pages
- Images in
website/src/static/img
- Website configuration file in
website/docusaurus.config.js
Blog specificities
Blog articles files name needs to include the date at the beginning, e.g. 2020-12-31-my-article.md
And the text can be truncated to use the first part as description for the article on the main blog page using <!--truncate-->
#
🦄 Markdown tipColorful boxes
Use the following tags to create colorful boxes in markdown files:
#
📬 Contact on SlackContact Vincent Emonet on the IDS Slack if you have any question.