Skip to content

Commit

Permalink
fix: adding parallel thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Aug 28, 2024
1 parent ebb369b commit edfd597
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/grg_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
except ImportError:
pass


def get_html_theme_path():
"""Return list of HTML theme paths."""
parent = Path(__file__).parent.resolve()
theme_path = parent / "theme" / "grg_sphinx_theme"
return theme_path


def setup(app):
"""Setup the Sphinx application for grg-sphinx-theme"""
app.add_html_theme('grg_sphinx_theme', get_html_theme_path())
app.connect("html-page-context", header.add_navbar_functions)
app.connect("builder-inited", team.add_team_details)
app.connect("builder-inited", team.add_team_details)
return {"parallel_read_safe": True, "parallel_write_safe": True}

0 comments on commit edfd597

Please sign in to comment.