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. # This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] 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 # The reST default role (used for this markup: `text`) to use for all
# documents. # documents.
# #

View File

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

View File

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

View File

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

View File

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

View File

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