Add rst_prolog to docs/conf.py

This commit is contained in:
Mads Marquart
2019-07-03 17:46:42 +02:00
parent 47c744e5e2
commit d30589d1fa
7 changed files with 7 additions and 10 deletions

View File

@@ -54,6 +54,13 @@ master_doc = "index"
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
rst_prolog = """
.. highlight:: python
.. currentmodule:: {}
""".format(
project
)
# The reST default role (used for this markup: `text`) to use for all
# documents.
#

View File

@@ -1,4 +1,3 @@
.. highlight:: python
.. _examples:
Examples

View File

@@ -1,5 +1,3 @@
.. highlight:: python
.. currentmodule:: fbchat
.. _faq:
FAQ

View File

@@ -1,5 +1,3 @@
.. highlight:: python
.. currentmodule:: fbchat
.. fbchat documentation master file, created by
sphinx-quickstart on Thu May 25 15:43:01 2017.
You can adapt this file completely to your liking, but it should at least

View File

@@ -1,5 +1,3 @@
.. highlight:: python
.. currentmodule:: fbchat
.. _intro:
Introduction

View File

@@ -1,5 +1,4 @@
.. highlight:: sh
.. currentmodule:: fbchat
.. _testing:
Testing

View File

@@ -1,5 +1,3 @@
.. highlight:: python
.. currentmodule:: fbchat
.. _todo:
Todo