From 23563b48b4298574fa1b0bf1bc6d32a5ac6c6778 Mon Sep 17 00:00:00 2001 From: Shawn Davis Date: Sun, 26 Jul 2020 16:55:07 -0400 Subject: [PATCH] Updated documentation. --- docs/source/_static/css/custom.css | 14 ++++++++++++++ docs/source/conf.py | 21 ++++++++++++--------- setup.py | 3 ++- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 7c1a520..b330e7f 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -8,3 +8,17 @@ max-width: 100%; overflow: visible; } + +.wy-nav-content { + max-width: 100% !important; +} + +/* +.wy-side-nav-search { + background: #506a8a !important; +} + +.wy-side-scroll { + background: #6e90b5 !important; +} +*/ diff --git a/docs/source/conf.py b/docs/source/conf.py index a02b7de..ded76f5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -147,15 +147,18 @@ todo_include_todos = True # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] - -def setup(app): - # Some csv-table tables in the RTD theme were scrolling horizontally. - # See https://github.com/snide/sphinx_rtd_theme/issues/117 - # Apparently the placement of this function is significant. It wasn't - # working at the end of the file. - # See https://github.com/syncany/syncany-docs/blob/82166518720051e413231d621c3b23b9ac35cbf6/source/conf.py#L135 - # app.add_javascript("js/custom.js") - app.add_stylesheet("css/custom.css") +# https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html#adding-custom-css-or-javascript-to-sphinx-documentation +html_css_files = [ + "css/custom.css", +] +# def setup(app): +# # Some csv-table tables in the RTD theme were scrolling horizontally. +# # See https://github.com/snide/sphinx_rtd_theme/issues/117 +# # Apparently the placement of this function is significant. It wasn't +# # working at the end of the file. +# # See https://github.com/syncany/syncany-docs/blob/82166518720051e413231d621c3b23b9ac35cbf6/source/conf.py#L135 +# # app.add_javascript("js/custom.js") +# app.add_stylesheet("css/custom.css") # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/setup.py b/setup.py index 8e08f50..6d66d71 100644 --- a/setup.py +++ b/setup.py @@ -16,10 +16,11 @@ setup( version=read_file("VERSION.txt"), description=read_file("DESCRIPTION.txt"), long_description=read_file("README.markdown"), + long_description_content_type="text/markdown", author='Shawn Davis', author_email='shawn@develmaycare.com', url='https://github.com/develmaycare/python-scripttease', - packages=find_packages(), + packages=find_packages(exclude=["tests"]), include_package_data=True, install_requires=[ "jinja2",