Skip to content

Remove Ghostscript dependency, use MathJax for LaTeX formulas - #9740

Merged
timosachsenberg merged 1 commit into
developfrom
claude/mathjax-ghostscript-removal-qre6dl
Jul 14, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/mathjax-ghostscript-removal-qre6dl

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR removes the Ghostscript dependency from the OpenMS documentation build pipeline. LaTeX formulas in the HTML documentation are now rendered client-side via MathJax instead of being pre-rendered by Ghostscript, eliminating the need for this external dependency.

Changes Made

  • Removed Ghostscript from dependency installation across all platforms:

    • .github/actions/dependencies/action.yml (Windows CI)
    • tools/ci/deps-macos.sh (macOS CI)
    • tools/ci/deps-ubuntu.sh (Ubuntu CI)
  • Enabled MathJax rendering in Doxygen configuration:

    • Added USE_MATHJAX = YES to doc/doxygen/Doxyfile_dot.in with explanatory comments
    • Updated doc/CMakeLists.txt to reflect that LaTeX/dvips/ghostscript are no longer needed
  • Updated documentation:

    • doc/doxygen/install/install-win.doxygen: Removed Ghostscript installation instructions, updated requirement count from three to two programs
  • Updated CI comments to explain the rationale for removing Ghostscript (particularly the Windows 2025 image timeout issues)

Rationale

Ghostscript was causing CI failures on Windows (installer hangs on windows-2025 image) and had intermittent download issues on other platforms. By switching to client-side MathJax rendering, we eliminate this problematic dependency while maintaining full LaTeX formula support in the documentation.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

Note: This is a dependency and configuration change with no impact on unit tests. The documentation build system will be validated through CI.

https://claude.ai/code/session_01Y5Yqw95d6Sj8k1KD8K7Eaa

Summary by CodeRabbit

  • Documentation

    • Updated documentation guidance to use MathJax for client-side formula rendering.
    • Clarified that LaTeX, DVI tools, and Ghostscript are no longer required for HTML documentation.
    • Updated Windows documentation requirements to reflect the reduced dependency list.
  • Chores

    • Removed Ghostscript from optional documentation dependencies across supported platforms.

Doxygen already renders LaTeX formulas client-side via MathJax
(USE_MATHJAX=YES in Doxyfile.in), so the LaTeX/dvips/Ghostscript
formula-rendering pipeline is no longer needed for the HTML docs.

- Explicitly enable USE_MATHJAX for the 'doc_dot' target
  (Doxyfile_dot.in) so it no longer relies on Ghostscript.
- Drop the Ghostscript dependency from the Linux/macOS dependency
  scripts and from the Windows CI conda install.
- Remove the Ghostscript install step from the Windows install docs
  and refresh the now-outdated comments in doc/CMakeLists.txt.

Refs #9733

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y5Yqw95d6Sj8k1KD8K7Eaa
@github-actions

Copy link
Copy Markdown
Contributor

@timosachsenberg The following names might be missing from the AUTHORS file:

  • Claude

Please consider applying the following patch:

--- AUTHORS	2026-07-14 16:21:01.782215538 +0000
+++ AUTHORS.new	2026-07-14 16:21:07.125343459 +0000
@@ -27,6 +27,7 @@
  - Chris Bielow
  - Christian Ehrlich
  - Christie Mathews
+ - Claude
  - Clemens Groepl
  - Cornelia Friedle
  - Daniel Jameson

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ab9066c6-6d84-4b03-aa8f-11439818a570

📥 Commits

Reviewing files that changed from the base of the PR and between 7e0c749 and 06a16b6.

📒 Files selected for processing (6)
  • .github/actions/dependencies/action.yml
  • doc/CMakeLists.txt
  • doc/doxygen/Doxyfile_dot.in
  • doc/doxygen/install/install-win.doxygen
  • tools/ci/deps-macos.sh
  • tools/ci/deps-ubuntu.sh
💤 Files with no reviewable changes (2)
  • tools/ci/deps-ubuntu.sh
  • tools/ci/deps-macos.sh

📝 Walkthrough

Walkthrough

Documentation now enables client-side MathJax rendering for TeX formulas. Ghostscript is removed from Windows, macOS, and Ubuntu documentation dependencies, and Windows installation guidance reflects the reduced requirements.

Changes

Documentation Dependencies

Layer / File(s) Summary
MathJax rendering configuration
doc/CMakeLists.txt, doc/doxygen/Doxyfile_dot.in
HTML TeX rendering is documented as client-side MathJax, and USE_MATHJAX = YES is enabled for the dot documentation target.
Platform dependency cleanup
.github/actions/dependencies/action.yml, doc/doxygen/install/install-win.doxygen, tools/ci/deps-macos.sh, tools/ci/deps-ubuntu.sh
Ghostscript is removed from platform installation lists and Windows documentation prerequisites, while doxygen sourcing notes are updated.

Poem

A rabbit hops through docs so bright,
MathJax paints the formulas right.
Ghostscript rests beneath the tree,
While leaner builds run merrily.
“No more boots!” the bunny sings,
“Just crisp equations on springtime wings.”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: removing Ghostscript and switching LaTeX formula rendering to MathJax.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/mathjax-ghostscript-removal-qre6dl

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cbielow
cbielow enabled auto-merge (rebase) July 14, 2026 17:34
@timosachsenberg
timosachsenberg disabled auto-merge July 14, 2026 18:10
@timosachsenberg
timosachsenberg merged commit fc4e829 into develop Jul 14, 2026
45 checks passed
@timosachsenberg
timosachsenberg deleted the claude/mathjax-ghostscript-removal-qre6dl branch July 14, 2026 18:10
timosachsenberg added a commit that referenced this pull request Jul 15, 2026
, #9740 (#9744)

Backfills changelog entries for a SQLite private-dependency change, a
ROCCurve::cutoffNeg fix, a pyOpenMS Windows NO_DEPENDENCIES test fix,
and the Ghostscript-to-MathJax documentation build change, none of
which had CHANGELOG entries yet.


Claude-Session: https://claude.ai/code/session_012hWmgLm1tVqhrwzBZsFN1X

Co-authored-by: Claude <[email protected]>
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.

3 participants