diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-10-15 18:07:26 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-15 20:20:56 +0200 |
commit | 86db744a5fc2ac3c998fc5c126c1298e9c085df9 (patch) | |
tree | bc130a0caf44302b0f03ecc01fbcddfb6ab8edd9 /server/sonar-docs/gatsby-config.js | |
parent | d4cec3ea8f587b1b457c1e3799bdb9d7956c5abb (diff) | |
download | sonarqube-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.js | 5 |
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, |