Skip to content

Commit

Permalink
Merge pull request #800 from jgweir/3.8.fp2
Browse files Browse the repository at this point in the history
Customized the rtd theme:
  • Loading branch information
jgweir committed May 31, 2018
2 parents 844e12f + 6b93dc3 commit bcfeba1
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
11 changes: 11 additions & 0 deletions admin/en/source/_static/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2007-2018 UShareSoft, All rights reserved
*/

.wy-side-nav-search {
background-color: #9c1015;
}

.wy-side-nav-search input[type=text] {
border-color: #9c1015;
}
7 changes: 4 additions & 3 deletions admin/en/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand All @@ -49,7 +48,9 @@
'rst2pdf.pdfbuilder',
]


# Add custom stylesheet
def setup(app):
app.add_stylesheet('css/extra.css')

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -159,7 +160,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
html_static_path = ['_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
11 changes: 11 additions & 0 deletions apis/en/source/_static/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2007-2018 UShareSoft, All rights reserved
*/

.wy-side-nav-search {
background-color: #9c1015;
}

.wy-side-nav-search input[type=text] {
border-color: #9c1015;
}
5 changes: 4 additions & 1 deletion apis/en/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
'rst2pdf.pdfbuilder',
]

# Add custom stylesheet
def setup(app):
app.add_stylesheet('css/extra.css')

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -155,7 +158,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
html_static_path = ['_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
11 changes: 11 additions & 0 deletions end-user/en/source/_static/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2007-2018 UShareSoft, All rights reserved
*/

.wy-side-nav-search {
background-color: #9c1015;
}

.wy-side-nav-search input[type=text] {
border-color: #9c1015;
}
6 changes: 5 additions & 1 deletion end-user/en/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
'rst2pdf.pdfbuilder',
]

# Add custom stylesheet
def setup(app):
app.add_stylesheet('css/extra.css')

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down Expand Up @@ -155,7 +159,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
html_static_path = ['_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down

0 comments on commit bcfeba1

Please sign in to comment.