Skip to content

Commit

Permalink
new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
natenka committed Jul 13, 2022
1 parent 0953d79 commit 773d32f
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 6 deletions.
30 changes: 30 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
formats:
- pdf
- epub

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
furo==2022.6.21
sphinx-inline-tabs
sphinx_copybutton==0.5.0
30 changes: 24 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@

# -- Project information -----------------------------------------------------

project = 'Ansible для сетевых инженеров'
copyright = '2020, Natasha Samoylenko'
project = 'Основы Ansible для сетевых инженеров'
copyright = '2020-2022, Natasha Samoylenko'
author = 'Natasha Samoylenko'

# The full version, including alpha/beta/rc tags
release = '0.0.5'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.imgconverter",
"sphinx_inline_tabs",
"sphinx_copybutton",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -54,10 +54,28 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'furo'
#html_sidebars = {
# "**": ["about.html", "searchbox.html", "localtoc.html", "navigation.html"]
#}
html_title = 'Основы Ansible для сетевых инженеров'
html_theme_options = {
"prev_next_buttons_location": "both",
"navigation_with_keys": True,
"top_of_page_button": None,
"announcement": (
'Книга не обновляется! Используется версия Ansible 2.9. '
'<a href="https://www.youtube.com/playlist?list=PLah0HUih_ZRnuI_K5-GV4FdAO9dVkRIGF">По некоторым темам есть видео лекции.</a>'
),
"light_css_variables": {
"color-brand-primary": "#336790", # "blue"
"color-brand-content": "#336790",
},
"dark_css_variables": {
"color-brand-primary": "#E5B62F", # "yellow"
"color-brand-content": "#E5B62F",
},
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down

0 comments on commit 773d32f

Please sign in to comment.