Merge pull request #7438 from overleaf/jpa-learn-nav-bar

[server-ce] settings: inject entry for learn wiki into navbar if needed

GitOrigin-RevId: a3e51dce6a3de99ac069b4fef13ac8d9f723df47
This commit is contained in:
Jakob Ackermann 2022-04-07 10:50:33 +01:00 committed by Copybot
parent bac5cb3150
commit 1b723b9cda

View file

@ -717,6 +717,12 @@ if (process.env.SHARELATEX_TEMPLATES_USER_ID) {
// -------
if (process.env.SHARELATEX_PROXY_LEARN != null) {
settings.proxyLearn = parse(process.env.SHARELATEX_PROXY_LEARN)
if (settings.proxyLearn) {
settings.nav.header_extras = [{
url: '/learn',
text: 'documentation',
}].concat(settings.nav.header_extras || [])
}
}
// /References