summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2017-04-28 13:20:48 +0000
committerAchilleas Pipinellis <axilleas@axilleas.me>2017-04-28 13:20:48 +0000
commit0f0517d727ff9f7fac911f88b6d6619cffe262d7 (patch)
treeaad40618dd02c7150d43d831915543576a646cfe /doc
parent61046e75d8e6f660e55f4f7b5a76238611a0f48f (diff)
parent8b4a726d2d1f6f81c3b30872195e35aee9cd5aad (diff)
downloadgitlab-ce-0f0517d727ff9f7fac911f88b6d6619cffe262d7.tar.gz
Merge branch 'docs/make-ci-run-only-for-doc-changes' into 'master'
Skip irrelevant jobs for documentation only changes Closes #30853 See merge request !10961
Diffstat (limited to 'doc')
-rw-r--r--doc/development/writing_documentation.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/development/writing_documentation.md b/doc/development/writing_documentation.md
index 166a10293c3..2814c18e0b6 100644
--- a/doc/development/writing_documentation.md
+++ b/doc/development/writing_documentation.md
@@ -70,3 +70,27 @@ All the docs follow the same [styleguide](doc_styleguide.md).
### Markdown
Currently GitLab docs use Redcarpet as [markdown](../user/markdown.md) engine, but there's an [open discussion](https://gitlab.com/gitlab-com/gitlab-docs/issues/50) for implementing Kramdown in the near future.
+
+## Testing
+
+We try to treat documentation as code, thus have implemented some testing.
+Currently, the following tests are in place:
+
+1. `docs:check:links`: Check that all internal (relative) links work correctly
+1. `docs:check:apilint`: Check that the API docs follow some conventions
+
+If your contribution contains **only** documentation changes, you can speed up
+the CI process by prepending to the name of your branch: `docs/`. For example,
+a valid name would be `docs/update-api-issues` and it will run only the docs
+tests. If the name is `docs-update-api-issues`, the whole test suite will run
+(including docs).
+
+---
+
+When you submit a merge request to GitLab Community Edition (CE), there is an
+additional job called `rake ee_compat_check` that runs against Enterprise
+Edition (EE) and checks if your changes can apply cleanly to the EE codebase.
+If that job fails, read the instructions in the job log for what to do next.
+Contributors do not need to submit their changes to EE, GitLab Inc. employees
+on the other hand need to make sure that their changes apply cleanly to both
+CE and EE.