aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/gatsby-config.js
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-10-15 18:07:26 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-15 20:20:56 +0200
commit86db744a5fc2ac3c998fc5c126c1298e9c085df9 (patch)
treebc130a0caf44302b0f03ecc01fbcddfb6ab8edd9 /server/sonar-docs/gatsby-config.js
parentd4cec3ea8f587b1b457c1e3799bdb9d7956c5abb (diff)
downloadsonarqube-86db744a5fc2ac3c998fc5c126c1298e9c085df9.tar.gz
sonarqube-86db744a5fc2ac3c998fc5c126c1298e9c085df9.zip
Docs hardening (#817)
* SONAR-11352 Fix version label when on latest * SONAR-11353 Add favicon * SONAR-11351 Add canonical url * Change utility links positions * Fix the content of sonar-docs zip file * Rename sonar-docs preproduction server * Remove achived version notice when on lastest * Fix links prefixing * SONAR-11359 Make images path relative to version * Apply feedbacks * Fix favicon path
Diffstat (limited to 'server/sonar-docs/gatsby-config.js')
-rw-r--r--server/sonar-docs/gatsby-config.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-docs/gatsby-config.js b/server/sonar-docs/gatsby-config.js
index cd8bb759cc8..7832423a952 100644
--- a/server/sonar-docs/gatsby-config.js
+++ b/server/sonar-docs/gatsby-config.js
@@ -19,10 +19,7 @@
*/
const DOCS_VERSION = process.env.GATSBY_DOCS_VERSION || '1.0';
-const prefix =
- process.env.GATSBY_USE_PREFIX === '1'
- ? { pathPrefix: '/' + process.env.GATSBY_DOCS_VERSION }
- : {};
+const prefix = { pathPrefix: '/' + DOCS_VERSION }
module.exports = {
...prefix,