Created
August 10, 2024 20:40
-
-
Save managedkaos/d084d17eb0d76a678051dc04615e47b1 to your computer and use it in GitHub Desktop.
Revisions
-
managedkaos created this gist
Aug 10, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ wget --mirror \ --convert-links \ --adjust-extension \ --page-requisites \ --no-parent ${WEBSITE:-https://example.com} for i in $(find . -type f -name index.html | grep -v -E "(tag|feed)"); do path=$(dirname ${i}) echo ${path} npx @wcj/html-to-markdown-cli $i --output=${path}; done find . -type f -name index.html.md