diff --git a/documentation/_static/custom.css b/documentation/_static/custom.css index b5976dacec..394d6f4ad5 100644 --- a/documentation/_static/custom.css +++ b/documentation/_static/custom.css @@ -99,3 +99,28 @@ vertical li.current > a { max-width: 100%; } } + +.donation-banner { + background-color: #fff; + padding: 10px; + text-align: center; + width: 100%; + position: fixed; + top: 0; + z-index: 1000; +} + +.donation-banner a { + font-weight: bold; +} + +.donation-icon { + width: 30px; + height: 30px; + vertical-align: middle; + margin-right: 10px; +} + +body { + padding-top: 50px; /* To avoid content overlap */ +} diff --git a/documentation/_static/custom.js b/documentation/_static/custom.js new file mode 100644 index 0000000000..4f0c17391e --- /dev/null +++ b/documentation/_static/custom.js @@ -0,0 +1,6 @@ +document.addEventListener("DOMContentLoaded", function() { + var banner = document.createElement("div"); + banner.className = 'donation-banner'; + banner.innerHTML = 'Donate Globaleaks is free and open-source whistleblowing software. Donate here to support its development!'; + document.body.insertBefore(banner, document.body.firstChild); +}); diff --git a/documentation/conf.py b/documentation/conf.py index 7dc1c75f24..b1e001285a 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -68,3 +68,4 @@ def setup(app): app.add_css_file("custom.css") + app.add_js_file("custom.js")