salt/doc
Benjamin Drung e6cf3c4a94 Do not mock json when building the documentation
Building the documentation on Debian unstable with Python 3.7 fails:

```
debian-unstable$ HTML_THEME=saltstack make -C doc html
make: Entering directory 'doc'
No need to update translations. Skipping...
sphinx-build -b html -d _build/doctrees    . _build/html
Running Sphinx v1.7.9
loading translations [en]... done

Exception occurred:
  File "/usr/lib/python3/dist-packages/sphinx/util/jsonimpl.py", line 22, in <module>
    class SphinxJSONEncoder(json.JSONEncoder):
TypeError: __mro_entries__ must return a tuple
The full traceback has been saved in /tmp/sphinx-err-wzl9_n0k.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:72: html] Error 2
make: Leaving directory 'doc'
debian-unstable$ cat /tmp/sphinx-err-wzl9_n0k.log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/cmdline.py", line 303, in main
    args.warningiserror, args.tags, args.verbosity, args.jobs)
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line 187, in __init__
    self.setup_extension(extension)
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line 411, in setup_extension
    self.registry.load_extension(self, extname)
  File "/usr/lib/python3/dist-packages/sphinx/registry.py", line 315, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/usr/lib/python3/dist-packages/sphinx/builders/applehelp.py", line 20, in <module>
    from sphinx.builders.html import StandaloneHTMLBuilder
  File "/usr/lib/python3/dist-packages/sphinx/builders/html.py", line 43, in <module>
    from sphinx.util import jsonimpl, logging, status_iterator
  File "/usr/lib/python3/dist-packages/sphinx/util/jsonimpl.py", line 22, in <module>
    class SphinxJSONEncoder(json.JSONEncoder):
TypeError: __mro_entries__ must return a tuple
```

The json module is a standard module. I is always present. So do not mock it.

Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
2018-12-19 13:27:54 +01:00
..
_ext Don't import obsolete Directive class from Sphinx 2018-11-12 14:54:38 -06:00
_incl
_static Add NAPALM logo 2017-05-04 09:09:08 +00:00
_templates
_themes Update docbanner hyperlink 2018-11-08 17:05:13 -05:00
.scripts Fix all Sphinx warnings 2018-05-31 15:28:25 -05:00
.tx
cheatsheet
man Merge branch '2018.3.3' into '2018.3' 2018-09-30 12:39:44 -04:00
ref Merge branch '2017.7' into '2018.3' 2018-12-14 11:15:48 -05:00
security
topics Remove dunder_dictionaries.rst. Was added to modules/developing.rst 2018-12-14 12:55:39 -05:00
apidoc-saltmods.sh
conf.py Do not mock json when building the documentation 2018-12-19 13:27:54 +01:00
contents.rst Merge branch '2017.7' into '2018.3' 2018-06-01 14:54:12 -04:00
faq.rst Update docs to include references to new "sync" argument 2018-06-08 12:29:19 -05:00
favicon.ico Fix all Sphinx warnings 2018-05-31 15:28:25 -05:00
gen_gource
glossary.rst
Makefile Do not require sphinx-build for cleaning docs 2017-05-23 17:14:11 +02:00
spelling_wordlist.txt remove Stormpath module, states and docs 2017-08-14 16:03:00 -06:00