Skip to content

Commit

Permalink
Automock pulseio so RTD can build the docs.
Browse files Browse the repository at this point in the history
Also, fix DHTLib -> DHT
  • Loading branch information
tannewt authored Oct 16, 2017
1 parent 18084c6 commit f78ad3a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
'sphinx.ext.viewcode',
]

intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None),'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None),
'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),
'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}

autodoc_mock_imports = ["pulseio"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -26,7 +31,7 @@
master_doc = 'README'

# General information about the project.
project = u'Adafruit DHTLIB Library'
project = u'Adafruit CircuitPython DHT Library'
copyright = u'2017 Mike McWethy'
author = u'Mike McWethy'

Expand Down Expand Up @@ -91,7 +96,7 @@
html_static_path = ['_static']

# Output file base name for HTML help builder.
htmlhelp_basename = 'AdafruitDHTLIBLibrarydoc'
htmlhelp_basename = 'AdafruitCircuitPythonDHTLibrarydoc'

# -- Options for LaTeX output ---------------------------------------------

Expand All @@ -117,7 +122,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'AdafruitDHTLIBLibrary.tex', u'Adafruit DHTLIB Library Documentation',
(master_doc, 'AdafruitCircuitPythonDHTLibrary.tex', u'Adafruit CircuitPython DHT Library Documentation',
author, 'manual'),
]

Expand All @@ -126,7 +131,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'adafruitDHTLIBlibrary', u'Adafruit DHTLIB Library Documentation',
(master_doc, 'adafruitCircuitPythonDHTlibrary', u'Adafruit CircuitPython DHT Library Documentation',
[author], 1)
]

Expand All @@ -136,7 +141,7 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'AdafruitDHTLIBLibrary', u'Adafruit DHTLIB Library Documentation',
author, 'AdafruitDHTLIBLibrary', 'One line description of project.',
(master_doc, 'AdafruitCircuitPythonDHTLibrary', u'Adafruit CircuitPython DHT Library Documentation',
author, 'AdafruitCircuitPythonDHTLibrary', 'One line description of project.',
'Miscellaneous'),
]

0 comments on commit f78ad3a

Please sign in to comment.