Skip to content

Conversation

@kianenigma
Copy link
Contributor

@kianenigma kianenigma commented Apr 27, 2023

  • Adds a link checking workflow.
  • fix existing broken links 🤦‍♂️

@netlify
Copy link

netlify bot commented Apr 27, 2023

Deploy Preview for substrate-docs ready!

Name Link
🔨 Latest commit f5e8238
🔍 Latest deploy log https://app.netlify.com/sites/substrate-docs/deploys/64501e91ffe42800082c914e
😎 Deploy Preview https://deploy-preview-1974--substrate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

"extract-locales": "yarn run babel --config-file ./babel-extract-locales.config.js -o tmp/chunk.js 'src/**/*.{js,jsx}' && rm -rf tmp",
"checklinks": "yarn blc --filter-level=3 -rof --requests=10 --exclude='/crates.io' --exclude='/localhost:8000' --exclude='/localhost:8100' --exclude='/localhost:8300' --exclude='/paritytech.github.io/' --exclude='undefined' http://localhost:9000/quick-start/ | tee checklinks.log"
"checklinks": "yarn blc --filter-level=3 -rof --requests=10 --exclude='/crates.io' --exclude='/localhost:8000' --exclude='/localhost:8100' --exclude='/localhost:8300' --exclude='/paritytech.github.io/' --exclude='undefined' http://localhost:9000/quick-start/ | tee checklinks.log",
"checklinks-external": "find content/md -name \\*.md -print0 | xargs -0 -n1 markdown-link-check -p -c .github/workflows/mlc_config.json"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should add markdown-link-check as dev-dep later, but it seems to cause some issues because it needs node >= 16.

@wirednkod wirednkod force-pushed the kiz-add-link-checker branch from 541b75f to b1a4805 Compare April 27, 2023 08:44

- [Timestamp Pallet associated types](https://paritytech.github.io/substrate/master/pallet_timestamp/index.html)
- [FRAME `pallet-timestamp`](https://crates.io/crates/pallet-timestamp)
- [FRAME `pallet-timestamp`](https://crates.io/crates/pallet-timestamp)<!-- markdown-link-check-disable-line -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can disable link checks for this domain globally i think. Sucks that crates.io blocks it 😠

Copy link
Collaborator

@wirednkod wirednkod Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried few times, always with no success. Also i dont get why the link gives a 404.even thought it is there. This was the only solution that actually worked

@wirednkod wirednkod requested a review from nuke-web3 April 28, 2023 08:09
@wirednkod wirednkod changed the title Fix some links Fix docs broken links - add MD link checker Apr 28, 2023
Copy link
Collaborator

@wirednkod wirednkod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving my work, myself - priceless

@brunopgalvao
Copy link
Contributor

brunopgalvao commented May 3, 2023

Adding for context.
This PR will help close this SE issue:

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants