Skip to content

toopher/toopher-dev-site-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This repository is serving the content at https://dev.toopher.com.

I grabbed a static snapshot of the post-acquisition content and decommissioned the portal app. Here's what was needed to do that:

  1. Use httrack (available with brew install httrack) to crawl the website, download the content, and rewrite internal links to work. httrack is a great tool, but we're having to wrangle it a bit to preserve "pretty" URLs.

    httrack https://dev.toopher.com/docs/getting-started -O docs -N "%p/%n/index.%t" --do-not-log --cache=0 --quiet -I0 --robots=0 --cookies=0 --display
    
  2. The HTML links generated above still refer to ../index.html instead of "pretty" URLs, so fix that up.

    find docs -name '*.html' -type f -print0 | xargs -0 sed -i '' 's:/index.html:/:g'
    
  3. Add a 404.html file to catch and redirect all unrecognized URLs to the getting started page.

Hat-tips to:

About

A static snapshot of our post-acquisition dev portal content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published