Comments (8)
Can scan through all files in the repo and get all hyperlinks: []()
and see if the link starts with http
. If not then it's probably an internal link and I can see if I can reach the file from that link relative to my current file.
from knowledge.
Hello Nikita, I wrote mdck in the last few days to help me learn rust. If it helps you out, that's great, because I really enjoy your compendium of knowledge. If not, let me know and perhaps I can fix it.
I didn't add searching SUMMARY.md (or checking fragments, or ... anything else), because I'm just taking baby steps with Rust and I also don't know if anything I've done (e.g., choosing Rust as an implementation language) precludes mdck from being useful to you.
from knowledge.
Oh wow. This is amazing. Just ran it on the repo and got:
~/Dropbox/Write/knowledge master
❯ mdck .
"./text-editors/sublime-text/sublime-text.md" at about byte 78 contains the broken link: vs-code/vs-code.md
"./text-editors/sublime-text/sublime-text.md" at about byte 112 contains the broken link: vim/vim.md
"./text-editors/sublime-text/sublime-text.md" at about byte 226 contains the broken link: ../other/wiki-workflow.md
Warning: link with fragment "email" found at about byte 145 of "./tools/email.md"
Warning: link with fragment "readme" found at about byte 247 of "./macOS/apps/typinator.md"
"./macOS/apps/typinator.md" at about byte 247 contains the broken link: typinator
"./macOS/apps/typinator.md" at about byte 540 contains the broken link: km/km.md
"./health/health.md" at about byte 543 contains the broken link: supplements.md
Warning: link with fragment "read" found at about byte 368 of "./other/2do-tasks.md"
Warning: link with fragment "learn" found at about byte 384 of "./other/2do-tasks.md"
Warning: link with fragment "watch" found at about byte 402 of "./other/2do-tasks.md"
Warning: link with fragment "git" found at about byte 99 of "./programming/git.md"
"./operating-systems/linux/linux.md" at about byte 819 contains the broken link: ../package-managers/nix/nix.md
Warning: link with fragment "contributing" found at about byte 333 of "./writing/markdown.md"
Will fix those now.
One feature request I'd love to see if not show byte 99
but show line numbers.
from knowledge.
Oh, and if you're curious, here are the broken links it finds:
"./text-editors/sublime-text/sublime-text.md" at about byte 78 contains the broken link: vs-code/vs-code.md
"./text-editors/sublime-text/sublime-text.md" at about byte 112 contains the broken link: vim/vim.md
"./text-editors/sublime-text/sublime-text.md" at about byte 226 contains the broken link: ../other/wiki-workflow.md
"./macOS/apps/typinator.md" at about byte 247 contains the broken link: typinator
"./macOS/apps/typinator.md" at about byte 540 contains the broken link: km/km.md
"./health/health.md" at about byte 543 contains the broken link: supplements.md
"./operating-systems/linux/linux.md" at about byte 819 contains the broken link: ../package-managers/nix/nix.md
from knowledge.
Wow. You're quick. Line numbers, OK. I'll take a poke at that, soon.
from knowledge.
I fixed the errors and have these left:
~/Dropbox/Write/knowledge master*
❯ mdck .
Warning: link with fragment "email" found at about byte 145 of "./tools/email.md"
Warning: link with fragment "read" found at about byte 368 of "./other/2do-tasks.md"
Warning: link with fragment "learn" found at about byte 384 of "./other/2do-tasks.md"
Warning: link with fragment "watch" found at about byte 402 of "./other/2do-tasks.md"
Warning: link with fragment "git" found at about byte 99 of "./programming/git.md"
Warning: link with fragment "contributing" found at about byte 333 of "./writing/markdown.md"
What do I do with these? What's fragments?
from knowledge.
Those are warnings that are telling you that mdck hasn't checked the portion after the # in a destination. It seemed like a good idea at the time, but clearly it's annoying chatter. So I'll get rid of those warnings in the same release that uses line numbers.
from knowledge.
@nikitavoloboev I know that this is closed, but I came across another tool that does this and thought I'd share it: liche
from knowledge.
Related Issues (20)
- Have my respect, sir
- WhatsApp comment on https://wiki.nikiv.dev/macOS/apps/contacts HOT 2
- suggestion: add good commit messages HOT 1
- Use app url instead of github url for Enkra Send HOT 2
- Can't see updates post August 13 HOT 6
- Automation article HOT 1
- Write script to download all Imgur images included in a wiki HOT 4
- The link to KM macros is mostly empty HOT 1
- Find all markdown files that are not referenced in SUMMARY.md HOT 2
- Alphabetize/group the categories HOT 3
- Ability to give suggestions on pages? Two Book suggestions. HOT 2
- tag management PixaveApp HOT 3
- Podcast export link seems to be broken HOT 1
- Write tool to find duplicates
- Auto commit the repo with gitupdate after 6 file changes
- Make interactive graph of nodes & put it on the web
- Epub version
- 2015 Book: Understand HOT 2
- Project reproduction without attribution
- Dark mode support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knowledge.