diff options
author | Job van der Voort <job@gitlab.com> | 2015-05-26 07:24:04 +0000 |
---|---|---|
committer | Job van der Voort <job@gitlab.com> | 2015-05-26 07:24:04 +0000 |
commit | d9f4dfe94b5c6a106c16abd4908cb6f2aebafad3 (patch) | |
tree | 751d20b8234c57a79abe04e1b1db223ba209770f | |
parent | dfa1d96a1fa372b292c83424f62ae10d2c053fbd (diff) | |
parent | 4e264076797316e0ae241f6e0c9bc18ad176587f (diff) | |
download | gitlab-ce-d9f4dfe94b5c6a106c16abd4908cb6f2aebafad3.tar.gz |
Merge branch 'master' into 'master'
Added documentation styleguide
Hi. I added a documentation styleguide and linked it to https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides
See merge request !709
-rw-r--r-- | CONTRIBUTING.md | 1 | ||||
-rw-r--r-- | doc_styleguide.md | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6b4a6102aff..8059b95609a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -163,6 +163,7 @@ If you add a dependency in GitLab (such as an operating system package) please c 1. [Shell commands](doc/development/shell_commands.md) created by GitLab contributors to enhance security 1. [Markdown](http://www.cirosantilli.com/markdown-styleguide) 1. [Database Migrations](doc/development/migration_style_guide.md) +1. [Documentation styleguide](doc_styleguide.md) 1. Interface text should be written subjectively instead of objectively. It should be the gitlab core team addressing a person. It should be written in present time and never use past tense (has been/was). For example instead of "prohibited this user from being saved due to the following errors:" the text should be "sorry, we could not create your account because:". Also these [excellent writing guidelines](https://github.com/NARKOZ/guides#writing). This is also the style used by linting tools such as [RuboCop](https://github.com/bbatsov/rubocop), [PullReview](https://www.pullreview.com/) and [Hound CI](https://houndci.com). diff --git a/doc_styleguide.md b/doc_styleguide.md new file mode 100644 index 00000000000..670af765f3a --- /dev/null +++ b/doc_styleguide.md @@ -0,0 +1,22 @@ +# Documentation styleguide + +This styleguide recommends best practices to improve documentation and to keep it organized and easy to find. + +## Text + +* Make sure that the documentation is added in the correct directory and that there's a link to it somewhere useful. + +* Add only one H1 or title in each document, by adding '#' at the begining of it (when using markdown). For subtitles, use '##', '###' and so on. + +* Do not duplicate information. + +* Be brief and clear. + + +## When adding images to a document + +* Create a directory to store the images with the specific name of the document where the images belong. It could be in the same directory where the .md document that you're working on is located. + +* Images should have a specific, non-generic name that will differentiate them. + +* Keep all file names in lower case.
\ No newline at end of file |