@@ -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
33105Style guide
0 commit comments