githubEdit

Documentation

Documentation is key for any project success. When team members move to different projects, the Tribal Knowledgearrow-up-right will be lost, and it would be hard for new maintainers keep the project on track as per the original Roadmap. We believe in Docs as Codearrow-up-right philosophy and keep related documents close to code in the same repository.

Docs should be organized under docs folder in the root of the repo. We recommend GitHub Flavored Markdownarrow-up-right for writing documents and leverage draw.ioarrow-up-right and Mermaidarrow-up-right to embed diagrams directly into Markdown files.

Recommended minimal documentation for each project:

  • README.md - Should contain Project goals, big picture, list of features, developer's workflow to contribute to repo.

  • Project Boardsarrow-up-right to keep tracking releases, milestones, features and project status.

  • Roadmap should include short and long term goals.

  • Changelog - Automatically generatearrow-up-right changelog as part for release process.

  • Code Ownersarrow-up-right - CODEOWNERSarrow-up-right file contain resources who own specific module in the repository and who should review before PRs are merged.

  • Architecture Decision Record (ADR)arrow-up-right - is a document that captures an important architectural decision made along with its context and consequences.

  • Style Guide - Coding Style Guide

Markdown

Extra GitHub Markdown tricks

Folding area

<details>
<summary>Fold/Open</summary>
Folded content
</details>
chevron-rightFold/Openhashtag

Folded content

diff

Checkbox

Future improvements:

Table of contents

To generate it, markdown provides a shortcut: An easy auto-generation. All the titles defined with #will be edited into the table of contents if the [TOC] is added in the appropriate place.

Image adjustment

Size adjustment

Image position control

Diagrams

mermaid

Draw.io

Footnote

Here need a footnote[^noteID1].

[^noteID1]: Here is the quote for ID1.

Reference

The Magical Markdown I Bet You Don’t Knowarrow-up-right

Last updated