From 33b57f352a3afabef2a890ff1be79b10a5fdbcd8 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 19 Mar 2020 10:56:53 +0100 Subject: [PATCH] Small cleanups The default for install_command is good, no need to add our own version in tox.ini. Remove it. Remove git commands from conf.py, current openstackdocstheme handles this itself. Fix some missed api-wg -> api-sig renames in conf.py. Change-Id: I806e804a5852e081f0cb8c1b43ffe13a119aba2c --- doc/source/conf.py | 15 ++------------- tox.ini | 1 - 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4f2ab99..67156ce 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -10,7 +10,6 @@ # serve to show the default. import datetime -import subprocess import sys import os @@ -34,7 +33,7 @@ extensions = ['sphinx.ext.autodoc', ] # Feed configuration for yasfb -feed_base_url = 'http://specs.openstack.org/openstack/api-wg' +feed_base_url = 'https://specs.openstack.org/openstack/api-sig' feed_author = 'OpenStack API Special Interest Group' todo_include_todos = True @@ -124,16 +123,6 @@ html_theme = 'openstackdocs' # pixels large. #html_favicon = None -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", - "-n1"] -try: - html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8') -except Exception: - warnings.warn('Cannot get last updated time from git repository. ' - 'Not setting "html_last_updated_fmt".') - # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True @@ -172,7 +161,7 @@ html_use_index = False #html_file_suffix = None # Output file base name for HTML help builder. -htmlhelp_basename = 'API-WGdoc' +htmlhelp_basename = 'API-Sig-Doc' # -- Options for LaTeX output -------------------------------------------------- diff --git a/tox.ini b/tox.ini index a9b872f..7a8acdd 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,6 @@ skipsdist = True basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} -install_command = pip install -U {opts} {packages} deps = -r{toxinidir}/requirements.txt commands = stestr run --slowest {posargs}