commit 8271cb09b2e79f528fb97e98fcc270a3d7283bd2 parent 198209be09b713c626fa47e48117f63c247ea9fb Author: ugrnm <ultrageranium@bleu255.com> Date: Mon, 13 Jun 2022 15:59:44 +0200 Merge branch 'master' of borok:/var/www/git.bleu255.com/repos/permacomputing Diffstat:
| M | cloning.mdwn | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/cloning.mdwn b/cloning.mdwn @@ -26,6 +26,16 @@ HTML rendering With the markdown source files you can also easily turn them into a local HTML static web site for offline browsing. To do that you need to [install ikiwiki](https://ikiwiki.info/download/). + ikiwiki --rebuild --wikiname permacomputing --verbose /path/git/permacomputing /path/permacomputing-html + +But that's not all! + +If you call ikiwiki directly to generate HTML files to browse locally you will be disapointed as ikiwiki links points to folder in which an index.html will be found. This is fine for an HTTP server as most will default sending the index.html to the browser upon folder URL request. However, if you browse locally, the web browser will display the content of the folder instead. Making navigation super annoying. This script to be run everytime a new static version is built will fix all the href to actually point to the index.html instead of pointing to the folder. + + /path/git/permacomputing/_tools/fix_local_files.sh /path/permacomputing-html + +Now you can point your browser to <code>/path/permacomputing-html/index.html</code> and enjoy read only offline access to the wiki. + You don't have access to git ============================