Skip to content
This repository was archived by the owner on May 10, 2022. It is now read-only.

Check html before merging #190

Closed
maelle opened this issue May 17, 2018 · 9 comments
Closed

Check html before merging #190

maelle opened this issue May 17, 2018 · 9 comments

Comments

@maelle
Copy link
Contributor

maelle commented May 17, 2018

It has some issues again https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fropensci.org%2Findex.xml

Cf #114 opened by @jeroen

How could one re-validate it before publishing a blog post? Could it be part of automatic PR checks?

@maelle
Copy link
Contributor Author

maelle commented May 17, 2018

The current issues are "recommendations".

I'll fix the last issue that seems easier.

@maelle
Copy link
Contributor Author

maelle commented May 17, 2018

There will be a second post with an iframe cf #184

@maelle
Copy link
Contributor Author

maelle commented Jun 4, 2018

Problems that are detected by the RSS feed validator include invalid links, so it'd be good to detect them right away. E.g. that's how I found 401433a

@maelle maelle changed the title Monitor RSS feed validity Check html before merging Jul 9, 2018
@maelle
Copy link
Contributor Author

maelle commented Jul 9, 2018

Renaming the issue to reflect the fact that what I want is finding various problems right away not just for the RSS feed.

I saw this similar issue in tidyverse.org, https://github.com/gjtorikian/html-proofer seems to be the tool to have a look at.

@maelle
Copy link
Contributor Author

maelle commented Jul 9, 2018

@maelle maelle mentioned this issue May 7, 2019
@maelle
Copy link
Contributor Author

maelle commented May 7, 2019

We'd need the html proofing to happen on the new pages introduced by a PR only (e.g. for a blog post, the blog post itself, and the new author pages), because we know there are issues in old pages.

@maelle
Copy link
Contributor Author

maelle commented May 7, 2019

Also interesting https://circleci.com/blog/markdown-proofer/

@maelle
Copy link
Contributor Author

maelle commented May 7, 2019

For blog posts created pages all correspond to a Markdown file so it'd be easier to check those, in particular

  • links including internal links (to the website, and ref starting with #)

  • do images exist (although that is not especially useful since humans reviewing the PR would see that)

  • alt text (not empty, an human would need to check they are informative)

  • code linting?

@maelle
Copy link
Contributor Author

maelle commented Dec 5, 2019

dup of #463

@maelle maelle closed this as completed Dec 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant