Skip to content

[good-first-issue] Expose the change log via Sphinx docs #17717

@webknjaz

Description

@webknjaz

I was browsing https://mypy.rtfd.io and was trying to find the change log, the search didn't find anything useful and I ended up locating it in the repository @ https://github.com/python/mypy/blob/master/CHANGELOG.md. But it was rather frustrating.

It is usually possible to show the same change log document in Sphinx. The challenge here is that it's in Markdown and Sphinx isn't set up to stomach it.

The solution is integrating MyST-parser by adding it to https://github.com/python/mypy/blob/fe15ee6/docs/requirements-docs.txt and https://github.com/python/mypy/blob/fe15ee6/docs/source/conf.py#L38, followed by creating a changelog.md inside https://github.com/python/mypy/tree/fe15ee6/docs/source/ containing something like https://myst-parser.readthedocs.io/en/latest/faq/index.html#include-a-file-from-outside-the-docs-folder-like-readme-md. Though, it can be changelog.rst too (https://myst-parser.readthedocs.io/en/latest/faq/index.html#include-markdown-files-into-an-rst-file).
Finally, a changelog entry needs to be added to ToC around https://github.com/python/mypy/blob/fe15ee6/docs/source/index.rst?plain=1#L99C4-L105C7.

P.S. While writing this, I realized that https://mypy-lang.org does not have a change log link either. I don't know where its source is but it'd be nice to link the Sphinx-exposed change log page from that too.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions