Skip to content

Commit c2f869f

Browse files
author
Thea Flowers
authored
Add documentation types to contributing guide, link to contributing from README (#485)
1 parent 2a15f31 commit c2f869f

2 files changed

Lines changed: 84 additions & 43 deletions

File tree

‎README.rst‎

Lines changed: 12 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,64 +9,33 @@ how to package and install distributions in Python using current tools.
99
To follow the development of Python packaging, see the `Python
1010
Packaging Authority <https://www.pypa.io>`_.
1111

12-
1312
Code of Conduct
1413
---------------
1514

1615
Everyone interacting in the Python Packaging User Guide project's codebases,
1716
issue trackers, chat rooms, and mailing lists are expected to follow the
1817
`PyPA Code of Conduct`_.
1918

19+
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
2020

21-
History
22-
-------
23-
24-
This Guide was forked from the “Hitchhiker's Guide to Packaging” in March 2013,
25-
which was maintained by Tarek Ziadé. Thank you Tarek for all your efforts in
26-
Python packaging.
27-
28-
29-
How to build this guide
30-
-----------------------
31-
32-
In order to build this guide locally, you'll need:
33-
34-
1. `Nox <https://nox.readthedocs.io/en/latest/>`_. You can install or upgrade
35-
nox using ``pip``::
36-
37-
pip install --upgrade nox-automation
38-
39-
2. Python 3.6. Our build scripts are designed to work with Python 3.6 only.
40-
See the `Hitchhiker's Guide to Python installation instructions <http://docs.python-guide.org/en/latest/starting/installation/>`__
41-
to install Python 3.6 on your operating system.
42-
43-
Building the Guide
44-
++++++++++++++++++
45-
46-
To build the guide, run the following bash command in the source folder::
47-
48-
nox -s build
49-
50-
After the process has completed you can find the HTML output in the
51-
``./build/html`` directory. You can open the ``index.html`` file to view the
52-
guide in web browser, but it's recommended to serve the guide using an HTTP
53-
server.
54-
55-
Serving the guide using a local HTTP server
56-
+++++++++++++++++++++++++++++++++++++++++++
57-
58-
You can build the guide and serve it via an HTTP server using the following
59-
command::
21+
Contributing
22+
------------
6023

61-
nox -s preview
24+
This guide is community-maintained and contributions are welcome! Please see the
25+
`contributing guide`_ for details on our writing style guide and how to build
26+
the guide locally to test your changes.
6227

63-
The guide will be browsable via http://localhost:8000.
28+
.. _contributing guide: https://packaging.python.org/contribute
6429

6530
License
6631
-------
6732

6833
The Python Packaging User Guide is licensed under a Creative Commons
6934
Attribution-ShareAlike license: http://creativecommons.org/licenses/by-sa/3.0 .
7035

36+
History
37+
-------
7138

72-
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
39+
This Guide was forked from the “Hitchhiker's Guide to Packaging” in March 2013,
40+
which was maintained by Tarek Ziadé. Thank you Tarek for all your efforts in
41+
Python packaging.

‎source/contribute.rst‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,78 @@ other unprofessional conduct is not acceptable.
2828
.. __: https://www.pypa.io/en/latest/code-of-conduct/
2929

3030

31+
Documentation types
32+
===================
33+
34+
This project consists of four distinct documentation types with specific
35+
purposes. When proposing new additions to the project please pick the
36+
appropriate documentation type.
37+
38+
Tutorials
39+
---------
40+
41+
Tutorials are focused on teaching the reader new concepts by accomplishing a
42+
goal. They are opinionated step-by-step guides. They do not include extraneous
43+
warnings or information. `example tutorial-style document`_.
44+
45+
.. _example tutorial-style document: https://docs.djangoproject.com/en/1.11/intro/
46+
47+
Guides
48+
------
49+
50+
Guides are focused on accomplishing a specific task and can assume some level of
51+
pre-requisite knowledge. These are similar to tutorials, but have a narrow and
52+
clear focus and can provide lots of caveats and additional information as
53+
needed. They may also discuss multiple approaches to accomplishing the task.
54+
`example guide-style document`_.
55+
56+
.. _example guide-style document: https://packaging.python.org/namespace_packages/
57+
58+
Discussions
59+
-----------
60+
61+
Discussions are focused on understanding and information. These explore a
62+
specific topic without a specific goal in mind. `example discussion-style
63+
document`_.
64+
65+
.. _example discussion-style document: https://packaging.python.org/requirements/
66+
67+
Building the guide locally
68+
==========================
69+
70+
Though not required to contribute, it may be useful to build this guide locally
71+
in order to test your changes. In order to build this guide locally, you'll
72+
need:
73+
74+
1. `Nox <https://nox.readthedocs.io/en/latest/>`_. You can install or upgrade
75+
nox using ``pip``::
76+
77+
pip install --user nox-automation
78+
79+
2. Python 3.6. Our build scripts are designed to work with Python 3.6 only.
80+
See the `Hitchhiker's Guide to Python installation instructions`_ to install
81+
Python 3.6 on your operating system.
82+
83+
.. _Hitchhiker's Guide to Python installation instructions:
84+
http://docs.python-guide.org/en/latest/starting/installation/
85+
86+
To build the guide, run the following bash command in the source folder::
87+
88+
nox -s build
89+
90+
After the process has completed you can find the HTML output in the
91+
``./build/html`` directory. You can open the ``index.html`` file to view the
92+
guide in web browser, but it's recommended to serve the guide using an HTTP
93+
server.
94+
95+
You can build the guide and serve it via an HTTP server using the following
96+
command::
97+
98+
nox -s preview
99+
100+
The guide will be browsable via http://localhost:8000.
101+
102+
31103
.. _contributing_style_guide:
32104

33105
Style guide

0 commit comments

Comments
 (0)