diff --git a/src/sphinx_theme_ref/__init__.py b/src/sphinx_theme_ref/__init__.py index d4736ee..e075cad 100644 --- a/src/sphinx_theme_ref/__init__.py +++ b/src/sphinx_theme_ref/__init__.py @@ -1,7 +1,5 @@ """ -Sphinx victory-k.it theme. - -From https://bitbucket.org/victorykit/sphinx-victorykit-theme. +Tiara's Sphinx theme reference implementation. """ from os import path @@ -11,13 +9,12 @@ from sphinx import version_info as sphinx_version from sphinx.locale import _ from sphinx.util.logging import getLogger - -__version__ = '2.0.1alpha1' +# TODO: Figure out how to integrate with setuptools_scm +__version__ = '0.0.1' __version_full__ = __version__ logger = getLogger(__name__) - def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = path.abspath(path.dirname(path.dirname(__file__))) @@ -44,7 +41,7 @@ def setup(app): app.require_sphinx('5.0') if app.config.html4_writer: - logger.error("'html4_writer' is not supported with victorykit_theme.") + logger.error("'html4_writer' is not supported with sphinx_theme_ref.") # Since Sphinx 6, jquery isn't bundled anymore and we need to ensure that # the sphinxcontrib-jquery extension is enabled. @@ -60,7 +57,7 @@ def setup(app): # jquery_add_js_files(app, app.config) # Register the theme that can be referenced without adding a theme path - app.add_html_theme('victorykit', path.abspath(path.dirname(__file__))) + app.add_html_theme('tiaras-theme-ref', path.abspath(path.dirname(__file__))) # Add Sphinx message catalog for newer versions of Sphinx # See http://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_message_catalog @@ -68,7 +65,7 @@ def setup(app): app.add_message_catalog('sphinx', rtd_locale_path) app.connect('config-inited', config_initiated) - app.add_js_file('main.js') + app.add_js_file('assets/script/theme.js') # sphinx emits the permalink icon for headers, so choose one more in keeping with our theme app.config.html_permalinks_icon = "\uf0c1" diff --git a/src/sphinx_theme_ref/main.js b/src/sphinx_theme_ref/main.js deleted file mode 100644 index 813b9ff..0000000 --- a/src/sphinx_theme_ref/main.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";console.log("Hello World! 222")})(); \ No newline at end of file diff --git a/src/sphinx_theme_ref/theme.toml b/src/sphinx_theme_ref/theme.toml index a9ad9f9..90f1945 100644 --- a/src/sphinx_theme_ref/theme.toml +++ b/src/sphinx_theme_ref/theme.toml @@ -1,7 +1,7 @@ [theme] inherit = "basic" stylesheets = [ - "style/main.css", + "assets/style/theme.css", ] sidebars = [ "localtoc.html", diff --git a/vendor/html-theme-ref b/vendor/html-theme-ref index 46ad917..b54f37c 160000 --- a/vendor/html-theme-ref +++ b/vendor/html-theme-ref @@ -1 +1 @@ -Subproject commit 46ad9174885551befff6c3788ba02b7dc8ccd4d9 +Subproject commit b54f37cfd2a99b117fb714a67470818a890a302a