commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

Broken docs

Open woile opened this issue 8 months ago • 2 comments

Description

The docs now look like AI slop:

  • confusing, I cannot find the settings
  • wrong formatting
  • wrong titles on the sidebar

Steps to reproduce

Navigate to this for example: https://commitizen-tools.github.io/commitizen/config/version_provider/

Current behavior

Missing headers:

Image

Wrong markdown usage:

Image Image

version_provider is nowhere to be found in bump, it's isolated under: https://commitizen-tools.github.io/commitizen/config/version_provider/ users cannto discover it

All the titles in bump page:

Image

Desired behavior

Make it user friendly

Screenshots

No response

Environment

website

woile avatar Apr 02 '26 10:04 woile

Root cause: pygments==2.20.0 regressed HtmlFormatter so that when filename is None, it calls html.escape() on None and crashes with AttributeError: 'NoneType' object has no attribute 'replace'.

In our MkDocs stack, pymdownx.highlight ends up passing filename=None in the common case (no fence title), so the highlight step fails; pymdownx.superfences then doesn’t replace the fence, and the remaining text is parsed as normal Markdown — which is why ```bash and lines starting with # show up as plain text / headings.

Upstream:

  • Issue: https://github.com/pygments/pygments/issues/3076
  • Fix (merged): https://github.com/pygments/pygments/pull/3078 (targeted for Pygments 2.20.1)

Possible mitigation until a Pygments release with the fix is available: pin pygments<2.20 for the docs build (similar approach: https://github.com/jj-vcs/jj/pull/9233).

ttw225 avatar Apr 03 '26 03:04 ttw225

Thanks, I'll try this out

woile avatar Apr 03 '26 04:04 woile