Skip to content

Commit

Permalink
Use sphinx-nefertiti theme
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Nov 29, 2024
1 parent c019f0c commit 34bf7f0
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 5 deletions.
120 changes: 120 additions & 0 deletions docs/_static/chatnoir.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ h6 {
padding-top: 24px;
margin: 24px 0;
}

.project-logo {
background: white;
border: 0;
border-radius: 15%;
height: 36px;
width: 50px;
}
1 change: 1 addition & 0 deletions docs/api/parse/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Resiliparse HTML parsing and DOM traversal utilities API documentation.
.. automodule:: resiliparse.parse.html
:members:
:special-members: __iter__, __getitem__, __setitem__
:no-index:

.. autoclass:: NodeType
:members:
Expand Down
66 changes: 61 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx_click',
'sphinx_rtd_theme'
# 'sphinx_rtd_theme'
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -56,13 +56,69 @@
# 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 = 'sphinx_rtd_theme'
# html_theme_options = {
# 'collapse_navigation': False,
# 'display_version': True,
# 'style_external_links': True,
# }

html_theme = "sphinx_nefertiti"
html_theme_options = {
'collapse_navigation': False,
'display_version': True,
'style_external_links': True,
"documentation_font": "Open Sans",
"documentation_font_size": "1.0rem",
"monospace_font": "Ubuntu Mono",
"monospace_font_size": "1.1rem",

"style": "red",
"pygments_light_style": "pastie",
"pygments_dark_style": "dracula",

"logo": "chatnoir.svg",
"logo_width": 50,
"logo_height": 36,
"logo_alt": "Nefertiti-for-Sphinx",

"repository_url": "https://github.com/chatnoir-eu/chatnoir-resiliparse",
"repository_name": "chatnoir-resiliparse",

"header_links": [
{
"text": "Chatnoir",
"link": "https://www.chatnoir.eu"
},
{
"text": "Resiliparse",
"dropdown": (
{
"text": "Parsing Utilities",
"link": "man/parse",
"match": "/man/parse/*",
},
{
"text": "Extraction Utilities",
"link": "man/extract",
"match": "/man/extract/*",
},
{
"text": "Process Guards",
"link": "man/process-guard",
},
{
"text": "Itertools",
"link": "man/itertools",
}
),
},
{
"text": "FastWARC",
"link": "man/fastwarc",
"match": "/man/fastwarc/*"
}
],
}


# 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,
# so a file named 'default.css' will overwrite the builtin 'default.css'.
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ resiliparse[all]
sphinx
sphinx-click
sphinx_rtd_theme
sphinx-nefertiti

0 comments on commit 34bf7f0

Please sign in to comment.