Skip to content

Generate documentation for language specific libraries in nixpkgs manual #126375

Description

@sternenseemann

Some ecosystems in nixpkgs have their own specific library with a set of helper functions. Ones that I know of are coqPackages and haskellPackages. It would be nice if we could have their documentation generated and added to the nixpkgs manual as well.

As far as I can see it the following items would be required to make this possible:

  • Patch nixdoc to allow specifying the prefix in an alternative way: Instead of lib.${category}, we'd need to be able to specify haskell.lib or coqPackages.lib
  • Allow alternative lib source locations in doc/doc-support/lib-function-docs.nix
  • Make doc/doc-support/lib-function-locations.nix understand the alternative locations
  • Decide where to include the documentation — in the language specific section would be nice, but this does not seem to be possible easily since our markdown based setup for those sections doesn't allow inclusions of sub sections (?!). Alternatively we can use the default lib section where lib.* is documented currently.

cc @tazjin (nixdoc) @ryantm (mmdoc) @NixOS/haskell @CohenCyril (Coq extra-lib)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: coqA formal proof management system6.topic: documentationMeta-discussion about documentation and its workflow6.topic: haskellGeneral-purpose, statically typed, purely functional programming language
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions