how to make sphinx.ext.todo render in a docstring with sphinx.ext.napoleon #12306
-
Hi, I just build the todo extension (https://github.com/raybellwaves/myfavdocs/blob/main/make_files.sh#L114-L258) but is isn't rendering as expected when I add it to a docstring (https://raybellwaves.github.io/myfavdocs/generated/myfavdocs.pd_get_random_ingredients.html). Do I need to adjust the extension? I saw something similar in the cudf project (https://docs.rapids.ai/api/cudf/stable/user_guide/api_docs/api/cudf.dataframe.transpose/#cudf.DataFrame.transpose https://github.com/rapidsai/cudf/blob/branch-24.06/docs/cudf/source/_ext/PandasCompat.py) as was curious if they had something different that makes this kind of extension work in a docstring EDIT: may be related to #1837 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi Ray, Are you able to provide a self-contained reproducer? Ideally a single conf.py file, index.rst, and a sample module for autodoc. A |
Beta Was this translation helpful? Give feedback.
Ok I managed to make it work:
todo_include_todos = True
(but you probably had it already)... todo
directive, namely:By the way, thanks to you I was able to find a totally unrelated bug which, when you put 4 "?", it doesn't work!