Ancien dépôt du générateur de sites d'Antopie , désormais séparé entre mkht.php et antopie https://antopie.org
This repository has been archived on 2023-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Miraty 7c9304ae93 New readme (WIP) 2021-10-07 10:56:53 +02:00
antopie Move site specificities to their respective directory 2021-10-05 19:13:12 +02:00
bibli Remove pages.inc.php metadata 2021-09-21 19:19:05 +02:00
inc Move site specificities to their respective directory 2021-10-05 19:13:12 +02:00
.gitignore Move site specificities to their respective directory 2021-10-05 19:13:12 +02:00
LICENSE Grosse màj 2019-03-22 21:39:49 +01:00
LICENSE.html Various changes 2021-09-18 19:08:26 +02:00
LICENSE.md Grosse màj 2019-03-22 21:39:49 +01:00
README.md New readme (WIP) 2021-10-07 10:56:53 +02:00
compil.php Move site specificities to their respective directory 2021-10-05 19:13:12 +02:00
style.less Move site specificities to their respective directory 2021-10-05 19:13:12 +02:00

README.md

mkht.php is a PHP script for building Gemini, Markdown and HTML/CSS sites from source documents in Gemini, Markdown, HTML, PHP, CSS and Less.

Usage

Place your pages tree in /src/*/*.(gmi|md).

Optionnal files: /config.ini /style.less /logo.png /head.inc.html /footer.inc.html

mkht.php <site path> <destination >

destination is optionnal and can be:

  • dns if you want local links without exensions
  • onion if you want links ending with .onion when available

Input

Pages in /srccan use Gemini (if using gmi extension), Markdown, HTML and PHP.

Output

/*/*.gmi (if using .gmi extension in /src) /*/*.md /*/*.html /*/*.gz

External dependencies

  • PHP
  • gzip
  • find

Internal libraries used

Name Description Source
less.php Compilateur Less en PHP https://github.com/wikimedia/less.php
parsedown Compilateur Markdown en PHP https://parsedown.org

License

AGPLv3+