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

Qubes website needs link check function for broken links #1989

Closed
beffenc opened this Issue May 12, 2016 · 7 comments

Comments

Projects
None yet
3 participants
@beffenc

beffenc commented May 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

@marmarek

This comment has been minimized.

Show comment
Hide comment
Member

marmarek commented May 12, 2016

@andrewdavidwong andrewdavidwong added this to the Documentation/website milestone May 13, 2016

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong May 13, 2016

Member

@bnvk, do you want to handle this?

Member

andrewdavidwong commented May 13, 2016

@bnvk, do you want to handle this?

@beffenc

This comment has been minimized.

Show comment
Hide comment
@beffenc

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?
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?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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?

Member

marmarek commented May 13, 2016

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?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented May 18, 2016

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Sep 25, 2016

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.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

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.

Member

andrewdavidwong commented Sep 25, 2016

Thank you, @marmarek!

I think changing ToC links is OK, since at least old links will still link to the base page.

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