Looks like documentation build fails with exception like below
```console
+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v7.1.2
making output directory... done
myst v2.0.0: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions={'smartquotes', 'html_image', 'substitution', 'dollarmath', 'replacements', 'strikethrough', 'attrs_inline', 'attrs_block', 'fieldlist', 'linkify', 'colon_fence', 'amsmath', 'html_admonition', 'tasklist', 'deflist'}, disable_syntax=[], all_links_external=False, url_schemes=('http', 'https', 'mailto', 'ftp', 'wiki', 'doi', 'gh-pr', 'gh-issue', 'gh-user'), ref_domains=None, fence_as_directive=set(), number_code_blocks=['typescript'], title_to_header=False, heading_anchors=2, heading_slug_func=None, html_meta={}, footnote_transition=True, words_per_minute=200, substitutions={role: ..., directive: ...}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=True, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=True, suppress_warnings=[], highlight_code_blocks=True)
[Autodoc2] Analysing package...[ 4%] myst_parser.__init__
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/events.py", line 96, in emit
results.append(listener.handler(self.app, *args))
File "/usr/lib/python3.8/site-packages/autodoc2/sphinx/extension.py", line 76, in run_autodoc
mod_path = run_autodoc_package(app, config, i)
File "/usr/lib/python3.8/site-packages/autodoc2/sphinx/extension.py", line 164, in run_autodoc_package
for data in analyse_module(mod_path, mod_name):
File "/usr/lib/python3.8/site-packages/autodoc2/analysis.py", line 41, in analyse_module
yield from walk_node(
File "/usr/lib/python3.8/site-packages/autodoc2/analysis.py", line 105, in walk_node
yield from func(node, state)
File "/usr/lib/python3.8/site-packages/autodoc2/analysis.py", line 116, in yield_module
"doc": fix_docstring_indent(node.doc),
AttributeError: 'Module' object has no attribute 'doc'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 285, in build_main
app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 268, in __init__
self._init_builder()
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 339, in _init_builder
self.events.emit('builder-inited')
File "/usr/lib/python3.8/site-packages/sphinx/events.py", line 107, in emit
raise ExtensionError(__("Handler %r for event %r threw an exception") %
sphinx.errors.ExtensionError: Handler for event 'builder-inited' threw an exception (exception: 'Module' object has no attribute 'doc')
Extension error (autodoc2.sphinx.extension):
Handler for event 'builder-inited' threw an exception (exception: 'Module' object has no attribute 'doc')
```
Expected Behavior
Documentation build should be OK.
To Reproduce
Just execute for example sphinx-build -n -T -b man docs build/sphinx/man in source tree.
What version of
myst-parser
are you using?2.0.0
What version dependencies are you using?
Here is list of installed modules in build env
What operating system are you using?
Linux
Describe the Bug
Looks like documentation build fails with exception like below
Expected Behavior
Documentation build should be OK.
To Reproduce
Just execute for example
sphinx-build -n -T -b man docs build/sphinx/man
in source tree.