nix.dev icon indicating copy to clipboard operation
nix.dev copied to clipboard

Task: Document how to take ownership over a manual section

Open infinisil opened this issue 1 year ago • 6 comments

If you're interested in working on this task, reply in this issue to make sure the work isn't duplicated!

What

A section to describe what it means to take ownership over a manual section.

Key points:

  • This is specifically for the Nix manual, Nixpkgs manual and NixOS manual
  • Prerequisites is to have experience with the subject matter
  • Include the general maintainer responsibilities section
  • Determine the types of documentation contained in the section according to Diátaxis and move it accordingly:
  • Determine the support status of the documentation and move it to the correct place:
    • Only projects under the NixOS GitHub organisation should be in the manual
    • If the docs are for a third-party project, make a PR with the docs to that project and link to the result
  • Improve quality of existing reference documentaton
    • Are API listings complete?
    • Does every interface listing provide fully working, concise examples? (no placeholders)
    • All attributes and arguments should be fully documented including typing information, defaults and semantics
      • check if an (fragment) example is needed to demonstrate how it's used

How

  • Where to put the result: A new section under https://nix.dev/contributing/ (source)
  • Estimated effort: 2 hours
  • Related:
    • https://discourse.nixos.org/t/documentation-team-call-for-maintainers/25970
    • https://github.com/NixOS/nix.dev/blob/master/maintainers/responsibilities.md
  • Person to contact for help and review: @infinisil

infinisil avatar Apr 04 '23 12:04 infinisil

  • how are anchor-level redirects handled in the Nixpkgs and NixOS manuals?

basically, not. the docbook toolchain did not have (or never used) any facility to redirect from old anchors to new locations, and the nixos manual as produced by nixos-render-docs inherited that inability. it should be fairly easy to add support for that into either with a bit of javascript, although we'd probably want to integrate that into nixos-render-docs at least somewhat to ensure that redirected anchors aren't reused.

pennae avatar Apr 05 '23 02:04 pennae

Would it make sense to adopt the script from the Nix manual? Quite some thought went into that by previous maintainers, and I invested more effort to make it as readable as possible.

fricklerhandwerk avatar Apr 05 '23 07:04 fricklerhandwerk

sure, why not. and even if it proves to not be perfect for our use cases in the nixos/nixpkgs manuals, it's almost certainly a better place to start from than a void :)

pennae avatar Apr 05 '23 07:04 pennae

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-04-04-documentation-team-meeting-notes-38/27000/1

nixos-discourse avatar Apr 05 '23 08:04 nixos-discourse

@pennae Added a Nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/224808

fricklerhandwerk avatar Apr 05 '23 11:04 fricklerhandwerk

To take ownership of a manual section, we should update CODEOWNERS or maintainers.nix or other, once the appropriate infrastructure is in place: https://github.com/NixOS/nix.dev/issues/543

proofconstruction avatar Jul 06 '23 14:07 proofconstruction