Skip to content

Remove TeX dependency from docs builds#286

Open
Jiangxuejian wants to merge 1 commit into
astroML:mainfrom
Jiangxuejian:fix-issue-220-docs-without-tex
Open

Remove TeX dependency from docs builds#286
Jiangxuejian wants to merge 1 commit into
astroML:mainfrom
Jiangxuejian:fix-issue-220-docs-without-tex

Conversation

@Jiangxuejian

@Jiangxuejian Jiangxuejian commented Apr 1, 2026

Copy link
Copy Markdown

Fixes #220.

The docs build currently relies on a CI workaround that installs a TeX toolchain for Matplotlib-based example generation. The underlying issue is that the custom example gallery setup forces LaTeX rendering, and one example script also opts into usetex explicitly.

This patch removes that hard dependency by:

  • switching the custom docs gallery builder to Matplotlib mathtext instead of usetex
  • updating fig_volume_ratio.py to use setup_text_plots with usetex disabled
  • adding a focused regression test for the docs-build path
  • removing the extra TeX installation workaround from the docs CI job

Testing:

  • python -m pytest -q -o addopts=astroML/doc/tests/test_issue220.py

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.

mpl 3.2 is not compatible for building the docs

1 participant