Skip to content

fix(docs): render LaTeX formulas and fix build warnings#60

Merged
giocaizzi merged 1 commit into
mainfrom
fix/docs-latex-rendering
Mar 3, 2026
Merged

fix(docs): render LaTeX formulas and fix build warnings#60
giocaizzi merged 1 commit into
mainfrom
fix/docs-latex-rendering

Conversation

@giocaizzi
Copy link
Copy Markdown
Owner

Summary

  • Add docs/javascripts/mathjax.js config required by pymdownx.arithmatex generic mode to register \(...\) / \[...\] delimiters and the arithmatex CSS class
  • Load the config script before MathJax in mkdocs.yml
  • Fix unrecognized relative link warning for reference/ in index.md

Test plan

  • uv run mkdocs build --strict — no warnings
  • LaTeX renders on Models (IDW formula) and Preprocessing (normalization/standardization formulas)

Closes #59

🤖 Generated with Claude Code

Add MathJax configuration script required by pymdownx.arithmatex
generic mode. The config must load before MathJax to register the
custom delimiters and arithmatex CSS class.

Also fix unrecognized relative link warning for reference/ in index.md.

Closes #59

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 3, 2026 22:44
@giocaizzi giocaizzi merged commit 4fd538f into main Mar 3, 2026
12 checks passed
@giocaizzi giocaizzi deleted the fix/docs-latex-rendering branch March 3, 2026 22:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MkDocs documentation build so LaTeX math renders correctly under pymdownx.arithmatex generic mode and eliminates a strict-build warning from an invalid relative link.

Changes:

  • Add a MathJax configuration script (docs/javascripts/mathjax.js) to enable arithmatex generic-mode rendering and re-typeset on instant navigation.
  • Ensure the MathJax config loads before the MathJax library in mkdocs.yml.
  • Fix the docs homepage “API Reference” link to point to reference/index.md to avoid build warnings.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
mkdocs.yml Loads the MathJax config script before MathJax to support arithmatex generic mode.
docs/javascripts/mathjax.js Introduces MathJax config + document$ hook to re-typeset formulas on navigation.
docs/index.md Replaces reference/ with reference/index.md to satisfy strict link checking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: LaTeX formulas not rendering

2 participants