-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Broken links in some .org files #4399
Comments
This is a known issue and we have yet to find a solution for this. |
I thought we landed on wontfix for this, and to have http://spacemacs.org be the "official" way to view documentation online. |
We landed on this yes, but imho this is not a viable long-term solution. Search engines are indexing those pages, some users read the documentation on github, some users use the github search box to find information in the project, etc. |
Add the wont fix label :D |
Nah, we need a better solution. Discussing with @TheBB recently we were seeing a potential solution to have links working everywhere, but we are both kind of busy those days. |
Add a custom id to every header and link to those like so:
Then it works from org-mode (export) and on GitHub. It is not optimal I have to admit. |
Yeah, those drawers become an eyesore when reading from within Emacs. |
By the way, if you want people to read the documentation on http://spacemacs.org you could at least link to that from the README. |
Came across this issues. Absolutely had to use my favorite Emacs feature #4811 |
Never mind exporting. I can't even find a way to make a link to a heading in another file work well across github and Emacs. I really, really, really don't want to spend my time working on this. Are we so sure this is a blocker? I can't see any solutions that are not going to be very flimsy. |
And no, I'm pretty sure the links we had that pointed to specific headings in other files were already broken in the previous versions. |
So this is my plan how to fix it:
@syl20bnr I need a feedback before I spent all of my free time on this 😄 |
Or to toc-org, if that's the issue 😮 |
@a13ph Well. GitHub can't allow all kind of symbols in URLs so the fix will be some kind of band-Aid in js that will probably move it too far away from how markdown works. Or they will have to sanitize TOC on their end i.e. changing user's content. It will be too much hassle and will take ages to push trough. Or it will be simply rejected because it's up to users to submit properly formatted content. |
Also the solution for handling links in Spacmacs relies on some specific stuff like that the local files will start with |
I'm unsure, but isn't this relevant? snosov1/toc-org#3 |
Those hooks and specific stuff - it's an ugly hack, IMO. If it can be done cleanly - fine. But i'm not sure we are the only ones with this issue and it wouldn't hurt to ask those who are responsible even if we do pursue workarounds. Kinda strange not even opening an issue, considering where we are and who this issue is with. |
I'm not sure if GitHub has an issue(nor that it's not opened 😄 ). links like #foo/bar are working. And you can use them to link other documents. Sure it doesn't provide all of org utilities like text links with a search and stuff, but it is the cost of being in the web environment. It will be hard to make them do something about it.
I also think that it's a bit meh. We probably could handle it without the magic by simply formatting(removing github fixes and making links local) org files when they are opened. But we can go with I need to write some tests and dig into the link magic. |
Created a pull request snosov1/toc-org/pull/13 it should make |
I'm halfway there. It will be epic PR. I only hope not too epic 😄 Also I have found a surprisingly reasonably way to make it all work with the site. So far it looks like we can fix all the links. Even links to headings in different files. |
@JAremko thanks, I think this will make reading docs much more tolerable [at least for me!] if all links work (less mental load than jumping or searching through whole file) |
Looks like tomorrow is the day |
Here it is... #5545 |
Fixed with released of Spacemacs v0.200. Let us know if you still have any problems with this issue. |
FYI, if this is still relevant, you may find this useful in generating tables of contents more flexibly: https://github.com/alphapapa/org-make-toc |
The TOC links in the following files are broken (404):
I think the broken links were introduced in 13c5b1d (Nov 2, 2015).
PS: the TOC links in https://github.com/syl20bnr/spacemacs/blob/master/CONTRIBUTING.org are not broken.
Update: Not only TOC links, but most (if not all) internal links.
The text was updated successfully, but these errors were encountered: