Replies: 4 comments 5 replies
-
There is no sphinx plugin at the moment, but we would love for there to be one, not least because it's a future option for generating Pants's own docs (we currently use readme.com, but it's pretty limited). There is some concurrent discussion of support for Jupyter Book: #17789 which is related |
Beta Was this translation helpful? Give feedback.
-
@benjyw or any other pants dev/contributor: Do you have any hypotheticals/ideas for how pants would support building documentation? Some open questionsDoes it make sense for sphinx-collections to be integrated into pants or is the "driver" functionality in sphinx-collections something that pants can take care of itself? We are asking similar questions here: useblocks/sphinx-collections#8 I am not an expert yet in either system, their feature parities, or how people have managed documentation for monorepos in the past so I'm looking for guidance from the community on this matter. Any help is much appreciated as it is a topic that I'm currently very interested in helping out with. |
Beta Was this translation helpful? Give feedback.
-
OK, having skimmed those resources. I think, and could be wrong, that Pants should be the "driver" and should not use sphinx-collections. The reason is that Pants is already really good at gathering files from all over the codebase and nesting them into a single tree. It does this a lot with code - e.g., creating a single package hierarchy from a bunch of different source roots. So doing so with documentation files seems directly analogous? |
Beta Was this translation helpful? Give feedback.
-
If pants should be the "driver" what would a documentation layout for a large monorepo look like that follows PEP 420? See this issue thread for discussions to possibilities of proposed monorepo directory layouts: |
Beta Was this translation helpful? Give feedback.
-
Hi, does pants have a way to build documentation for monorepos with sphinx or mkdocs?
Should that feature/functionality be handled by pants?
I think maybe?
What do you think?
The projects that I've come across that try to provide monorepo support for sphinx or mkdocs seem very experimental.
I wonder if pants can help here...
Beta Was this translation helpful? Give feedback.
All reactions