Skip to content

Commit

Permalink
convert core docs to use Ansible sphinx theme (#922) (#1067)
Browse files Browse the repository at this point in the history
* convert core docs to use Ansible sphinx theme

* add back _static dir

(cherry picked from commit 2d1ed76)

Co-authored-by: Sandra McCann <samccann@redhat.com>
  • Loading branch information
patchback[bot] and samccann committed Jan 25, 2024
1 parent 57b1104 commit 4d376f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
Empty file added docs/docsite/_static/.keep
Empty file.
17 changes: 0 additions & 17 deletions docs/docsite/_static/css/core-color-scheme.css

This file was deleted.

14 changes: 7 additions & 7 deletions docs/docsite/rst/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@
root_doc = master_doc = 'index' # Sphinx 4+ / 3-

# General substitutions.
project = 'Ansible'
project = (
'Ansible Core' if (
tags.has('all') or tags.has('core_lang') or tags.has('core')
) else 'Ansible' if tags.has('2.10') or tags.has('ansible')
else '<UNKNOWN>'
)

copyright = "Ansible project contributors"

# The default replacements for |version| and |release|, also used in various
Expand Down Expand Up @@ -257,12 +263,6 @@
),
}

# Add extra CSS styles to the resulting HTML pages
html_css_files = [
'css/core-color-scheme.css',
] if (
tags.has('core_lang') or tags.has('core')
) else [] if tags.has('all') or tags.has('2.10') or tags.has('ansible') else []

# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
Expand Down

0 comments on commit 4d376f7

Please sign in to comment.