Skip to content

Add typedoc setup and integrate into main docs #13213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

laymonage
Copy link
Member

@laymonage laymonage commented Jul 7, 2025

npm i
npm run build-docs
make livehtml

https://wagtail--13213.org.readthedocs.build/en/13213/reference/ui/index.html

TBD, whether to:

Integrating with sphinx-js still has some blockers, e.g. pyodide/sphinx-js#275. I also couldn't get typedoc-plugin-mdn-links to work with it, unfortunately.

@laymonage laymonage force-pushed the docs/typedoc branch 2 times, most recently from f9462ae to 95e78c6 Compare July 10, 2025 13:18
@laymonage laymonage marked this pull request as ready for review July 10, 2025 13:25
@laymonage laymonage requested a review from thibaudcolas July 10, 2025 13:25
@laymonage laymonage changed the title Add typedoc setup Add typedoc setup and integrate into main docs Jul 10, 2025

## Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as [`wagtail`](https://www.npmjs.com/package/wagtail).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing all this since I don't see any movement towards this effort in the years since this was introduced: https://github.com/wagtail/wagtail/commits/main/client/README.md

and I don't see us heading towards that direction any time soon.

Comment on lines +195 to +197
myst_enable_extensions = [
"attrs_inline",
]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for the .external link modifier in reference/client.md to work, so that the relative link to the client-side docs is resolved as an external link instead of treated as a Sphinx document link.

See:

Comment on lines 5 to 9
```{include} ../../client/README.md
:end-before: <!-- END -->
```

[Proceed to the client-side API documentation.](./client/index.html){.external}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows us to reuse the same paragraphs for the intro in both the Sphinx docs and the Typedoc docs, but with different links to navigate to each other.

Ref: https://mystmd.org/guide/embed#docs-include

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

1 participant