mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add new SHARELATEX_HEADER_EXTRAS option
This commit is contained in:
parent
afe9273412
commit
1e97636089
1 changed files with 13 additions and 2 deletions
|
@ -324,10 +324,21 @@ if process.env["SHARELATEX_HEADER_IMAGE_URL"]?
|
||||||
settings.nav.custom_logo = process.env["SHARELATEX_HEADER_IMAGE_URL"]
|
settings.nav.custom_logo = process.env["SHARELATEX_HEADER_IMAGE_URL"]
|
||||||
|
|
||||||
if process.env["SHARELATEX_HEADER_NAV_LINKS"]?
|
if process.env["SHARELATEX_HEADER_NAV_LINKS"]?
|
||||||
|
console.error """
|
||||||
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
|
#
|
||||||
|
# WARNING: SHARELATEX_HEADER_NAV_LINKS is no longer supported
|
||||||
|
# See https://github.com/sharelatex/sharelatex/wiki/Configuring-Headers,-Footers-&-Logo
|
||||||
|
#
|
||||||
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
|
"""
|
||||||
|
|
||||||
|
if process.env["SHARELATEX_HEADER_EXTRAS"]?
|
||||||
try
|
try
|
||||||
settings.nav.header = JSON.parse(process.env["SHARELATEX_HEADER_NAV_LINKS"])
|
settings.nav.header_extras = JSON.parse(process.env["SHARELATEX_HEADER_EXTRAS"])
|
||||||
catch e
|
catch e
|
||||||
console.error("could not parse SHARELATEX_HEADER_NAV_LINKS, not valid JSON")
|
console.error("could not parse SHARELATEX_HEADER_EXTRAS, not valid JSON")
|
||||||
|
|
||||||
|
|
||||||
# if process.env["SHARELATEX_PROXY_LEARN"]?
|
# if process.env["SHARELATEX_PROXY_LEARN"]?
|
||||||
# settings.nav.header.push({text: "help", class: "subdued", dropdown: [{text: "documentation", url: "/learn"}] })
|
# settings.nav.header.push({text: "help", class: "subdued", dropdown: [{text: "documentation", url: "/learn"}] })
|
||||||
|
|
Loading…
Reference in a new issue