Skip to content

Enable Sphinx math support (:math: role) in the docs build #211

Description

@djolertrk

docs/conf.py does not enable any Sphinx math extension, so the :math: role does not render and the output shows raw MathJax delimiters instead, e.g. \(-2^{63}\).

Reproduce: add e.g. :math:`2^{63} - 1 to any .rst page and build the docs, so the formula appears as literal \(...\) text.

Fix: add sphinx.ext.mathjax to extensions in docs/conf.py (or sphinx.ext.imgmath if the rendered site should not load the MathJax script from a CDN).

No page currently uses :math:, so in the doc ethdebug page we worked around it with plain literals like 2**63 - 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions