123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import collections
- import pathlib
- import subprocess
- import recommonmark.parser
- project = 'Graphene'
- copyright = '2019, Graphene Contributors'
- author = 'Graphene Contributors'
- version = ''
- release = ''
- extensions = [
- 'sphinx.ext.autodoc',
- 'sphinx.ext.todo',
- 'breathe',
- 'recommonmark',
- 'sphinx_rtd_theme',
- ]
- templates_path = ['_templates']
- source_suffix = {
- '.rst': 'restructuredtext',
- '.md': 'markdown',
- '.markdown': 'markdown',
- }
- master_doc = 'index'
- language = None
- exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
- pygments_style = None
- rst_prolog = '''
- .. |nbsp| unicode:: 0xa0
- :trim:
- '''
- breathe_default_project = 'graphene'
- breathe_projects = {breathe_default_project: '_build/doxygen/xml'}
- def generate_doxygen(app):
- subprocess.check_call(['doxygen', 'Doxyfile'])
- def setup(app):
- app.connect('builder-inited', generate_doxygen)
- todo_include_todos = True
- html_theme = 'sphinx_rtd_theme'
- html_static_path = ['_static']
- man_pages = [
- ('manpages/pal_loader', 'pal_loader', 'FIXME Loader', [author], 1),
- ]
- assert (collections.Counter(str(p.with_suffix(''))
- for p in pathlib.Path().glob('manpages/*.rst')
- if not p.stem == 'index')
- == collections.Counter(source
- for source, *_ in man_pages))
|