Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
5,456 additions
and
4,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,48 @@ | ||
import os | ||
import sys | ||
sys.path.insert(0, '..') | ||
|
||
sys.path.insert(0, "..") | ||
|
||
from praw import __version__ | ||
|
||
copyright = '2017, Bryce Boe' | ||
exclude_patterns = ['_build'] | ||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] | ||
html_static_path = ['_static'] | ||
html_theme = 'sphinx_rtd_theme' | ||
html_theme_options = { | ||
'collapse_navigation': True | ||
} | ||
htmlhelp_basename = 'PRAW' | ||
intersphinx_mapping = {'python': ('https://docs.python.org/3.6', None)} | ||
master_doc = 'index' | ||
copyright = "2017, Bryce Boe" | ||
exclude_patterns = ["_build"] | ||
extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx"] | ||
html_static_path = ["_static"] | ||
html_theme = "sphinx_rtd_theme" | ||
html_theme_options = {"collapse_navigation": True} | ||
htmlhelp_basename = "PRAW" | ||
intersphinx_mapping = {"python": ("https://docs.python.org/3.6", None)} | ||
master_doc = "index" | ||
nitpicky = True | ||
project = 'PRAW' | ||
pygments_style = 'sphinx' | ||
project = "PRAW" | ||
pygments_style = "sphinx" | ||
release = __version__ | ||
source_suffix = '.rst' | ||
suppress_warnings = ['image.nonlocal_uri'] | ||
version = '.'.join(__version__.split('.', 2)[:2]) | ||
source_suffix = ".rst" | ||
suppress_warnings = ["image.nonlocal_uri"] | ||
version = ".".join(__version__.split(".", 2)[:2]) | ||
|
||
|
||
# Use RTD theme locally | ||
if not os.environ.get('READTHEDOCS'): | ||
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__', '__contains__', '__getitem__', '__init__', | ||
'__iter__', '__len__'}: | ||
if name in { | ||
"__call__", | ||
"__contains__", | ||
"__getitem__", | ||
"__init__", | ||
"__iter__", | ||
"__len__", | ||
}: | ||
return False | ||
return skip | ||
|
||
|
||
def setup(app): | ||
app.connect('autodoc-skip-member', skip) | ||
app.add_stylesheet('theme_override.css') | ||
app.connect("autodoc-skip-member", skip) | ||
app.add_stylesheet("theme_override.css") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.