Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to furo theme #257

Merged
merged 2 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions docs/_static/theme_override.css

This file was deleted.

15 changes: 1 addition & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import sys
from datetime import datetime

Expand All @@ -13,13 +12,9 @@
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx_rtd_dark_mode",
"sphinx_rtd_theme",
"sphinxcontrib_trio",
]
html_static_path = ["_static"]
html_theme = "sphinx_rtd_theme"
html_theme_options = {"collapse_navigation": True}
html_theme = "furo"
htmlhelp_basename = "Async PRAW"
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
master_doc = "index"
Expand All @@ -37,13 +32,6 @@
version = ".".join(__version__.split(".", 2)[:2])


# Use RTD theme locally
if not os.environ.get("READTHEDOCS"):
import sphinx_rtd_theme

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


def skip(app, what, name, obj, skip, options):
if name in {
"__call__",
Expand All @@ -59,4 +47,3 @@ def skip(app, what, name, obj, skip, options):

def setup(app):
app.connect("autodoc-skip-member", skip)
app.add_css_file("theme_override.css")
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"dev": ["packaging"],
"lint": ["pre-commit"],
"readthedocs": [
"furo",
"sphinx",
"sphinx-rtd-dark-mode",
"sphinx_rtd_theme",
"sphinxcontrib-trio",
],
"test": [
Expand Down Expand Up @@ -59,12 +58,13 @@
],
description=(
'Async PRAW, an abbreviation for "Asynchronous Python Reddit API Wrapper", is a'
" python package that allows for simple access to Reddit's API."
" Python package that allows for simple access to Reddit's API."
),
extras_require=extras,
install_requires=[
"aiofiles <1",
"aiohttp <4",
"aiofiles ==23.*",
"aiohttp <4; python_version < '3.12'",
"aiohttp==3.9.0b0; python_version == '3.12'",
"aiosqlite <=0.17.0",
"asyncprawcore >=2.1, <3",
"update_checker >=0.18",
Expand Down
Loading