List of all broken links #287

Open
shepheb opened this Issue Mar 10, 2012 · 1 comment

Projects

None yet

2 participants

@shepheb
shepheb commented Mar 10, 2012

I'm finding Gitit very useful for storing and cross-referencing notes and details about my Dungeons and Dragons world. However, I've sprinkled the pages with links to pages that don't exist, for details I'm looking to flesh out later. Gitit doesn't render links to nonexistent pages differently from links to pages that do exist, so it's hard to spot them at a glance. What's more, I have some dozens of pages and would love a meta-wiki page that listed all of the broken links in the whole wiki, or in a directory.

I realize computing such a list would be a nontrivially expensive operation, but this wouldn't be an oft-accessed page anyway. Is such a feature something that might be pulled into Gitit? How difficult would it be to implement?

@jgm
Owner
jgm commented Mar 10, 2012

+++ Braden Shepherdson [Mar 10 12 09:01 ]:

I'm finding Gitit very useful for storing and cross-referencing notes and details about my Dungeons and Dragons world. However, I've sprinkled the pages with links to pages that don't exist, for details I'm looking to flesh out later. Gitit doesn't render links to nonexistent pages differently from links to pages that do exist, so it's hard to spot them at a glance. What's more, I have some dozens of pages and would love a meta-wiki page that listed all of the broken links in the whole wiki, or in a directory.

I realize computing such a list would be a nontrivially expensive operation, but this wouldn't be an oft-accessed page anyway. Is such a feature something that might be pulled into Gitit? How difficult would it be to implement?

The reason I haven't implemented such a feature is that (as you point
out) figuring out which internal links are to nonexistent pages would
require querying the underlying VCS (expensive); moreover, it would
make it impossible to cache pages, or require us to expire all cached
pages every time a new page is added.

In principle, though, it could be done. Or, better, there could be a
button that runs some ajax thingy and highlights all the internal
links that don't lead anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment