Skip to content

[INTT-49] feat: Autogenerate documentation for module#19

Draft
RasmusRendal wants to merge 3 commits into
mainfrom
RasmusRendal/gen_docs
Draft

[INTT-49] feat: Autogenerate documentation for module#19
RasmusRendal wants to merge 3 commits into
mainfrom
RasmusRendal/gen_docs

Conversation

@RasmusRendal

Copy link
Copy Markdown
Contributor

If we want people who also have other things in their life outside of Nix
to use this, we probably want a nicer overview of the options, besides
just looking at the source code.

Apparently, by default the flake.parts-website module results in the
default package being the generated documentation. But I don't actually
think this is a problem.

@RasmusRendal RasmusRendal force-pushed the RasmusRendal/gen_docs branch from b4aeca9 to f1f0f91 Compare June 4, 2026 09:31
This introduces a basic repository structure that does not yet define
any real standards, but simply sets up the project sufficiently to
base future work on.

@tlater-famedly tlater-famedly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We discussed this at the summit, but for posterity, we decided not to merge this.

In part because of the comment below, but the generated docs are also not quite good enough for our purposes (e.g. the installation instructions are just wrong).

We'd like to simply implement what is needed for this ourselves; it's not exactly rocket science. pkgs.nixosOptionsDoc does most of the heavy lifting without pulling in any additional software sources, we just need to hook calling it up to a package and add a bit of fluff.

Comment thread flake.lock

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a lot of dependency burden for no good reason. This kind of sprawl is a supply chain risk, but also makes nix operations much slower than need-be.

Some dependencies are expected, but literally 4000 lines' worth just for nix doc codegen is excessive.

If we want people who also have other things in their life outside of Nix
to use this, we probably want a nicer overview of the options, besides
just looking at the source code.

Apparently, by default the flake.parts-website module results in the
`default` package being the generated documentation. But I don't actually
think this is a problem.
@RasmusRendal RasmusRendal force-pushed the RasmusRendal/gen_docs branch from f1f0f91 to 9cfe764 Compare June 8, 2026 07:57
@RasmusRendal RasmusRendal changed the base branch from tlater/incremental to tlater/skeleton June 8, 2026 07:57
@tlater-famedly tlater-famedly force-pushed the tlater/skeleton branch 9 times, most recently from a7c8220 to 09d1f18 Compare June 8, 2026 20:33
Base automatically changed from tlater/skeleton to main June 9, 2026 08:52
@tlater-famedly tlater-famedly changed the title feat: Autogenerate documentation for module [INTT-49] feat: Autogenerate documentation for module Jun 10, 2026
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