Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuzanne Selhorn <sselhorn@gitlab.com>2022-09-16 21:09:45 +0300
committerSarah German <sgerman@gitlab.com>2022-09-16 21:09:45 +0300
commite3235fa0c6503f342b650fe9f2b0bebbce239d0b (patch)
treed5962df31994855aaa1727641cfc1c2dd52d3e6c
parentf1890f79bcd141f368816c7f83667cf901449ec9 (diff)
Added how to exclude a directory from the build
-rw-r--r--doc/development.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/development.md b/doc/development.md
index bd31982b..03cbf446 100644
--- a/doc/development.md
+++ b/doc/development.md
@@ -217,3 +217,10 @@ To add an additional set of product documentation to <https://docs.gitlab.com> f
1. Edit the [`Rakefile`](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/68814c875e322b1871d6368135af49794041ddd1/Rakefile#L107-113) and add a line to replace the product's branch variable. If the product doesn't have a stable branch process, omit this step to use the product's default branch.
1. Edit [`scripts/normalize-links.sh`](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/scripts/normalize-links.sh)
and add the new product to the `Relative URLs` and `Full URLs` sections.
+
+## Exclude a directory
+
+To exclude a directory so the contents aren't published to the docs site:
+
+1. Edit [this `Rules` file](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/Rules).
+1. Add an `ignore` line, like: `ignore '/ee/drawers/*.md'`.