mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
bac5cb3150
commit
1b723b9cda
1 changed files with 6 additions and 0 deletions
|
@ -717,6 +717,12 @@ if (process.env.SHARELATEX_TEMPLATES_USER_ID) {
|
||||||
// -------
|
// -------
|
||||||
if (process.env.SHARELATEX_PROXY_LEARN != null) {
|
if (process.env.SHARELATEX_PROXY_LEARN != null) {
|
||||||
settings.proxyLearn = parse(process.env.SHARELATEX_PROXY_LEARN)
|
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
|
// /References
|
||||||
|
|
Loading…
Reference in a new issue