Skip to content

Preprocessing docstrings (for link regex-replace) #596

Closed Answered by pawamoy
ssweber asked this question in Q&A
Discussion options

You must be logged in to vote

You could pre-process docstrings with a Griffe extension. See the docs: https://mkdocstrings.github.io/griffe/extensions/.
Running a regex-replace on the docstring could do the trick, though it would be your responsibility to find out the complete path of the object. That seems doable given you'll know the parents of the object being pre-processed.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@ssweber
Comment options

@ssweber
Comment options

@ssweber
Comment options

@pawamoy
Comment options

@ssweber
Comment options

Answer selected by ssweber
Comment options

You must be logged in to vote
1 reply
@pawamoy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #595 on July 29, 2023 13:54.