Skip to content

Commit

Permalink
Add sitemap (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackyblack authored Sep 13, 2024
1 parent eae579f commit 7a2eca9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"sphinx.ext.autosectionlabel",
"sphinx.ext.mathjax",
"sphinx.ext.githubpages",
"sphinx_sitemap",
]

# List of patterns, relative to source directory, that match files and
Expand All @@ -59,6 +60,8 @@

html_extra_path = ["_extra/googlea3669135f4e8d2d0.html"]

html_baseurl = "https://symplyphysics.github.io"

# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = False
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Symplyphysics

Physics laws implemented as code. Based on `SymPy <https://github.com/sympy/sympy>`_ Python library.

Autogenerated from `Symplyphysics <https://github.com/blackyblack/symplyphysics>`_ project.

Contents:

.. toctree::
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ dev = [
"pytest",
"mypy",
"pylint",
"Sphinx"
"Sphinx",
"sphinx-sitemap",
]

[tool.setuptools.packages.find]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
r"""
Effective mass of electron via energy
=====================================
Expand Down Expand Up @@ -30,7 +30,7 @@
validate_output,
)

effective_mass = clone_symbol(symbols.basic.mass, display_symbol="m_eff", display_latex=r"m_\text{eff}")
effective_mass = clone_symbol(symbols.basic.mass, display_symbol="m_eff", display_latex="m_\\text{eff}")
r"""
Effective :attr:`~symplyphysics.symbols.basic.mass` of the electron.
"""
Expand Down

0 comments on commit 7a2eca9

Please sign in to comment.