couchapp.org - a dump of web.archive.org's copy of 2014-02-07 obtained with wget
.gitignore - ignore emacs tilda files and locks
couchapp.org/ - rename html page dumps with a .html suffix

This just makes inspecting them easier.
couchapp.org/ - remove inserted wayback toolbar HTML

Using:

    perl -i -ne 'print unless /<!-- BEGIN/ .. /<!-- END/' *.html
couchapp.org/ - convert HTML back into markdown with html2text.py

html2text.py obtained from Aaron Swartz's github project with:

    wget https://raw.githubusercontent.com/aaronsw/html2text/master/html2text.py
    chmod +x html2text.py

And the conversion done thus:

    for i in *.html; do ./html2text.py $i > ${i%.html}.md; done
couchapp.org/ - remap the links to be relative to this directory

Using

    perl -i -pe 's{/web/\d+/http://couchapp.org/page/([\w.-]+)}{$1.md}g' *.md
couchapp.org/ - get missing attachments

The dump didn't seem to include them.

Used:

    perl -000  -ne 'print "$1/$2\n" while m{(/web/\d+/http://couchapp.org/pages)/?\s*([^)]*)\)}g' *.md | ( cd attachments ; xargs -I , wget http://web.archive.org, )

Some are 404s, some of those look like spam attachments anyway.
couchapp.org/ - remap links to attachments

Using (IIRC):

perl  -i -ne 'print unless m{\[(.*?)\]\(attachments/.*?\)}smg and !-e "attachments/$1"' *.md
couchapp.org/ - remap the links to be relative to this directory some more

Using

    perl -000 -i -pe 's{/web/.*?/http://couchapp.org/pages/?\s*[^/]+/([\w.-]+)}{attachments/$1}g' *.md
couchapp.org/ - some manual edits

Mostly unsplitting links, removing web.archice.org prefix paths, and
deleting spam links.
couchapp.org/ - more manual edits

Fixing split links, removed a few content-free or duplicate files
couchapp.org/ - a few more link fixes
couchapp.org/.../check-urls - add a script to check for broken URLS
couchapp.org/.../missing-links.txt - add a list of links which need fixing

From:

    ./check-urls *.md > missing-links.txt
Move couchapp.org dir to docs/couchapp-org
Remove .html files in favor of .md

Going to use viewdocs.io and/or github.com viewer
Add link to old couchapp-org content
Merge branch 'wu-lee-import-couchapp-org'

PR #153 + changes moving it into `docs/` dir
and focusing on Markdown files.