Skip to content
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

Improving cross-ref functionality #91

Closed
choldgraf opened this issue Mar 1, 2020 · 0 comments · Fixed by #152
Closed

Improving cross-ref functionality #91

choldgraf opened this issue Mar 1, 2020 · 0 comments · Fixed by #152
Labels
enhancement New feature or request

Comments

@choldgraf
Copy link
Member

Originally written by @chrisjsewell:


Basically some code needs to written to (a) check the link is local (e.g. doesn't start with https, etc),
(b) get hold of the file extensions that sphinx deems 'linkable', then (c) if both these check pass, remove the extension.

Thinking about it now though, maybe if these checks parse, then we should also actually check if the file exists and, if it does, then set it as equivalent to writing `doc`{name.txt} here: https://github.com/ExecutableBookProject/MyST-Parser/blob/cf3352c8a224af219cb062cfe467d7da9289284a/myst_parser/docutils_renderer.py#L583

See sphinx.roles.AnyXRefRole for how the ref roles actually work.

@choldgraf choldgraf added the enhancement New feature or request label Mar 1, 2020
@chrisjsewell chrisjsewell linked a pull request Jun 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant