Skip to content

[DOCS] Contributor Guide: Needed Review, Refresh, and Jumping Off Point #58703

Closed

Description

@ScriptAutomate

Description

There are many separate contributor guides scattered throughout the salt project.

Most people expect CONTRIBUTING.md to be in the root of the repo. Ours is in .github/CONTRIBUTING.md, so it is hidden in a way. It means people would likely go to CONTRIBUTING.rst instead, which we also have.

GitHub, though, is using automation to reference .github/CONTRIBUTING.md when on the contribute page:

GitHub's doc on the contributing guide in repos, and how it automatically referenced: https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/setting-guidelines-for-repository-contributors

Suggested Fix

We should consolidate contributor guide information where possible, remove out-dated/unnecessary contributor docs, and probably use a CONTRIBUTING.md file in the root of the repo as a jumping-off point to the rest of the HTML contributing docs, depending on what a contributor wants to do. Unless we wish to keep it in .github. In my opinion, this would involve reviewing, pulling from, and deleting the CONTRIBUTING.rst and HACKING.rst files.

@waynew had an idea of a "Choose Your Own Adventure" type of contributor guide landing page, which may be good to take into account and adopt:

We should review the following in the root of the repo to consolidate, update, remove if needed, etc.:

Whatever path we take, it looks like we would need to update the MANIFEST.in file, which I'm not sure what that is used for, but it does reference these files and may need including of the CONTRIBUTING.md file that is created.

The README.md file in the root should also link to the contributing guide somewhere, as it makes it an easy way to find the contributor guide, and also appears elsewhere such as in PyPi when a new release is cut:

Contributing to Documentation

Part of this needs review, revision, and consolidation of how to contribute to documentation. We can draw from the recent Docs Clinic:

The sections of interest which are all related specifically to contributing to documentation:

Activity

  1. added
    documentation
    on Oct 9, 2020
  2. added this to the Approved milestone on Oct 9, 2020
  3. ScriptAutomate commented on Dec 10, 2020

    @ScriptAutomate
    ContributorAuthor

    These are notes taken from review of #57645, which is addressing some baseline improvements around documentation.

    I'm thinking we should do the following:

    # HACKING.rst -> CONTRIBUTING.rst
    pkg/suse/salt.spec:782:%doc LICENSE AUTHORS README.rst HACKING.rst README.SUSE
    MANIFEST.in:4:include HACKING.rst
    

    We can have CONTRIBUTING.rst get pulled in as the new contents of https://docs.saltstack.com/en/latest/topics/development/hacking.html (and rst include call), where we then will have the contributing guide in both the GitHub repo root (for easy access and reference via GitHub or source code), and in the Sphinx-generated documentation, without having duplicate files.

    This would do some nice, significant cleanup and reduce a lot of confusion. Either it should be done within this PR, or in a PR directly following the merge of this PR.

    We need to discuss this with @bryceml and @frogunder to ensure that these filenames aren't referenced in the build/release pipelines and processes before merging a PR with these kinds of changes.

  4. barbaricyawps commented on Dec 17, 2020

    @barbaricyawps
    Contributor

    Here's an example of a really great contributing guide that uses a choose-your-own-adventure organization style: https://intellij-asciidoc-plugin.ahus1.de/docs/contributors-guide/index.html

  5. ScriptAutomate commented on Jan 14, 2021

    @ScriptAutomate
    ContributorAuthor

    This issue is resolve by the combination of work from #57645 and #59289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Epicdocumentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions