Commit dc51eb22 authored by Jean-Pierre Thomasset's avatar Jean-Pierre Thomasset

Update doc template

parent 72a37173
git+https://gitlab.com/xivo.solutions/sphinx-git.git@tagtitles
gitpython
pip install sphinx_rtd_theme
body {
background-color: #fff;
.wy-side-nav-search {
background-color: #ef7623;
}
h1,h2,h3,h4 {
margin-top: .8em;
font-family: "Trebuchet MS", sans-serif;
font-weight: normal;
}
h1 {
font-size: 218%;
margin-top: .6em;
margin-bottom: .6em;
color: #092e20;
line-height: 1.1em;
}
div.body h2 {
font-size: 150%;
margin-top: 1em;
margin-bottom: .2em;
line-height: 1.2em;
color: #333;
}
#homepage h2 {
font-size: 140%;
}
h3 {
font-size: 125%;
font-weight: bold;
margin-bottom: .2em;
color: #555;
}
h4 {
font-size: 110%;
font-weight: bold;
margin-bottom: -2px;
margin-top: 1.2em;
color: #777;
}
h4 pre,h4 tt,h4 .literal {
text-transform: none;
}
h5 {
font-size: 1em;
font-weight: bold;
margin-top: 1.5em;
margin-bottom: 3px;
}
div.important {
border: 1px dotted #111;
}
div.related {
color: #111;
text-shadow: 0px 1px 0 #ccc;
background: #ccc url("../img/xivo-trans_92x32.png") top left no-repeat;
}
div.related ul {
margin-left: 100px;
}
div.related a {
color: #333;
}
div.section {
}
div.section img {
margin: auto;
border: 1px dotted #aaa;
}
.figure {
border: 1px dotted #ccc;
text-align: center;
margin: 20px;
}
.figure p {
margin: 0;
text-align: center;
}
.figure img {
margin: 1px;
border: 1px solid transparent;
}
.figure .caption {
font-size: 80%;
font-family: Verdana, Arial, sans-serif;
text-align: center;
background: #ddd;
}
div.sphinxsidebarwrapper {
padding: 10px 0;
}
div.sphinxsidebar ul {
margin: 10px 10px;
}
ol dl li {
list-style-type: decimal;
list-style-position: outside;
font-size: 60pt;
position: relative;
top: 70px;
left: 65px;
line-height: normal;
color: #DDD;
_color: #FFF;; /* show to IE */
}
ol dl li dt {
_margin-top: -70px;
}
ol dl li dd {
width: 400px;
}
ol dl li dt,ol dl li dd {
_list-style-type: decimal;
_list-style-position: outside;
color: #111;
font-size: 0px;
line-height: normal;
font-size: small;
position: relative;
top: -70px;
left: -70px;
}
dt {
margin-top: 10px;
margin-bottom: 5px;
}
.document dd {
background-color: #eeeee7;
padding: 7px;
}
/* DOCS */
#doc-versions {
position: fixed;
display: block;
padding: 0;
margin: 0;
bottom: 5px;
right: 5px;
font-size: small;
}
#doc-versions:hover {
background: transparent url("../img/z.gif") repeat; /* IE7 hack */
border-radius: 3px;
}
#doc-versions li.other {
display: none;
}
#doc-versions li.other a {
display: block;
padding: 5px;
}
#doc-versions:hover li.other {
display: block;
}
#doc-versions li {
display: block;
float: left;
padding: 0;
margin: 0 0 0 7px;
background-color: #eeeee7;
border: 2px #333 solid;
border-radius: 3px;
color: #111;
}
#doc-versions li.current {
background: #eeeee7;
padding-left: 3px;
}
#doc-versions li.current span {
display: block;
padding: 5px;
.wy-side-nav-search>a.icon img.logo, .wy-side-nav-search .wy-dropdown>a.icon img.logo {
background: #666;
border-radius: 8px;
padding: 10px;
}
{% extends "!footer.html" %}
{% block extrafooter %}
<div class="footer">
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" />
</a>
This work is licensed under a
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
Creative Commons Attribution-ShareAlike 4.0 Unported License
</a>.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script>
{% endblock %}
......@@ -13,27 +13,3 @@
{% block sidebarsearch %}{{ super() }}{% endblock %}
{% block relbar2 %}{% endblock %}
{% block footer %}
<div class="footer">
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" />
</a>
<br />
This work is licensed under a
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
Creative Commons Attribution-ShareAlike 4.0 Unported License
</a>.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script>
{{ super() }}
{% endblock %}
......@@ -62,7 +62,7 @@ master_doc = 'index'
# General information about the project.
project = u'XiVO Solutions'
copyright = u'2016, Avencall'
copyright = u'2016-2017, Avencall'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......@@ -124,12 +124,15 @@ todo_include_todos = True
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'nature'
html_theme = 'sphinx_rtd_theme'
# 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.
#html_theme_options = {}
html_theme_options = {
'logo_only': False
}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
......@@ -143,7 +146,7 @@ html_theme = 'nature'
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
html_logo = '_static/img/xivo-trans_92x32.png'
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
......@@ -188,7 +191,7 @@ html_static_path = ['_static']
#html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
html_show_sphinx = False
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment