Make it possible for internal_links to work inside CE and EE repos
We've had to disable the nanoc check internal_links check in CE/EE repos:
- issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/55038
- MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23665
If we still want this, there are a couple of approaches we can consider:
- Disable global nav when rendering docs for CE and EE.
- For CE, modify the
internal_linkscheck to ignore anything that starts with/ee. For EE, ignore/ce.
Note that we also have to update the GitLab CE .gitlab-ci.yml to move the docs in the right place. For example, in CE we'd need to do something like:
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 898d740ed63..f0729b0ba2b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -552,6 +552,7 @@ docs lint:
- scripts/lint-changelog-yaml
- mv doc/ /tmp/gitlab-docs/content/
- cd /tmp/gitlab-docs
+ - mv doc ce
# Build HTML from Markdown
- bundle exec nanoc
# Check the internal links
Edited by Achilleas Pipinellis