summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRich Bennett <rb2745@att.com>2018-09-11 07:38:05 -0400
committerRich Bennett <rb2745@att.com>2018-09-13 17:52:19 +0000
commit317d81a4037edb5cc11f03de92e330d0b05a4435 (patch)
tree1df6f5f1e03fda71f5fb0c47a762b20829ceb59b /docs
parentb50fdf99dd5ad90bcac5f59ff90e0770332e1c94 (diff)
Switch theme and add report issue
Switch to sphinx_rtd_theme Add report issue in Jira with current page/release context Change-Id: Ie237ee4d084f2b8bd025acc7499d19563f6e3e68 Issue-ID: DOC-310 Signed-off-by: Rich Bennett <rb2745@att.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/css/ribbon.css36
-rw-r--r--docs/_templates/layout.html19
-rw-r--r--docs/conf.py7
-rw-r--r--docs/index.rst4
4 files changed, 62 insertions, 4 deletions
diff --git a/docs/_static/css/ribbon.css b/docs/_static/css/ribbon.css
new file mode 100644
index 000000000..b378f432d
--- /dev/null
+++ b/docs/_static/css/ribbon.css
@@ -0,0 +1,36 @@
+.ribbon {
+ z-index: 1000;
+ background-color: #a00;
+ overflow: hidden;
+ white-space: nowrap;
+ position: fixed;
+ top: 25px;
+ right: -50px;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+ -webkit-box-shadow: 0 0 10px #888;
+ -moz-box-shadow: 0 0 10px #888;
+ box-shadow: 0 0 10px #888;
+
+}
+
+.ribbon a {
+ border: 1px solid #faa;
+ color: #fff;
+ display: block;
+ font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ margin: 1px 0;
+ padding: 10px 50px;
+ text-align: center;
+ text-decoration: none;
+ text-shadow: 0 0 5px #444;
+ transition: 0.5s;
+}
+
+.ribbon a:hover {
+ background: #c11;
+ color: #fff;
+}
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
new file mode 100644
index 000000000..ba05e829f
--- /dev/null
+++ b/docs/_templates/layout.html
@@ -0,0 +1,19 @@
+{# Import the theme's layout. #}
+{% extends "!layout.html" %}
+
+{# Custom CSS override for warning banner #}
+{% set css_files = css_files + ['_static/css/warning-header.css'] %}
+
+{# Ribbon #}
+{% block content %}
+ <div class="ribbon">
+ <a href="https://jira.onap.org/secure/CreateIssueDetails!init.jspa
+?pid=10111
+&issuetype=10004
+&priority=2
+&description=version:+{{version}}%0Apage:+{{pagename}}%0A%0A" target="_blank">
+ Report Issue
+ </a>
+ </div>
+ {{ super() }}
+{% endblock %}
diff --git a/docs/conf.py b/docs/conf.py
index 146b009eb..fc96b8b4e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -131,8 +131,8 @@ 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 = 'bootstrap'
-html_theme = 'classic'
+#html_theme = 'classic'
+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
@@ -488,3 +488,6 @@ needs_template_collapse = """
| parents: :need_outgoing:`{{id}}`
{% endif -%}
"""
+
+def setup(app):
+ app.add_stylesheet("css/ribbon.css")
diff --git a/docs/index.rst b/docs/index.rst
index 9c69842f7..ba1f62aab 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -7,8 +7,8 @@ ONAP Documentation
.. caution::
This version of documentation is created from the latest master branch of
- source repositories and is not a stable release. To get the current stable
- release use one of the following
+ source repositories, includes a proposed theme change, and is not a stable release.
+ To get the current stable release use one of the following
* http://docs.onap.org
* http://docs.onap.org/en/beijing