Skip to content

Commit

Permalink
docs-requirements.txt: Add sphinx-argparse
Browse files Browse the repository at this point in the history
Add the required module for the documentation page to work.
docs/Developers/Doc_coala_Settings.rst: Add the documentation page

Uses the module installed to generate the documentation page
using the default_arg_parser function.
docs/conf.py: Add the extension

Add the extension for sphinx in the configuration file
docs/index.rst:Adds Doc page in index
Add the documentation page in the index file so it appears.

Closes coala/documentation#40
  • Loading branch information
BrateS committed Dec 18, 2016
1 parent 7f4edb8 commit 9136c03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
-r requirements.txt
-r test-requirements.txt
sphinx~=1.4.9
sphinx-argparse~=0.1.15
7 changes: 7 additions & 0 deletions docs/Developers/coala_settings.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Documentation coala settings
============================

.. argparse::
:module: coalib.parsing.DefaultArgParser
:func: default_arg_parser
:prog: coala
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinxarg.ext',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ If you're trying to **use** coala, you should have a look at our
:hidden:

Newcomers' Guide <Developers/Newcomers_Guide>
Documentation coala settings <Developers/coala_settings>
Bear Installation Tool <Developers/Bear_Installation_Tool>
Writing Good Commit Messages <Developers/Writing_Good_Commits>
Codestyle <Developers/Codestyle>
Expand Down

0 comments on commit 9136c03

Please sign in to comment.