Skip to content

conradkleinespel/mkstaticsite

Repository files navigation

mkstaticsite

Got a website online and want to make a static markdown website out of it? That's what this tool does for you.

Usage

# Setup
git clone https://github.com/conradkleinespel/mkstaticsite.git && cd mkstaticsite && npm ci

# Download a given URL to a markdown and html file, with images
npm run start -- download-url \
    --images-directory my-webpage/assets \
    --markdown-file-path my-webpage/my-page.md \
    --html-file-path my-webpage/my-page.html \
    https://www.conradk.com/process-security-linux/

# Download a Ghost blog to markdown with headers for Zola (https://getzola.org)
npm run start -- download-url \
  --content-selector '#site-main' \
  --headers-format zola \
  --header custom-header=well-hello-there \
  --images-directory my-webpage-zola/assets \
  --markdown-file-path my-webpage-zola/my-page.md \
  --html-file-path my-webpage-zola/my-page.html \
  https://www.conradk.com/process-security-linux/
    
# List URLs from your website recursively
npm run start -- list-urls \
  https://www.conradk.com/
  
# Finally, download an entire website recursively
npm run start -- download-website \
  --output-path my-website \
  --headers-format zola \
  https://www.conradk.com/

About

Got a website online and want to make a static markdown website out of it? That's what this tool does for you.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors