From 0db820b9cb45dd4350da34497ebfe93a67a30426 Mon Sep 17 00:00:00 2001 From: Nguyen Hai Date: Thu, 30 Aug 2018 23:35:41 +0900 Subject: [PATCH] Use openstackdocstheme Change theme of docs by using openstackdocstheme Change-Id: I26ea48e9862e1e8652aecd873b1298cdfa0bdafd --- doc/source/conf.py | 4 ++-- doc/source/index.rst | 15 +++++++-------- test-requirements.txt | 4 ++-- tox.ini | 9 ++------- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 3c7bd68..3c2d781 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -31,7 +31,7 @@ from freezer_dr import __version__ as FREEZER_DR_VERSION # ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', - 'oslosphinx'] + 'openstackdocstheme'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -101,7 +101,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'openstackdocs' # 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 diff --git a/doc/source/index.rst b/doc/source/index.rst index 413f4f9..6b53e87 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -6,11 +6,13 @@ Welcome to Freezer's Disaster Recovery documentation! ===================================================== -Contents: - -.. toctree:: - :maxdepth: 2 - +freezer-dr, OpenStack Compute node High Available provides compute node high +availability for OpenStack. Simply freezer-dr monitors all compute nodes running +in a cloud deployment and if there is any failure in one of the compute nodes +freezer-dr will fence this compute node then freezer-dr will try to evacuate +all running instances on this compute node, finally freezer-dr will notify all +users who have workload/instances running on this compute node as well as will +notify the cloud administrators. Indices and tables @@ -23,6 +25,3 @@ Indices and tables :maxdepth: 1 api/autoindex - -.. toctree:: - :hidden: diff --git a/test-requirements.txt b/test-requirements.txt index 585685a..a677ca3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -12,5 +12,5 @@ pylint==1.9.2 # GPLv2 pyflakes==0.8.1 stestr>=2.0.0 # Apache-2.0 testtools>=0.9.36 -oslosphinx>=2.5.0 # Apache-2.0 -sphinx>=1.1.2,!=1.6.7,!=1.6.6 # BSD +sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +openstackdocstheme>=1.18.1 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 27d9050..cf22d60 100644 --- a/tox.ini +++ b/tox.ini @@ -4,10 +4,8 @@ skipsdist = True [testenv] usedevelop = True -deps = - -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt passenv = FREEZER_TEST_OS_TENANT_NAME FREEZER_TEST_OS_USERNAME @@ -15,7 +13,6 @@ passenv = FREEZER_TEST_OS_PASSWORD FREEZER_TEST_OS_AUTH_URL http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY - install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} @@ -30,12 +27,10 @@ commands = # coverage report -m rm -f .coverage rm -rf .testrepository - whitelist_externals = find coverage rm - python_files = test_*.py norecursedirs = .tox .venv