Commit 0019ba3e authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Replace redirect_from with disqus_identifier in docs

Let's use disqus_identifier since this is a more
descriptive name. We will need redirect_from for
another purpose anyway (Nanoc redirects).
parent 667c779a
--- ---
redirect_from: 'https://docs.gitlab.com/ee/articles/artifactory_and_gitlab/index.html' disqus_identifier: 'https://docs.gitlab.com/ee/articles/artifactory_and_gitlab/index.html'
author: Fabio Busatto author: Fabio Busatto
author_gitlab: bikebilly author_gitlab: bikebilly
level: intermediate level: intermediate
......
--- ---
redirect_from: 'https://docs.gitlab.com/ee/ci/examples/code_climate.html' disqus_identifier: 'https://docs.gitlab.com/ee/ci/examples/code_climate.html'
type: reference, howto type: reference, howto
--- ---
......
--- ---
redirect_from: 'https://docs.gitlab.com/ee/articles/laravel_with_gitlab_and_envoy/index.html' disqus_identifier: 'https://docs.gitlab.com/ee/articles/laravel_with_gitlab_and_envoy/index.html'
author: Mehran Rasulian author: Mehran Rasulian
author_gitlab: mehranrasulian author_gitlab: mehranrasulian
level: intermediate level: intermediate
......
...@@ -170,7 +170,7 @@ Disqus uses an identifier per page, and for docs.gitlab.com, the page identifier ...@@ -170,7 +170,7 @@ Disqus uses an identifier per page, and for docs.gitlab.com, the page identifier
is configured to be the page URL. Therefore, when we change the document location, is configured to be the page URL. Therefore, when we change the document location,
we need to preserve the old URL as the same Disqus identifier. we need to preserve the old URL as the same Disqus identifier.
To do that, add to the frontmatter the variable `redirect_from`, To do that, add to the frontmatter the variable `disqus_identifier`,
using the old URL as value. For example, let's say I moved the document using the old URL as value. For example, let's say I moved the document
available under `https://docs.gitlab.com/my-old-location/README.html` to a new location, available under `https://docs.gitlab.com/my-old-location/README.html` to a new location,
`https://docs.gitlab.com/my-new-location/index.html`. `https://docs.gitlab.com/my-new-location/index.html`.
...@@ -179,11 +179,11 @@ Into the **new document** frontmatter add the following: ...@@ -179,11 +179,11 @@ Into the **new document** frontmatter add the following:
```yaml ```yaml
--- ---
redirect_from: 'https://docs.gitlab.com/my-old-location/README.html' disqus_identifier: 'https://docs.gitlab.com/my-old-location/README.html'
--- ---
``` ```
Note: it is necessary to include the file name in the `redirect_from` URL, Note: it is necessary to include the file name in the `disqus_identifier` URL,
even if it's `index.html` or `README.html`. even if it's `index.html` or `README.html`.
## Branch naming ## Branch naming
......
--- ---
type: reference, howto type: reference, howto
disqus_identifier: 'https://docs.gitlab.com/ee/user/project/merge_requests/code_quality_diff.html'
--- ---
# Code Quality **(STARTER)** # Code Quality **(STARTER)**
......
--- ---
redirect_from: 'code_quality_diff.md'
redirect_to: 'code_quality.md' redirect_to: 'code_quality.md'
--- ---
......
--- ---
last_updated: 2019-07-04 last_updated: 2019-07-04
type: reference, howto type: reference, howto
redirect_from: 'https://docs.gitlab.com/ee/user/project/pages/getting_started_part_three.html' disqus_identifier: 'https://docs.gitlab.com/ee/user/project/pages/getting_started_part_three.html'
--- ---
# Custom domains and SSL/TLS Certificates # Custom domains and SSL/TLS Certificates
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment