Skip to content

Instantly share code, notes, and snippets.

@managedkaos
Created August 10, 2024 20:40
Show Gist options
  • Save managedkaos/d084d17eb0d76a678051dc04615e47b1 to your computer and use it in GitHub Desktop.
Save managedkaos/d084d17eb0d76a678051dc04615e47b1 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment