-
Notifications
You must be signed in to change notification settings - Fork 130
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
Link to local notebooks with uppercase characters #196
Comments
Thanks for the report! I cannot reproduce the problem, though. For me (on Debian Linux) uppercase file names work. What about If not, this might be a Sphinx problem, in this case you should ask at the Sphinx issue tracker: https://github.com/sphinx-doc/sphinx/issues If |
I confirm this bug. The versions used are:
The following patch on @@ -1076,9 +1076,9 @@ def apply(self):
target_docname = nbconvert.filters.posix_path(os.path.normpath(
os.path.join(os.path.dirname(env.docname), target)))
if target_docname in env.found_docs:
reftarget = target_docname + target_ext
+ reftarget = '/' + reftarget
- reftarget = '/' + reftarget.lower()
linktext = node.astext()
xref = sphinx.addnodes.pending_xref(
reftype=reftype, reftarget=reftarget, refdomain=refdomain,
refwarn=True, refexplicit=True, refdoc=env.docname) But as you wrote, better checking if it is a bug with Sphinx or not. |
|
Sorry, my bad, I didn't check thoroughly enough ... I now also can reproduce the problem ... working on a fix ... |
Thanks for your reactivity. My setup is:
|
Thanks @fcollonval and @jnquintin for the detailed reports! I've just created #198, can you please check if that fixes the issue? |
@mgeier your fix is working for me. |
No problem, thanks for your help! I'll make a new release next week. |
@mgeier thanks it works for me too. |
It tooks me some times to understand why my links did not works.
I have notebooks with names like Overview.ipynb and Getting_Started.ipynb .
If overview have like like
[Getting Started](Getting_Started.ipynb)
, the link is removed because sphink do not found Getting_Started.If I change the name of my files to overview.ipynb and getting_started.ipynb, it works.
The text was updated successfully, but these errors were encountered: