From 8c9c02c975f07bb832a0891178b2113c6879d483 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Wed, 7 Feb 2024 12:26:42 +0100 Subject: awxkit: allow to modify api base url (#14835) Signed-off-by: Julen Landa Alustiza --- docs/docsite/conf.py | 14 +++++++++----- docs/docsite/rst/rest_api/_swagger/swagger.py | 8 ++------ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/docsite/conf.py b/docs/docsite/conf.py index 2a733792ed..42926df97b 100644 --- a/docs/docsite/conf.py +++ b/docs/docsite/conf.py @@ -16,11 +16,11 @@ pubdate = datetime.strptime(pubdateshort, '%Y-%m-%d').strftime('%B %d, %Y') # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". -#html_title = None +# html_title = None html_title = 'Ansible AWX community documentation' # A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None +# html_short_title = None html_short_title = 'AWX community documentation' htmlhelp_basename = 'AWX_docs' @@ -54,8 +54,8 @@ release = 'AWX latest' language = 'en' -locale_dirs = ['locale/'] # path is example but recommended. -gettext_compact = False # optional. +locale_dirs = ['locale/'] # path is example but recommended. +gettext_compact = False # optional. rst_epilog = """ .. |atqi| replace:: *AWX Quick Installation Guide* @@ -88,4 +88,8 @@ rst_epilog = """ .. |rhaap| replace:: Red Hat Ansible Automation Platform .. |RHAT| replace:: Red Hat Ansible Automation Platform controller -""" % (version, pubdateshort, pubdate) +""" % ( + version, + pubdateshort, + pubdate, +) diff --git a/docs/docsite/rst/rest_api/_swagger/swagger.py b/docs/docsite/rst/rest_api/_swagger/swagger.py index 2fd2876f38..02391be6fb 100644 --- a/docs/docsite/rst/rest_api/_swagger/swagger.py +++ b/docs/docsite/rst/rest_api/_swagger/swagger.py @@ -35,12 +35,8 @@ def assets(app, exception): _, extension = os.path.splitext(asset) if extension in ('py', 'pyc'): continue - if not exception and os.path.exists( - os.path.join(app.outdir, '_static') - ): - copyfile( - os.path.join(here, asset), - os.path.join(app.outdir, '_static', asset)) + if not exception and os.path.exists(os.path.join(app.outdir, '_static')): + copyfile(os.path.join(here, asset), os.path.join(app.outdir, '_static', asset)) def setup(app): -- cgit v1.2.3