From 5d97445d3e113c8a99cc63e290f6468f0e1ef147 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 6 Oct 2018 22:29:35 +0200 Subject: [PATCH] Show the sponsors in the sphinx docs --- buildout.cfg | 2 +- css/website.css | 4 ++-- docs/source/_static/style.css | 25 ++++++++++++++++++++++++- docs/source/_templates/sponsors.html | 16 ++++++++++++++++ docs/source/conf.py | 2 +- index.html | 6 ++++-- sass/website.scss | 4 ++-- 7 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 docs/source/_templates/sponsors.html diff --git a/buildout.cfg b/buildout.cfg index a19dac9fb..594e8b9f1 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -11,4 +11,4 @@ eggs = sphinx-bootstrap-theme [versions] -Sphinx = 1.7.5 +Sphinx = 1.8.1 diff --git a/css/website.css b/css/website.css index 57bfe3a21..b04ac84ef 100644 --- a/css/website.css +++ b/css/website.css @@ -5865,7 +5865,7 @@ ul.features { .sponsors { clear: both; font-size: 1.4em; - padding: 2em 0 6em 0; } + padding: 0 0 4em 0; } .sponsors ul { padding: 0; } @@ -5881,6 +5881,6 @@ ul.features { .sponsors-text { text-align: left; - padding: 0 0 2em 0; } + padding: 0 0 1em 0; } /*# sourceMappingURL=website.css.map */ diff --git a/docs/source/_static/style.css b/docs/source/_static/style.css index a0ca19391..0f5807460 100644 --- a/docs/source/_static/style.css +++ b/docs/source/_static/style.css @@ -37,8 +37,31 @@ h5 { padding-left: 15px; } +.bs-sidenav .sponsors-list li a:hover { + background-color: transparent; + border: none; +} + +.sponsors-list li a { + text-align: center; +} + +.centered-text-container { + display: block; + width: 100%; + text-align: center; +} + +.patreon-link-container { + margin: 0.5em 0 1em 0; +} + +.patreon-link-container a { + font-size: 85%; +} + #sidebar > .nav-list { - max-height: 70vh; + max-height: 48vh; overflow-y: scroll; } diff --git a/docs/source/_templates/sponsors.html b/docs/source/_templates/sponsors.html new file mode 100644 index 000000000..a16b28e19 --- /dev/null +++ b/docs/source/_templates/sponsors.html @@ -0,0 +1,16 @@ + + + + + +Become a sponsor + diff --git a/docs/source/conf.py b/docs/source/conf.py index 326a90bfb..419425c69 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -177,7 +177,7 @@ html_favicon = "_static/favicon.ico" #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -html_sidebars = {'**': ['localtoc.html', 'sourcelink.html', 'searchbox.html']} +html_sidebars = {'**': ['sponsors.html', 'localtoc.html', 'sourcelink.html', 'searchbox.html']} # Additional templates that should be rendered to pages, maps page names to # template names. diff --git a/index.html b/index.html index a07dd4053..a5283aefa 100644 --- a/index.html +++ b/index.html @@ -231,6 +231,9 @@ Liberapay or contact us.

+

Sponsorships of €50 or more will appear on this website and the online + Converse documentation. +

@@ -356,8 +359,7 @@ */ converse.initialize({ // Please use this connection manager only for testing purposes - bosh_service_url: 'https://conversejs.org/http-bind/', - show_controlbox_by_default: true + bosh_service_url: 'https://conversejs.org/http-bind/' }); diff --git a/sass/website.scss b/sass/website.scss index ec7c36553..9fef52626 100644 --- a/sass/website.scss +++ b/sass/website.scss @@ -411,7 +411,7 @@ ul.features { .sponsors { clear: both; font-size: 1.4em; - padding: 2em 0 6em 0; + padding: 0 0 4em 0; ul { padding: 0; } @@ -428,5 +428,5 @@ ul.features { } .sponsors-text { text-align: left; - padding: 0 0 2em 0; + padding: 0 0 1em 0; }