If I wanted to add a documentation generation step...
# general
i
If I wanted to add a documentation generation step with https://pdoc3.github.io/pdoc/ , am I correct to assume that I should handle it as a codegen plugin and start from the codegen tutorial? Is there anything similar for javadoc that I could replicate?
h
Possibly, but it might also makes sense to create a custom doc goal. I I don't think we have any special Java Doc integration yet. Do you know already how you would do this without pants, eg the argv to run?
w
it’s also possible that
package
+ a specific documentation target would make sense
đź’Ż 1
h
Not sure about that
Or maybe yes? Can bikeshed 🙂
w
my thinking with the documentation target is that generally people want a documentation artifact (something that they can
publish
somewhere)
âž• 1
although Java/Scala support a special artifact type “attached” to a JAR, it’s frequently also the case that people want to publish the documentation to be hosted on an HTTP server, for example. and that latter case (“documentation artifact”) is a common thread across all languages i’ve encountered… sphinx, javadoc, cargo doc, etc
âž• 1
it’s also usually the case that your published API docs in monorepos are monolithic… repo or project wide, basically. it’s rare for them to be per-library.
h
True, and there is probably artifact-specific config (e.g., HTTP style information) that needs to go somewhere
đź‘Ť 1