Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update template README.rst to match OEP-55 Guidelines #241

Merged
merged 3 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Changed
=======

- Re-ruled all the RST files to match the new docs guidance.
- Update template README.rst to match `OEP-55 Guidelines`_

.. _OEP-55 Guidelines: https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0055/decisions/0003-readme-specification.html

2022-07-17
**********
Expand Down
129 changes: 87 additions & 42 deletions python-template/{{cookiecutter.placeholder_repo_name}}/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,27 @@
#############################

|pypi-badge| |ci-badge| |codecov-badge| |doc-badge| |pyversions-badge|
|license-badge|
|license-badge| |status-badge|

{{ cookiecutter.project_short_description}}

The ``README.rst`` file should start with a brief description of the repository,
which sets it in the context of other repositories under the ``edx``
organization. It should make clear where this fits in to the overall edX
codebase.
Purpose
*******

Overview (please modify)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there should be some replacement for "(please modify)". Could be something like:

.. note::

  This README was auto-generated. The "Purpose" needs to be manually updated, and the rest of the README should be reviewed for potential updates.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@feanil: Can you confirm your intention? Not sure if you intentionally don't want to add a note, or if you just missed this. Thanks.

Also note that if you read the README, it is clear that it should be updated. But, I'm just wondering if anything can make it more clear for cases where your eyes are passing over it, but you aren't actually reading it. It might be that mu suggestion is no better than what is there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this the first time, I'll add it along with the other suggestions.

************************
{{ cookiecutter.project_short_description}}

The ``README.rst`` file should then provide an overview of the code in this
repository, including the main components and useful entry points for starting
to understand the code in more detail.
The ``README.rst`` file should start with a brief description of the repository and its purpose.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is merged already, but thinking about linting, and also for clarification: what if we started each paragraph like this with PLACEHOLDER:, then linted for the appearance of that word in READMEs? It would help everyone (maintainer and readers of the file) understand that the paragraph is just a placeholder, leave a strong signal that something needs to be done, and be easily lintable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I will make a PR with this change, and we can discuss there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be described in the context of other repositories under the ``openedx``
organization. It should make clear where this fits in to the overall Open edX
codebase and should be oriented towards people who are new to the Open edX
project.

Documentation
*************
Getting Started
***************

(TODO: `Set up documentation <https://openedx.atlassian.net/wiki/spaces/DOC/pages/21627535/Publish+Documentation+on+Read+the+Docs>`_)

Development Workflow
********************
Developing
==========

One Time Setup
==============
--------------
.. code-block::

# Clone the repository
Expand All @@ -39,7 +34,7 @@ One Time Setup


Every time you develop something in this repo
=============================================
---------------------------------------------
.. code-block::

# Activate the virtualenv
Expand All @@ -59,7 +54,7 @@ Every time you develop something in this repo
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim
vim ...

# Run your new tests
pytest ./path/to/new/tests
Expand All @@ -68,11 +63,53 @@ Every time you develop something in this repo
make validate

# Commit all your changes
git commit
git commit ...
git push

# Open a PR and ask for review.

Deploying
=========

How can a new user, go about deploying this component? Is it just a few commands? Is there a larger how-to that should be linked here?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
How can a new user, go about deploying this component? Is it just a few commands? Is there a larger how-to that should be linked here?
How can a new user go about deploying this component? Is it just a few commands? Is there a larger how-to that should be linked here?


For details on how to deploy this component, checkout the `deployment how-to`_

.. _deployment how-to: https://docs.openedx.org/projects/this-project/how-tos/how-to-deploy-this-component.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe {{cookiecutter.repo_name}} in here, too?

Suggested change
.. _deployment how-to: https://docs.openedx.org/projects/this-project/how-tos/how-to-deploy-this-component.html
.. _deployment how-to: https://docs.openedx.org/projects/{{cookiecutter.repo_name}}/how-tos/how-to-deploy-this-component.html


Getting Help
************

Documentation
=============

Start by going through `the documentation`_. If you need more help see below.

.. _the documentation: https://docs.openedx.org/projects/{{cookiecutter.repo_name}}

