Skip to content

Commit

Permalink
Docs: use the alabaster theme
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jul 12, 2024
1 parent e6eb3be commit d9d0078
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 77 deletions.
16 changes: 0 additions & 16 deletions doc/_static/site.css

This file was deleted.

1 change: 0 additions & 1 deletion doc/_templates/mm2-logo.html

This file was deleted.

59 changes: 18 additions & 41 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
master_doc = "index"

# General information about the project.
project = "MirrorManager2"
project = "Mirror Manager"
copyright = "2014, Pierre-Yves Chibon <[email protected]>"

# The version info for the project you're documenting, acts as replacement
Expand Down Expand Up @@ -106,55 +106,33 @@

# -- Options for HTML output ----------------------------------------------

import cloud_sptheme as csp

html_style = "site.css"

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# html_theme = 'default'
html_theme = "cloud"
html_theme = "alabaster"

# 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
# documentation.
# html_theme_options = {}

html_theme_options = {
"sidebarwidth": "200px",
"max_width": "900px",
"compact_width": "800px",
"minimal_width": "700px",
# Style it like Fedora..
"bodyfont": "Cantarell",
"highlightcolor": "#79db32", # First Green
"sidebarbgcolor": "#FEFEFE",
"sidebartrimcolor": "#FEFEFE",
"sectionbgcolor": "#FEFEFE",
"sectiontrimcolor": "#FEFEFE",
"sectiontextcolor": "#444444",
"relbarbgcolor": "#FEFEFE",
"relbartextcolor": "#444444",
"relbarlinkcolor": "#444444",
"bgcolor": "#FEFEFE",
"textcolor": "#444444",
# "linkcolor": "#79db32", # First Green
"linkcolor": "#00009d",
"headtextcolor": "#444444",
"headlinkcolor": "#444444",
# "codebgcolor"
# "codetextcolor"
"codetrimcolor": "#79db32", # First Green
"footerbgcolor": "#FEFEFE",
"github_user": "fedora-infra",
"github_repo": "mirrormanager2",
"page_width": "1040px",
"show_related": True,
"sidebar_collapse": True,
"caption_font_size": "140%",
}
# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
html_theme_path = [csp.get_theme_dir()]

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
# html_title = None

# html_style = "site.css"

# A shorter title for the navigation bar. Default is the same as html_title.
# html_short_title = None

Expand All @@ -181,15 +159,14 @@
# html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
"**": [
"mm2-logo.html",
"localtoc.html",
"relations.html",
"sourcelink.html",
"searchbox.html",
]
}
# html_sidebars = {
# "**": [
# "localtoc.html",
# "relations.html",
# "sourcelink.html",
# "searchbox.html",
# ]
# }

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MirrorManagement2
=================
Mirror Manager
==============

The MirrorManager project is the application used by the Fedora Project to
manage their mirrors.
Expand Down
16 changes: 1 addition & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ responses = "^0.23.3 || ^0.25.0"
sphinx = ">=6.1.3"
myst-parser = ">=0.16"
sphinxcontrib-httpdomain = "^1.8.1"
cloud-sptheme = "^1.10.1.post20200504175005"
sphinxcontrib-mermaid = "^0.9.2"

[tool.poetry.scripts]
Expand Down
1 change: 0 additions & 1 deletion utility/mirrormanager2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ BuildRequires: python%{python_pkgversion}-coverage
BuildRequires: python%{python_pkgversion}-sphinx
BuildRequires: python%{python_pkgversion}-blinker
BuildRequires: python%{python_pkgversion}-sphinxcontrib-httpdomain
BuildRequires: python%{python_pkgversion}-cloud-sptheme
BuildRequires: rsync
BuildRequires: python%{python_pkgversion}-responses
BuildRequires: poetry
Expand Down

0 comments on commit d9d0078

Please sign in to comment.