Commit Graph

7 Commits

Author SHA1 Message Date
Martin Stadler 212797ddf7 add gitlab ci file for gitlab pages hosting 2019-12-08 14:15:57 +01:00
Martin Stadler 4c33668758 add README 2019-12-08 14:00:32 +01:00
Martin Stadler 1c6e73937f cleanup project
* remove httrack meta files
* rename site dir to "public"
2019-12-08 14:00:25 +01:00
Martin Stadler 2670f2b373 replace /index.* in assets and files
Because we used this index structure in step 1, all non-HTML paths are also rewritten to the /index.* pattern.

First, we download the files and assets without rewriting by using HTTrack again in another, temporary directory:
```
httrack http://siarp.de -K -O . -N --robots=0
```
From there we move (overwrite) over the files to our working directory.
```
rm -rf martin misc modules PFAD rss sites themes tilman
cd ../../httrack-abs/siarp.de
mv martin.xml misc modules rss.xml sites themes tilman.xml ../../httrack-clean/siarp.de
cd ../../working-dir/siarp.de
find . -name "*.html" -type f -print0 |   xargs -0 perl -i -pe "s/\/index\././g"
```
2019-12-08 13:56:17 +01:00
Martin Stadler bfefeacd95 more index and path cleanup
```
mv index/index.html .
rm -r index/
perl -i -pe "s/\.\.\///g" index.html
perl -i -pe "s/\"index\.html\"/\".\/\"/g" index.html
find . -name "*.html" -type f -print0 |   xargs -0 perl -i -pe "s/\.\.\/\.\.\/index\//..\/..\//g"
```
2019-12-08 13:37:16 +01:00
Martin Stadler ab496833ed remove unnecessary /index.html in links
find . -name "*.html" -type f -print0 |   xargs -0 perl -i -pe "s/\/index.html/\//g"

See https://www.lullabot.com/articles/sending-a-drupal-site-into-retirement
2019-12-08 13:17:22 +01:00
Martin Stadler 140d46690d initial: mirror Drupal site with HTTrack
httrack http://siarp.de -O . -N "%h%p/%n/index%[page].%t" -WqQ%v --robots=0

See https://www.lullabot.com/articles/sending-a-drupal-site-into-retirement
2019-12-08 13:11:59 +01:00