-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Context
Currently our documentation does not contain any complete CRD reference. For Spark there is a manually maintained page. Such a reference would list all the CRD config options and what they are for, how they relate to other options, what the default is (if any) and if it is mandatory. This is an essential part of the documentation and completements tutorials, guides and conceptual page
Objective
The reference documentation for all our CRDs needs to be generated (maintaining it by hand is not feasible) and hosted. Whether this can be integrated into the existing Antora docs or whether it will be separate is not so important for now.
We need to control the generation and hosting though.
Ideally the docs would be static generated files.
Evaluated options so far
Various generators
#238. We found that a lot of the tools to generate docs were not well maintained or didn't work for Rust code.
crds.dev
@sbernauer found https://github.com/crdsdev/doc , which generates docs, i.e. https://doc.crds.dev/github.com/stackabletech/[email protected]
- 192 GitHub stars.
- Last significant dev activity 2 years ago
- no documentation. Especially no docs on how to build it or host it.
- Hosted service, looks like it requires storage or a backend DB - not an ideal fit for us, it would be better if we got static files to host.
- Generated docs look good and useful!
Next Steps
crds.dev
- further evaluate crds.dev and explore/spike different options of hosting/running it.
- should we host it? It is an "active" service with storage, we need a different hoster that goes beyond static sites.
- can we somehow turn it into a site generator, and pre-generate the docs for our CRDs? This could either be generated
adoc
pages for antora, or just pregenerated HTML that we can host, possibly on a different subdomain (i.e.apidocs.stackable.tech
).
- set it up
- optional: style it with Stackable branding
build custom generator
Should we look into building our own generator? Would be interesting to spike this.
Upsides: we get more info in the Rust code than in the CRD: We know that there are common structs (i.e. S3Bucket) and we can generate docs for these structs specifically.
It would be cool to have such an open source tool for the community
Downside: probably a lot of work/more work than we think.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status