Skip to content

Conversation

@casperdcl
Copy link
Contributor

@casperdcl casperdcl commented Feb 14, 2020

@shcheklein shcheklein temporarily deployed to dvc-landing-link-fix-bjuko9oxm February 14, 2020 23:01 Inactive
@casperdcl casperdcl self-assigned this Feb 14, 2020
@casperdcl casperdcl added 🐛 type: bug Something isn't working. A: docs Area: user documentation (gatsby-theme-iterative) labels Feb 14, 2020
@jorgeorpinel
Copy link
Contributor

What's the logic behind the sorting?

@casperdcl
Copy link
Contributor Author

casperdcl commented Feb 14, 2020

er just piped though sort. Makes it easy to see diffs in future changes (was hard to see real changes in https://github.com/iterative/dvc.org/pull/978/files#diff-01c133d99b04d1390925d3d06f3bbe77).

@shcheklein shcheklein temporarily deployed to dvc-landing-link-fix-bjuko9oxm February 15, 2020 00:08 Inactive
@shcheklein shcheklein merged commit d34de72 into master Feb 15, 2020
@casperdcl casperdcl deleted the link-fix branch February 15, 2020 01:18
@casperdcl
Copy link
Contributor Author

yay re-ran daily and succeeded: https://app.circleci.com/jobs/github/iterative/dvc.org/2292

@shcheklein
Copy link
Contributor

I'm thinking if we should create an exclusion list on file level? (don't analyze tests?). To avoid adding a lot of links to the existing file? what do you think @casperdcl @jorgeorpinel ?

@casperdcl
Copy link
Contributor Author

Well we could do comments both in js and markdown similar to # noqa in py/flake8

@casperdcl
Copy link
Contributor Author

You mean this sort of thing?

[md]http://dead.link <!-- noqa -->
'http://dead/link' // noqa

@shcheklein
Copy link
Contributor

more like specify somewhere that I would like to exclude tests/** ... .gitinore-like interface I would say?

@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Feb 15, 2020

exclusion list on file level... specify somewhere that I would like to exclude tests/** ...

Yes, only certain js and the md files really matter here, so I would even make it a white list with a pattern to match (similar to what prettier accepts, maybe hard to implement though). The existing list could be scripts/.link-ignore and the path list in scripts/.link-config or even sent as arguments to link-check.sh from package.json

Would also be nice if these files can ignore # comments (and blank lines) to make them self-documenting.

Ideally if it could actually render all web pages and only look at actual <a href=" and <img src=" URLs, that would be great, but probably overkill to do a separate yarn build just for this.

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

Labels

A: docs Area: user documentation (gatsby-theme-iterative) 🐛 type: bug Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix broken links

3 participants