Skip to content

Code review policy proposal: Document it! #924

@MarkTraceur

Description

@MarkTraceur

So, there's a problem with our current documentation. It's on GitHub.

Now, that on its own isn't necessarily bad, but there are two resulting issues:

  1. It's all online, no offline documentation.
  2. You cannot contribute documentation in parallel to code, you have to either contribute the docs to any new hooks before your pull request is accepted or after, and neither of those is an awesome choice.

Possible solutions:

  1. Include documentation in the repo, in the doc/ directory. This means no huge effort, except for moving the existing docs over, which isn't too hard. It also means an easy way to do code review--if the new hook doesn't include a patch of doc/plugin-api.txt, don't accept the patch (and of course give a reason!)
  2. Build a system that allows conditional, asynchronous commits to some external documentation source. This could be a MediaWiki instance, maybe the GitHub wiki (but I can't be sure it would be easy), or whatever. Basically someone would need to periodically run a script (cron job?) that checked for newly-merged pull requests, then conditionally added documentation (or changed the state of existing documentation) that was tied to those pull requests. This isn't totally perfect, because it's fake-async (check every 5 minutes, could have 4 minutes 59 seconds of fail, check every 5 seconds, could use a lot of power and resources).

Ideally, go for number 1. Let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions