-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore rst_prolog
option for function documentation
#425
Comments
PR with a fix is welcome (with tests). Thanks! |
Similarly, adding any sort of replacement in rst_prolog = """
.. |pyngrok_version| replace:: {pyngrok_version}
""".format(pyngrok_version=version) replaces every typedoc hint, whether it matches the replacement string or not (in this case, Presumably it's finding the union Solution until this is fixed is to pin back the version:
|
@flying-sheep can you take a look at this regression? |
Should be simple: #436 The You just need to add a test and it should be ready to go. |
Since #422 has been merged , the function documentation contains the
rst_prolog
option text.The
rst_prolog
option is automatically inserted at the beginning of each source file read.I currently use it to globally limit the toc tree depth.
With the changes in #422, the documentation of the individual functions is written to temporary rst files and then evaluated, as far as I understand it. This ensures that sphinx inserts the rst_prolog value and
sphinx-autodoc-typehints
seems to interpret this value not as an rst directive but as a string.The text was updated successfully, but these errors were encountered: