Skip to content

Commit efc1652

Browse files
author
DennisClark
committed
New document to explain document maintenance
1 parent ece7321 commit efc1652

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

docs/source/doc_maintenance.rst

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Document Maintenance
2+
====================
3+
4+
Sphinx
5+
------
6+
7+
Install Sphinx on your local machine.
8+
See http://www.sphinx-doc.org/en/master/usage/installation.html
9+
10+
11+
Clone AboutCode
12+
---------------
13+
14+
Create or identify a working directory on your local machine.
15+
16+
Open that directory and execute the following commands in a terminal session::
17+
18+
git clone https://github.com/nexB/aboutcode.git
19+
git status
20+
cd docs
21+
make html
22+
23+
Assuming that your Sphinx installation was successful, Sphinx should build a local instance of the documentaiton .html files::
24+
25+
open build/html/index.html
26+
27+
You now have a local build of the AboutCode documents.
28+
29+
Improve AboutCode Documents
30+
---------------------------
31+
32+
Before you begin creating and modifying AboutCode documents, be sure that you understand the basics of reStructuredText as explained at http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
33+
34+
Ensure that you have the latest AboutCode files::
35+
36+
git pull
37+
git status
38+
39+
Use your favorite text editor to create and modify .rst files to make your documentation improvements.
40+
41+
Review your work::
42+
43+
cd docs
44+
make html
45+
open build/html/index.html
46+
47+
Share AboutCode Document Improvements
48+
-------------------------------------
49+
50+
Follow standard git procedures to upload your new and modified files. The following commands are examples::
51+
52+
git status
53+
git add docs/source/index.rst
54+
git add docs/source/how-to-scan.rst
55+
git status
56+
git commit -m "New how-to document that explains how to scan"
57+
git status
58+
git push
59+
git status
60+
61+
The AboutCode webhook with ReadTheDocs should rebuild the documentation. You can review your results online.

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Guide
99

1010
license
1111
help
12+
doc_maintenance
1213

1314

1415
Tutorial Documents

0 commit comments

Comments
 (0)