Comments (6)
Really like that, thanks for the thorough preleminary work @Mogztter ! I have had the same (but simpler) use case last week when trying to run a website with a javadoc folder. Creates huge amounts of links that will be valid by definition.
I 'll look deeper into this!
from rocket.
we probably need 2 separate flags 🤔
e.g. on pattern to not check links in files that do get checked... and one pattern to not even analyze/check certain files
$ npx check-html-links _site \
--ignore-link-pattern="/speedify/*" \
--skip-checking-pattern="./folder-to-ignore/*"
for a lib to parse process.argv... it will probably be command-line-args
as it's also used in all the other repos we have... it's probably not perfect with a deps tree of 5... but it's at least knowledge we can reuse across multiple projects
PS: the node API is probably going to change 😅
from rocket.
command-line-args
seems like a deal.
Right, I indeed see now that we have two use cases indeed. Interesting. The skip seems rather easy to implement, but I wonder if the skip will not increase the processing complexity? Will have a look at the current implementation
from rocket.
Thanks for your replies!
Should I go forward and implement --ignore-link-pattern
using command-line-args
?
Any thoughts on the Node API? Should we introduce an "options object" as a second argument of the validateFolder
function?
from rocket.
Go for it. I started looking at it yesterday but didn't get on the actual implementation yet.
from rocket.
thanks again for implementing 🙇♂️
from rocket.
Related Issues (20)
- [docs] Add TS Docs HOT 1
- [Feature Request] type out localhost address in terminal
- [Feature Request] Allow scripting in pages to run on client HOT 1
- [Docs] Hydration menu item on docs page is wrong HOT 1
- [Docs] SSR Docs HOT 1
- launch: If there is no h1 then it will keep adding " | {sitename}" to the title tag
- [engine] show better error message if using "export default" in md or html files
- Theme color fix for perfecting Lighthouse PWA score
- the link in readme.md was 404 HOT 1
- [bug] Error on `rocket build` with a rollup plugin `TypeError: Cannot read properties of undefined (reading 'startsWith')`
- [bug] Js story doesn't render tick blocks with '${}' properly
- IndexMenu navigates only to outermost nodes
- File path of renderWorker.js containing a spaces gives an error
- Wrong resolve path in stylesheet example: theme-launch
- Running ``npm run build`` in the blog starter kit leads to an ``ERR_UNSUPPORTED_ESM_URL_SCHEME`` error when run on windows
- Evaluate Pagefind for search
- docs: dead link in rocket/packages/mdjs-core/README.md
- Folowing Getting started leads to error on Windows when running npm start HOT 1
- Hydration starter not hydrating HOT 1
- Is this project still active?
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 rocket.