read-the-docs

Preformatted (verbatim) hyperlink in Sphinx-reST-RTD

社会主义新天地 提交于 2020-08-24 03:43:30
问题 I am building documentation with Sphinx-RTD. I want to have a link somewhere, and be styled as a verbatim or preformatted text. For example, say I have this verbatim: ALTER TABLE Is there a way to link it somewhere, say a :ref: ... or even just a standard hyperlink? 回答1: If I am not mistaken the "Replacement Text" directive can help. As reStructuredText doesn't support nested inline markup, the only way to create a reference with styled text is to use substitutions with the "replace"

Preformatted (verbatim) hyperlink in Sphinx-reST-RTD

ぃ、小莉子 提交于 2020-08-24 03:40:27
问题 I am building documentation with Sphinx-RTD. I want to have a link somewhere, and be styled as a verbatim or preformatted text. For example, say I have this verbatim: ALTER TABLE Is there a way to link it somewhere, say a :ref: ... or even just a standard hyperlink? 回答1: If I am not mistaken the "Replacement Text" directive can help. As reStructuredText doesn't support nested inline markup, the only way to create a reference with styled text is to use substitutions with the "replace"

Preformatted (verbatim) hyperlink in Sphinx-reST-RTD

对着背影说爱祢 提交于 2020-08-24 03:40:12
问题 I am building documentation with Sphinx-RTD. I want to have a link somewhere, and be styled as a verbatim or preformatted text. For example, say I have this verbatim: ALTER TABLE Is there a way to link it somewhere, say a :ref: ... or even just a standard hyperlink? 回答1: If I am not mistaken the "Replacement Text" directive can help. As reStructuredText doesn't support nested inline markup, the only way to create a reference with styled text is to use substitutions with the "replace"

Read-the-docs build fails with “cannot import name 'PackageFinder' from 'pip._internal.index'”

↘锁芯ラ 提交于 2020-02-11 11:01:56
问题 The build of Sphinx docs on read-the-docs fails with the following error (complete log below): ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (/home/docs/checkouts/readthedocs.org/user_builds/cascade-python/envs/latest/lib/python3.7/site-packages/pip/_internal/index/__init__.py) Did I do something wrong or is this a bug in read-the-docs? A local build of Sphinx docs runs fine. Complete error log on read-the-docs: Read the Docs build information Build id: 10299638

Read-the-docs build fails with “cannot import name 'PackageFinder' from 'pip._internal.index'”

随声附和 提交于 2020-02-11 11:01:25
问题 The build of Sphinx docs on read-the-docs fails with the following error (complete log below): ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (/home/docs/checkouts/readthedocs.org/user_builds/cascade-python/envs/latest/lib/python3.7/site-packages/pip/_internal/index/__init__.py) Did I do something wrong or is this a bug in read-the-docs? A local build of Sphinx docs runs fine. Complete error log on read-the-docs: Read the Docs build information Build id: 10299638

Read-the-docs build fails with “cannot import name 'PackageFinder' from 'pip._internal.index'”

怎甘沉沦 提交于 2020-02-11 10:59:50
问题 The build of Sphinx docs on read-the-docs fails with the following error (complete log below): ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (/home/docs/checkouts/readthedocs.org/user_builds/cascade-python/envs/latest/lib/python3.7/site-packages/pip/_internal/index/__init__.py) Did I do something wrong or is this a bug in read-the-docs? A local build of Sphinx docs runs fine. Complete error log on read-the-docs: Read the Docs build information Build id: 10299638