Skip to content

Commit

Permalink
Merge pull request #7 from tell-k/fix-theme-setting
Browse files Browse the repository at this point in the history
Fix theme settings
  • Loading branch information
tell-k committed Apr 14, 2019
2 parents 7595822 + 86804f2 commit 2852c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 5 additions & 7 deletions setup.py
Expand Up @@ -71,12 +71,10 @@
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points="""
[sphinx_themes]
path = sphinxjp.themes.gopher:get_path
[sphinx_directives]
setup = sphinxjp.themes.gopher:setup
""",
entry_points= {
'sphinx.html_themes': [
'gopher = sphinxjp.themes.gohper',
]
},
zip_safe=False
)
3 changes: 2 additions & 1 deletion src/sphinxjp/themes/gopher/__init__.py
Expand Up @@ -9,7 +9,7 @@
from os import path

package_dir = path.abspath(path.dirname(__file__))
template_path = path.join(package_dir, 'templates')
template_path = path.join(package_dir, 'templates', 'gopher')

__version__ = '0.2.2'

Expand All @@ -21,3 +21,4 @@ def get_path():

def setup(app):
"""entry-point for sphinx directive."""
app.add_html_theme('gopher', get_path())

0 comments on commit 2852c0e

Please sign in to comment.