Commit 0ffdbbb4 authored by xa's avatar xa

latest sphinx fixes

parent bbdf7a56
Pipeline #1240 failed with stage
......@@ -16,6 +16,10 @@ def update_context(app, pagename, templatename, context, doctree):
def setup(app):
# add_html_theme is new in Sphinx 1.6+
if hasattr(app, "add_html_theme"):
theme_path = os.path.abspath(os.path.dirname(__file__))
app.add_html_theme("irrational", theme_path)
app.connect('html-page-context', update_context)
return {'version': version.__version__,
'parallel_read_safe': True}
......@@ -22,11 +22,6 @@ setup(
author_email='clint.northwood@gmail.com',
url='http://sphinx.errorist.io/irrational',
packages=['irrational'],
package_data = {'irrational': [
'theme.conf',
'layout.html',
'static/*.*',
]},
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
......@@ -45,10 +40,7 @@ setup(
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
entry_points = {
'sphinx_themes': [
'path = irrational:get_path',
],
entry_points={
'sphinx.html_themes': [
'irrational = irrational',
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment