Closed leckie-chn closed 2 years ago
Not sure if this is related, but it seems URL resolution does not work as expected for me either, see this comment.
If I use url_resolver
like described in the docs/README, my markdown files are not parsed and transformed to rst, and sphinx/recommonmark tries to resolve them to GitHub URLs instead.
Also found that "url_resolver" is just broken since 0.5.0. It is removed in this commit: https://github.com/readthedocs/recommonmark/commit/8baf238562c2f7c9bea603e352c3a94f51905a3e
url_resolver
was deprecated by recommonmark but I found an alternative way to implement it using Sphinx (https://github.com/tensorpack/tensorpack/blob/94600659794542e456bfdb9f90f944518a7b860e/docs/conf.py#L18-L44)
Hi, I am using the https://recommonmark.readthedocs.io/en/latest/auto_structify.html#url-resolver feature for referencing source code for our repos.
I appended the following code at the end of
conf.py
:But sphinx still cannot transform source code url properly, and give warnings like:
BTW, the example given in https://recommonmark.readthedocs.io/en/latest/auto_structify.html#url-resolver also failed, which renders an invalid url:
https://recommonmark.readthedocs.io/en/recommonmark/parser.py