1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
nix.dev/maintainers/how-to-contribute-to-documentation.md

9 KiB

How to contribute to documentation in the Nix ecosystem

If you want to help improving documentation, consider the following guidelines developed by the Nix documentation team.

Different audiences require different levels of sophistication, and both readers' and contributors' available time and expertise varies widely.

Use the following diagram to decide where to best put the results of your efforts, depending on how much time you can spend on refining them to get accepted.

The diagram shows a pipeline for contributions to learning materials and documentation. Arrows point towards

  • decreasing rate of change
  • increasing public visibility
  • increasing amount of scrutiny.

Communication platforms are distinguished by mode of interaction:

Streams can be appended to:

  • The amount of infomation in them grows without bounds.
  • Only recent items are relevant.

Artifacts can be changed:

  • The amount of information in them is strictly bounded.
  • All items should be up to date.
flowchart
  Matrix --> |filter| Discourse
  events[meetings and events] --> |report| Discourse
  external[external sources] --> |collect| Discourse
	Discourse --> |design| RFCs
  Discourse --> |change| code[source code]
  Discourse --> |learn| Wiki
	Wiki --> |refine| manuals --> |guide| dev[nix.dev] --> |overview| www[nixos.org]
	RFCs --> code --> |document| manuals
  subgraph stream
    Matrix
		events
		external
		Discourse
		RFCs
  end
  subgraph artifact
		Wiki
		code
		manuals
		dev
		www
  end

Communication channels

  • Matrix

    Use Matrix for casual communication.

    The documentation team frequents the Nix* Documentation room.

    Old messages are extremely improbable to be read by anyone.

    You can help by posting in the appropriate categories on Discourse what you have found valuable.

  • meetings and events

    Check the Discourse community calendar for real-time events.

    The documentation team holds regular meetings and posts meeting notes in the Documentation category.

    You can help by joining meetings to take notes or clean them up before publishing.

  • external sources

    The Internet is full of helpful resources concerning Nix.

    You can help by sharing in the Links category on Discourse what you have found valuable.

  • Discourse

    Discourse is the central community hub. This is the place for your questions, suggestions, and discussion.

    The documentation team monitors the Documentation category.

    Old threads and especially posts in long threads are improbable to be read by many people.

    You can help by

    • asking informed questions, showing what you have done so far
    • answering other people's questions
    • writing down what you have learned by updating or adding a NixOS Wiki article, nix.dev guide or tutorial, or one of the manuals
    • encouraging and helping people to incorporate their insights in the official documentation
  • Wiki

    NixOS Wiki is a collection of interlinked guides to solve common problems which are otherwise not well-documented. It is collectively edited by the community, covers a broad range of topics. It is only loosely organized, and does not impose quality standards. Its purpose is to quickly and conveniently collect insights and make them readily available for everyone.

    We recommend to use it as a dumping ground for more obscure Nix knowledge, and strive to make it smaller over time (see NixCon 2015: Make Nix friendlier for Beginners), by incrementally incorporating its contents into authoritative documentation and curated learning material.

    The documentation team monitors changes to maintain an overview of topics of interest and prevent vandalism.

    You can help with

    • improving discoverability by adding categorization and relevant links
    • clarifying articles and correcting errors
    • removing redundant information that is already present in curated sources
    • migrating information to other resources.

    Where to migrate what:

  • manuals

    The manuals for

    are purely reference documentation, specifying interfaces and behavior. They also show example interactions to show how to use its components, and explain mechanisms where necessary.

    The documentation team watches all pull requests to the manuals and assists contributors to get their changes merged.

    You can help by

    • working on Nixpkgs and NixOS issues or Nix issues concerning documentation
    • reviewing Nix pull requests and Nixpkgs and NixOS pull requests concerning documentation
    • making pull requests to
      • add links to definitions, commands, options, etc. where only the name is mentioned
      • correct obvious errors
      • clarify language
    • expanding on sections that appear incomplete
    • documenting how the manuals are organized and built
    • identifying sections that are not reference documentation and should be moved to nix.dev
  • nix.dev

    The purpose of nix.dev (source) is to guide newcomers by teaching essential Nix knowledge, show best practices, and help orient users in the Nix ecosystem. It goes into breadth, not depth.

    The documentation team maintains nix.dev as editors.

    You can help by

    New articles can be based on videos such as

    Since writing a guide or tutorial is a lot of work, please make sure to coordinate with nix.dev maintainers, for example by commenting on or opening an issue to make sure it will be worthwhile.

  • nixos.org

    The Nix project web site is nixos.org (source). Web site contents that concern learning Nix should reference or include material from nix.dev.

    The Nix marketing team is responsible for the web site, and the documentation team assists with maintaining contents related to onboarding new users.

Contributing to this guide

Do you have suggestions how to ease contributing to documentation in the Nix ecosystem? Please open a pull request to update this document with your proposals.

In case this guide moves, the following documents link here and should be updated: