File: documentation-theme

package info (click to toggle)
plainbox 0.25-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,928 kB
  • ctags: 6,422
  • sloc: python: 38,849; xml: 16,029; sh: 33; makefile: 32
file content (42 lines) | stat: -rw-r--r-- 1,526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 4abfe5275b251630c667d91af670b029cecc498c Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Date: Thu, 8 Oct 2015 10:13:55 -0700
Subject: Revert the documentation theme back to default

 PlainBox uses a customized sphinx theme that includes additional
 HTML to integrate with online comment service. This should not be
 a part of the offline documentation package.
Origin: upstream
Forwarded: not-needed
Last-Update: 2015-07-21

Patch-Name: documentation-theme
---
 docs/conf.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index e8dff10..8310280 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -126,19 +126,11 @@ pygments_style = 'sphinx'
 # Use our custom theme. For now it only adds Disqus.com support but we may
 # customize it further later on. The theme is called 'plainbox' and has one
 # option which controls if disqus is active or not.
-html_theme = 'plainbox'
+html_theme = 'default'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
-#
-# Due to the way disqus works, it's only going to work on
-# plainbox.readthedocs.org so only use it if building for readthedocs.
-
-html_theme_options = {
-    'show_disqus': 'true' if os.environ.get(
-        "READTHEDOCS", None) == 'True' else ''
-}
 
 # Add any paths that contain custom themes here, relative to this directory.
 html_theme_path = ['_theme']