~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/sphinxconf.py

  • Committer: Barry Warsaw
  • Date: 2009-06-30 10:14:49 UTC
  • Revision ID: barry@list.org-20090630101449-hn6q37pycyughgpa
Integrate pylint and Sphinx documentation buildout targets.

* bin/lint.sh runs the linter (be very afraid)
* bin/docs runs Sphinx over the documentation (needs refining)

src/sphinxconf.py is an ugly hack to hook the buildout recipe so that we can
ignore text files in our tree that are not documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Sphinx documentation configuration file.
 
2
def setup(app):
 
3
    # hack the 'exclude_trees' configuration value so that our bounce examples
 
4
    # aren't interpreted as documentation.
 
5
    app.config.config_values['exclude_trees'][0].extend([
 
6
        'tests/bounces',
 
7
        'templates',
 
8
        ])