Skip to content

[Doc]: make html fail early if latex not present #24648

@jamesbraza

Description

@jamesbraza

Documentation Link

https://matplotlib.org/devdocs/devel/documenting_mpl.html#building-the-docs

Problem

If you don't have LaTeX installed, make html will fail about 5-mins in. I then came upon this (from here):

Required:

  • a minimal working LaTeX distribution

I think it would be a nice feature to deny make html without a LaTeX being present.

Suggested improvement

Have the doc/Makefile's make html recipe have a "guard" mechanism that, if LaTeX isn't installed, errors with:

LaTeX is required for this command.

This could also be a good sister solution to #24646, where the guard behavior checks the LaTeX installation works and has the required packages installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions