Skip to content

Commit

Permalink
Merge pull request #257 from praw-dev/fix-dark-mode
Browse files Browse the repository at this point in the history
Switch to furo theme
  • Loading branch information
LilSpazJoekp authored Oct 21, 2023
2 parents a5d427c + 9d4e1af commit b34487d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 62 deletions.
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

0 comments on commit b34487d

Please sign in to comment.