Skip to content

[DRAFT] Add bibtex support, bibliography, and MyST-compatible docstrings - #864

Closed
Roman Lutz (romanlutz) wants to merge 6 commits into
microsoft:mainfrom
romanlutz:romanlutz/bibtex
Closed

Roman Lutz (romanlutz) wants to merge 6 commits into
microsoft:mainfrom
romanlutz:romanlutz/bibtex

Conversation

@romanlutz

@romanlutz Roman Lutz (romanlutz) commented Apr 7, 2025 •

Copy link
Copy Markdown
Contributor

Description

This change sets us up to cite papers in docstrings which wasn't possible before. Most of the change is just formatting fixes in existing docstrings. autodoc had to be replaced with autodoc2 for the MyST support, and bibtex is a new sphinx extension. This also adds a bibliography page that has to be built over time, but I've added one example for now.

Below are a few screenshots of what it looks like:

  • left sidebar image

  • docstrings are not rendering right yet, see image

Tests and Documentation

@romanlutz Roman Lutz (romanlutz) changed the title DOC Add bibtex support, bibliography, and MyST-compatible docstrings [DRAFT] Add bibtex support, bibliography, and MyST-compatible docstrings Apr 8, 2025
@romanlutz

Copy link
Copy Markdown
Contributor Author

This is not ready 🤣 don't merge.

The param and returns parts are broken

@romanlutz

Copy link
Copy Markdown
Contributor Author

This isn't quite possible due to sphinx-extensions2/sphinx-autodoc2#33 at this point. Our Google style docs don't seem to translate properly resulting in references not showing up. I'm closing this for now but we can revisit if that issue ever gets addressed. In fact, the core issue here is not even the one we're facing (since it mentions numpy style and not even jupyterbook) but it might be a first step towards addressing our issue.

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.

2 participants