(TODO: `Set up documentation <https://openedx.atlassian.net/wiki/spaces/DOC/pages/21627535/Publish+Documentation+on+Read+the+Docs>`_)

More Help
=========
If you're having trouble, we have discussion forums at
https://discuss.openedx.org where you can connect with others in the
community.

Our real-time conversations are on Slack. You can request a `Slack
invitation`_, then join our `community Slack workspace`_.

robrap marked this conversation as resolved.
Show resolved Hide resolved
For anything non-trivial, the best path is to open an issue in this
repository with as many details about the issue you are facing as you
can provide.

https://github.com/openedx/{{ cookiecutter.repo_name }}/issues

For more information about these options, see the `Getting Help`_ page.

.. _Slack invitation: https://openedx.org/slack
.. _community Slack workspace: https://openedx.slack.com/
.. _Getting Help: https://openedx.org/getting-help

License
*******

Expand All @@ -81,37 +118,39 @@ otherwise noted.

Please see `LICENSE.txt <LICENSE.txt>`_ for details.

How To Contribute
*****************
Contributing
************

Contributions are very welcome.
Please read `How To Contribute <https://github.com/edx/edx-platform/blob/master/CONTRIBUTING.rst>`_ for details.
Even though they were written with ``edx-platform`` in mind, the guidelines
should be followed for all Open edX projects.
Please read `How To Contribute <https://openedx.org/r/how-to-contribute>`_ for details.

The pull request description template should be automatically applied if you are creating a pull request from GitHub. Otherwise you
can find it at `PULL_REQUEST_TEMPLATE.md <.github/PULL_REQUEST_TEMPLATE.md>`_.
This project is currently accepting all types of contributions, bug fixes,
security fixes, maintenance work, or new features. However, please make sure
to have a discussion about your new feature idea with the maintainers prior to
beginning development to maximize the chances of your change being accepted.
You can start a conversation by creating a new issue on this repo summarizing
your idea.

The issue report template should be automatically applied if you are creating an issue on GitHub as well. Otherwise you
can find it at `ISSUE_TEMPLATE.md <.github/ISSUE_TEMPLATE.md>`_.
The Open edX Code of Conduct
****************************

Reporting Security Issues
*************************
All community members are expected to follow the `Open edX Code of Conduct`_.

Please do not report security issues in public. Please email security@edx.org.
.. _Open edX Code of Conduct: https://openedx.org/code-of-conduct/

Getting Help
************
People
******

If you're having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.
The assigned maintainers for this component and other project details may be
found in `Backstage`_. Backstage pulls this data from the ``catalog-info.yaml``
file in this repo.

Our real-time conversations are on Slack. You can request a `Slack invitation`_, then join our `community Slack workspace`_.
.. _Backstage: https://open-edx-backstage.herokuapp.com/catalog/default/component/{{ cookiecutter.repo_name }}

For more information about these options, see the `Getting Help`_ page.
Reporting Security Issues
*************************

.. _Slack invitation: https://openedx.org/slack
.. _community Slack workspace: https://openedx.slack.com/
.. _Getting Help: https://openedx.org/getting-help
Please do not report security issues in public. Please email [email protected].

.. |pypi-badge| image:: https://img.shields.io/pypi/v/{{ cookiecutter.repo_name }}.svg
:target: https://pypi.python.org/pypi/{{ cookiecutter.repo_name }}/
Expand All @@ -136,3 +175,9 @@ For more information about these options, see the `Getting Help`_ page.
.. |license-badge| image:: https://img.shields.io/github/license/edx/{{ cookiecutter.repo_name }}.svg
:target: https://github.com/edx/{{ cookiecutter.repo_name }}/blob/main/LICENSE.txt
:alt: License

.. Choose one of the statuses below and remove the other status-badge lines.
.. |status-badge| image:: https://img.shields.io/badge/Status-Experimental-yellow
.. .. |status-badge| image:: https://img.shields.io/badge/Status-Maintained-brightgreen
.. .. |status-badge| image:: https://img.shields.io/badge/Status-Deprecated-orange
.. .. |status-badge| image:: https://img.shields.io/badge/Status-Unsupported-red