Our documentation environment is outdated and fails when a new mistune markdown parser version is used automatically. This causes failure to set up m2r and the whole documentation build process fails:
mistune
m2r
https://readthedocs.org/projects/freeipa/builds/16805151/
Running Sphinx v2.4.5 loading translations [en]... done Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/sphinx/cmd/build.py", line 275, in build_main args.tags, args.verbosity, args.jobs, args.keep_going) File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 245, in __init__ self.setup_extension(extension) File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 397, in setup_extension self.registry.load_extension(self, extname) File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/sphinx/registry.py", line 453, in load_extension mod = import_module(extname) File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/m2r.py", line 59, in <module> class RestBlockGrammar(mistune.BlockGrammar): AttributeError: module 'mistune' has no attribute 'BlockGrammar' Exception occurred: File "/home/docs/checkouts/readthedocs.org/user_builds/freeipa/envs/latest/lib/python3.7/site-packages/m2r.py", line 59, in <module> class RestBlockGrammar(mistune.BlockGrammar): AttributeError: module 'mistune' has no attribute 'BlockGrammar'
It is possible to update to Sphinx 4.5 and also switch to m2r2, an updated fork of m2r to fix these issues.
m2r2
For external IdP design docs we also need plantuml support, which needs to install plantuml and fonts to the readthedocs environment. This is possible by adding .readthedocs.yaml configuration file.
plantuml
.readthedocs.yaml
master:
ipa-4-9:
Metadata Update from @abbra: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)