Skip to content

Commit

Permalink
Merge pull request #180 from praw-dev/dark_mode
Browse files Browse the repository at this point in the history
Add dark mode to docs
  • Loading branch information
LilSpazJoekp committed Jun 12, 2022
2 parents dc7bbfd + f463da3 commit d6f9dfd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
Binary file removed docs/_static/CodeUrl.png
Binary file not shown.
Binary file removed docs/_static/CreateApp.png
Binary file not shown.
24 changes: 15 additions & 9 deletions docs/_static/theme_override.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html */
/* override table width restrictions */
@media screen and (min-width: 767px) {

.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}
.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}

.wy-table-responsive {
overflow: visible !important;
}
.wy-table-responsive {
overflow: visible !important;
}
}

table.center-table-items, table.center-table-items th { text-align: center; }
table.center-table-items, table.center-table-items th {
text-align: center;
}

html[data-theme='dark'] .btn-neutral {
color: #c1c1c1 !important;
}
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
copyright = datetime.today().strftime("%Y, Joel Payne")
exclude_patterns = ["_build"]
extensions = [
"sphinx_rtd_theme",
"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}
htmlhelp_basename = "Async PRAW"
intersphinx_mapping = {"python": ("https://docs.python.org", None)}
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
master_doc = "index"
nitpick_ignore = [
("py:class", "IO"),
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
extras = {
"ci": ["coveralls"],
"dev": ["packaging"],
"lint": [
"pre-commit",
"lint": ["pre-commit"],
"readthedocs": [
"sphinx",
"sphinx-rtd-dark-mode",
"sphinx_rtd_theme",
"sphinxcontrib-trio",
],
"readthedocs": ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-trio"],
"test": [
"asynctest >=0.13.0",
"mock >=0.8",
Expand All @@ -35,6 +35,7 @@
else "vcrpy@git+https://github.com/kevin1024/vcrpy.git@b1bc5c3a02db0447c28ab9a4cee314aeb6cdf1a7",
],
}
extras["lint"] += extras["readthedocs"]
extras["dev"] += extras["lint"] + extras["test"]

setup(
Expand Down

0 comments on commit d6f9dfd

Please sign in to comment.