Skip to content

Commit 24947d0

Browse files
authored
add documentation draft, version 2 (#41)
* add documentation draft * be more precise about the intended audience * rewrap * fix typo and grammar * embed documentation rules in CONTRIBUTING.md * embed documentation rules in CONTRIBUTING.md, fix * fix introductory text in documentation rules * update entry point to documentation * fix modified text * replace okay with fine
1 parent aa83fea commit 24947d0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,46 @@ to be listed here.
106106

107107
* Mario Carneiro (@digama0)
108108

109+
## Documentation Rules
110+
111+
Here are some links on how to improve documentation in general:
112+
113+
https://www.oreilly.com/content/the-eight-rules-of-good-documentation/
114+
115+
https://guides.lib.berkeley.edu/how-to-write-good-documentation
116+
117+
---
118+
119+
1. Documentation is mostly collected in the ``doc`` subfolder of metamath. As
120+
an entry point to documentation a README.TXT is kept in the main folder of
121+
Metamath. This file is pure [ASCII](https://en.wikipedia.org/wiki/ASCII)
122+
encoded [plain text](https://en.wikipedia.org/wiki/Plain_text).
123+
124+
The following rules are strong recommendations. We encourage to follow them as
125+
much as possible. But in the end we think that some sort of documentation is
126+
better than no documentation, so bypassing any of them is possible if somehow
127+
inevitable.
128+
129+
2. If your documentation is simple enough to be expressed as
130+
[plain text](https://en.wikipedia.org/wiki/Plain_text), we recommend to
131+
rely as much as possible on [ASCII](https://en.wikipedia.org/wiki/ASCII)
132+
encoding. If you need special characters, fall back to
133+
[UTF-8](https://en.wikipedia.org/wiki/UTF-8).
134+
135+
3. If your documentation is best viewed with some formatting in effect we
136+
recommend using GitHub's markdown extensions (GFM) as a format style
137+
embedded in plain text. This rich text formatting is designed to be still
138+
legible in simple editors. Its format is in detail documented
139+
[here](https://github.github.com/gfm), and is an extension to the
140+
widespread [Markdown](https://commonmark.org/help/) format.
141+
142+
4. Source code documentation within sources should follow the
143+
[Doxygen](https://www.doxygen.nl/index.html) style, so documentation of
144+
variables and functions can be generated automatically. Doxygen extracts
145+
marked comment blocks from C sources and creates HTML pages based upon them.
146+
In addition it supports Markdown to format descriptions appropriately. See
147+
https://www.doxygen.nl/manual/docblocks.html.
148+
109149
## For more information
110150

111151
For more general information, see the [README.md](README.md) file.

0 commit comments

Comments
 (0)