Skip to content

Commit 774bfcc

Browse files
adammichaelwoodyanokwa
authored andcommitted
WIP: Contrib guide update (#845)
Rewrite docs tech guide
1 parent 9a6f2e8 commit 774bfcc

9 files changed

+1273
-699
lines changed

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ tmp*
2121
style-checks.py
2222
extra.py
2323

24-
# Testing
24+
# testing
2525
.hypothesis/
2626
.pytest_cache/
2727

2828
# IDE files
29-
.idea/
29+
.idea/
30+
.vscode/

odk1-src/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ def setup(app):
281281
.. role:: arg
282282
:class: arg
283283
"""
284+
# if you add lines to rst_prolog,
285+
# please update the note about warnings offsets
286+
# in shared-src/docs-tech-guide.rst
284287

285288
# At bottom of every document
286289
download_pdf = """

requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ MarkupSafe==1.0
1818
more-itertools==4.3.0
1919
olefile==0.46
2020
pathtools==0.1.2
21-
Pillow==4.3.0
21+
Pillow>=4.3.0
2222
pluggy==0.7.1
2323
port-for==0.3.1
2424
proselint==0.10.2
@@ -32,12 +32,12 @@ requests==2.14.2
3232
six==1.10.0
3333
smmap2==2.0.4
3434
snowballstemmer==1.2.1
35-
Sphinx==1.6.6
3635
sphinx-autobuild==0.7.1
3736
sphinx-rtd-theme==0.4.1
3837
sphinx-tabs==1.1.7
38+
Sphinx==1.6.6
3939
sphinxcontrib-spelling==4.2.0
4040
sphinxcontrib-websupport==1.0.1
4141
tornado==5.1.1
4242
typing==3.6.1
43-
watchdog==0.9.0
43+
watchdog==0.9.0

shared-src/_static/js/custom.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// This JS file is in shared-src.
12
// Implement Details-like hide/show on class "details"
23

34
$(function(){

shared-src/docs-developer-guide.rst

+16
Original file line numberDiff line numberDiff line change
@@ -340,3 +340,19 @@ To exclude an built-in proselint check,
340340
specify the check name in the check list
341341
in the function :py:func:`exclude_checks`
342342
in the file :file:`style-test.py`.
343+
344+
345+
346+
347+
348+
349+
350+
..
351+
If you are working on
352+
the design, testing, or deployment of the docs,
353+
you might need to install an additional PyPi package.
354+
If so,
355+
please update the :file:`requirements.txt` file with
356+
:command:`pip freeze > requirements.txt`.
357+
Pull requests which change :file:`requirements.txt`
358+
should include a note about why the new package is needed.

shared-src/docs-extras.rst.scratch

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Ideally, each issue represents a single small project
2+
to fix one well-defined problem with the documentation.
3+
Examples of well-defined single issues include:
4+
5+
- Write a section to the form questions document describing new type of question
6+
- Fix the formatting in the contributor's guide
7+
- Redirect old page URI to new
8+
- Add style testing for ODK2 branding
9+
- Change the display font
10+
11+
As these examples show, documentation projects include:
12+
13+
- writing new documentation
14+
- editing existing documentation
15+
- coding related to the design of the documentation website
16+
- coding related to how the documentation is built, tested, and published
17+
18+
This means that, whatever your skill or interest,
19+
there is probably an issue you can work on.
20+
21+
Sometimes, issues are not well defined yet.
22+
This might be because we only have a vague idea of a need,
23+
or because we're not yet sure how to solve a problem,
24+
or because no one has had the time to write down the details.
25+
As you are getting started,
26+
try to focus on issues that have a clear goal.
27+
Once you have some experience with the documentation,
28+
you can start to help clarify issues so we can move forward on them.
29+
30+
31+
32+
33+
34+
35+
.. note::
36+
37+
If you rename a document file (:file:`*.rst`),
38+
be sure that you add the redirect in your PR.
39+
40+
To add the redirect, go to :file:`s3_website.yml`,
41+
and add a mapping from the old file name to the new file name
42+
below the **redirects:** line, one mapping per line.
43+
44+
If you have renamed :file:`old-name.rst` to :file:`new-name.rst`:
45+
46+
.. code-block:: yaml
47+
48+
redirects:
49+
old-name/index.html: new-name
50+
51+
Notice the inclusion of ``/index.html`` on the left side.
52+

shared-src/docs-style-guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*****************
2-
Style Guide
2+
Docs Style Guide
33
*****************
44

55
.. _spelling-and-grammar:

0 commit comments

Comments
 (0)