Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upQubes website needs link check function for broken links #1989
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 12, 2016
Member
Actually such script exists: https://github.com/QubesOS/qubesos.github.io/blob/master/_utils/find_broken_links.sh
It simply isn't used...
|
Actually such script exists: https://github.com/QubesOS/qubesos.github.io/blob/master/_utils/find_broken_links.sh |
andrewdavidwong
added
enhancement
P: major
C: website
labels
May 13, 2016
andrewdavidwong
added this to the
Documentation/website milestone
May 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@bnvk, do you want to handle this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
beffenc
May 13, 2016
Would it be possible to add a hook, triggering the script on update or addition/change?
Then one large scan and manual fix would be necessary. After that, changes that break links (script nonzero exit) blocks submission or update until fixed. Incorporation would require hooking the git core functions here, correct?
beffenc
commented
May 13, 2016
|
Would it be possible to add a hook, triggering the script on update or addition/change? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 13, 2016
Member
On Thu, May 12, 2016 at 08:26:51PM -0700, beffenc wrote:
Would it be possible to add a hook, triggering the script on update or addition/change?
Then one large scan and manual fix would be necessary. After that, changes that break links (script nonzero exit) blocks submission or update until fixed. Incorporation would require hooking the git core functions here, correct?
I think we can use Travis for that. Then every pull request will
automatically have info whether it breaks something or not.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Thu, May 12, 2016 at 08:26:51PM -0700, beffenc wrote:
I think we can use Travis for that. Then every pull request will Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 18, 2016
Member
https://jekyllrb.com/docs/continuous-integration/
It uses html-proofer. But before we enable it, we need to fix current errors...
I've created travis branch in qubesos.github.io repository. And enabled travis usage there. Build log:
https://travis-ci.org/QubesOS/qubesos.github.io/builds/131024644
Most of those errors are broken links in page footer, so repeated on every page. After commenting them out, it's down to 45 errors, so no that bad...
I think the most sense would be to run html-proofer locally when working on that errors. But then feel free to push to that branch whenever you want.
|
https://jekyllrb.com/docs/continuous-integration/ It uses |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 25, 2016
Member
Progress:
https://travis-ci.org/QubesOS/qubesos.github.io/builds/162500972
QubesOS/qubesos.github.io#55
If changing ToC links is not a problem, I think it can be merged and this ticket can be resolved.
/cc @andrewdavidwong
Possible next step would be to attach it also to qubes-doc repo (to see results directly in pull requests there), but it is slightly more complex, as qubes-doc is only a submodule. Probably not worth the effort.
|
Progress: If changing ToC links is not a problem, I think it can be merged and this ticket can be resolved. Possible next step would be to attach it also to qubes-doc repo (to see results directly in pull requests there), but it is slightly more complex, as qubes-doc is only a submodule. Probably not worth the effort. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Sep 25, 2016
Member
Thank you, @marmarek!
I think changing ToC links is OK, since at least old links will still link to the base page.
|
Thank you, @marmarek! I think changing ToC links is OK, since at least old links will still link to the base page. |
beffenc commentedMay 12, 2016
Applicable to website pages (noticeable on wiki and doc pages)
Broken links on wiki and doc pages have been prevalent for quite some time.
** It would be a great use of a script to check the website for broken links
** either on a regular basis or on change /update submission
Example:
https://www.qubes-os.org/doc/dom0-tools/qvm-create-default-dvm/
Contains a broken link to:
https://wiki.qubes-os.org/wiki/UserDoc/DispVMCustomization
SUGGESTION:
Script to link check page activated on web page change or submission