Beispiel #1
0
man_pages = [(master_doc, 'writethedocs', u'Write the Docs Documentation',
              [author], 1)]

texinfo_documents = [
    (master_doc, 'WritetheDocs', u'Write the Docs Documentation', author,
     'WritetheDocs', 'One line description of project.', 'Miscellaneous'),
]

suppress_warnings = ['image.nonlocal_uri']

# Our additions

html_context = {
    'conf_py_root': os.path.dirname(os.path.abspath(__file__)),
    'conferences': load_conference_data(),
}


def setup(app):
    app.connect('html-page-context', override_page_template)
    app.connect("source-read", rstjinja)
    app.connect("builder-inited", add_jinja_filters)
    app.add_directive('meetup-listing', MeetupListing)
    app.add_config_value(
        'recommonmark_config', {
            'auto_toc_tree_section': 'Contents',
            'enable_auto_doc_ref': True,
            'enable_eval_rst': True,
        }, True)
    app.add_transform(AutoStructify)
Beispiel #2
0
     [author], 1)
]

texinfo_documents = [
    (master_doc, 'WritetheDocs', u'Write the Docs Documentation',
     author, 'WritetheDocs', 'One line description of project.',
     'Miscellaneous'),
]

suppress_warnings = ['image.nonlocal_uri']

# Our additions

html_context = {
    'conf_py_root': os.path.dirname(os.path.abspath(__file__)),
    'conferences': load_conference_data(),
}

# Uncomment this line to generate videos
# html_context.update(main())

# html_experimental_html5_writer = True

notfound_no_urls_prefix = True


def setup(app):
    # Set up our custom jinja filters
    app.connect("builder-inited", add_jinja_filters)

    # Transform RST with Jinja, using proper context