Commit Graph

88 Commits

Author SHA1 Message Date
Christophe HENRY cef2417f91
v1.2.0
* Removes "^" to disable text decoration line-wise.
* CSS is no longer incorporated in the HTML page.
* Perform sanity checks against unauthorized file access.
* Properly close tags when the page exists in a non-null mode.
* Split HTML generation in two: parsing and translating.
* Create classes to handle gemtext parsing and translating.
* Create class to generate back gemtext (for future test cases).
* Fix: 404 doesn't occur for an empty file.
* Page 404 fully generated by HtmGem itself.
2021-03-19 10:41:25 +01:00
Christophe HENRY f29cf3a476 Updates changelog 2021-03-19 09:54:02 +01:00
Christophe HENRY 232cecc398 Enable security on what gmi file the client asks.
* checks realPath() against no-existent files,
* checks the file suffix '.gmi'
* checks the directory belongs to that of the site.
2021-03-18 22:06:00 +01:00
Christophe HENRY 365c855c00 Adds icons in the 404 page 2021-03-18 22:05:48 +01:00
Christophe HENRY d280ceff94 WIP 2021-03-18 22:04:31 +01:00
Christophe HENRY 859b0aad81 Deep refactoring: parsing, translating, classes
* Removes "^" to disable text decoration line-wise.
* Split HTML generation in two: parsing and translating.
* Create class to handle gemtext parsing.
* Create class to translate to HTML.
* Create class to generate back gemtext (for future test cases).
* Uses generators to parse then translate.
* Fix: 404 doesn't occur for an empty file.
* Page 404 fully generated by HtmGem itself.
* CSS is no longer incorporated in the HTML page.
* Handle CSS inclusion by addCss() calls.
2021-03-18 22:03:44 +01:00
Christophe HENRY b2e09c54f5 FIX empty 404 and source file access
An empty existing file triggered 404 error.

It was possible to get the source of any file (including .php).
2021-03-18 15:55:49 +01:00
Christophe HENRY 087c2b5e6c Changes the repository from Framasoft to Tildegit
The framasoft Git service will soon disappear.
2021-03-17 22:53:12 +01:00
Christophe HENRY 9726203d07 Split index.php into two files to isolate the lib 2021-03-16 15:00:02 +01:00
Christophe HENRY 01efc79930 Roadmap for v1 2021-03-16 01:08:22 +01:00
Christophe HENRY 8710552d27 Removes margin of PRE 2021-03-14 10:48:25 +00:00
Christophe HENRY d12192bb1f v1.1.0
* File download when using "source" as a style.
 * Improves the regex.
 * Fixes 404 page text decoration, adds reload message.
 * Links to download htmgem-master.zip.
 * Links CHANGELOG and COPYING into index.gmi.
 * Styles improvement, creation of raw.css.
 * Rewording of texts
 -----BEGIN PGP SIGNATURE-----
 
 iQJQBAABCgA6FiEEzDX71ob8wkH7CWZFqiQlK53WhPAFAmBN4eQcHGNocmlzdG9w
 aGUuaGVucnlAc2Jnb2Rpbi5mcgAKCRCqJCUrndaE8DRsD/9q4LvoRI5Rw47UvS2J
 GfEtFBW11H1sFRmXkaxsqO3OIyv5gbAtHTCkxVFn8AbTLTjqiVhLXB/PF9a+tLRm
 PC0DWpFeKtCqi/pdBaIx1KRqSfcWF2EQNVW+V607nmv/Qv8mlxMsZboOVCihQpPR
 yAIaGu/tZgjBMeVoprDSECKS0CraFUQHasi9O4791MMPuQRM76nAr2zUvQPm1kj0
 CM6x+zPAdACN/nIWbtjslB23hXHMxkBQpaLrmIDMv4Em1TVgU41d/80BbAf2kOve
 QVnjtATGtZZKWMIPppIxSvTBftAhFNyB2gYFt7V/E0tSXvNy9Rdec2ShjxO/5Fc/
 c1DCJbllUZ41UNf2On1MNrJANq+EbOjAuPKO1hwEEOjLdzJQkLdfSD4nz0GDsc3j
 BFYidJ5jc5Kq3yWa6ysH4cDqCZirC78Q/jRMMJPaR9ylMWpxnDXTmS2mcot7esys
 iY70G8b04Xsy29PHyors7UtN8ezBTaTgL9VtBK7TnfGT6tSqlSnbrx+4K+DFf7ia
 PAXT/+dlp1QyYdysl0cuUU8oICYMnOsSSflBUQHrBHNMzhXUMQjkkF27aukzNbJ3
 PU7SUFLukTctx2Wbe3Upe5wZG05toCgOYcOhBeFisFK00w82nBSP/zGEovaCMrYC
 UhUktfmU6mwKhnGtpMKYOYUZNQ==
 =WwgD
 -----END PGP SIGNATURE-----

Merge tag 'v1.1.0' into dev

v1.1.0

* File download when using "source" as a style.
* Improves the regex.
* Fixes 404 page text decoration, adds reload message.
* Links to download htmgem-master.zip.
* Links CHANGELOG and COPYING into index.gmi.
* Styles improvement, creation of raw.css.
* Rewording of texts
2021-03-14 11:44:52 +01:00
Christophe HENRY 97e1bd9ee5 Updates CHANGELOG for v2 and v3 items 2021-03-14 11:28:27 +01:00
Christophe HENRY 1e4c4f8f15
v1.1.0
* File download when using "source" as a style.
* Improves the regex.
* Fixes 404 page text decoration, adds reload message.
* Links to download htmgem-master.zip.
* Links CHANGELOG and COPYING into index.gmi.
* Styles improvement, creation of raw.css.
* Rewording of texts.
2021-03-14 11:10:38 +01:00
Christophe HENRY b1ac194e59 Removes padding of pre 2021-03-13 20:09:56 +00:00
Christophe HENRY d36f56c4ef Lowers h2 size and removes background color of pre 2021-03-13 19:17:17 +01:00
Christophe HENRY bf1c16922b Fixes 404 page text decoration, adds reload message 2021-03-13 10:45:54 +00:00
Christophe HENRY 732fd9e15a Adds idea in CHANGELOG 2021-03-13 10:49:32 +01:00
Christophe HENRY 46019a5187 Adds a warning about using styles with Gemini client 2021-03-13 00:16:04 +00:00
Christophe HENRY 212c503bfb Forces download when using "source" as a style 2021-03-13 00:33:46 +01:00
Christophe HENRY 64ed0a56b3 Adds idea in CHANGELOG 2021-03-12 20:31:03 +01:00
Christophe HENRY cdbc9614de Adds link to download htmgem-master.zip 2021-03-12 20:25:22 +01:00
Christophe HENRY ef4b3b8693 Adds idea in CHANGELOG 2021-03-12 00:57:25 +01:00
Christophe HENRY c45101732b Links CHANGELOG and COPYING into index.gmi & edits 2021-03-12 00:48:57 +01:00
Christophe HENRY 9b357ce3d8 Removes unuseful .gitignore 2021-03-12 00:02:16 +01:00
Christophe HENRY 9fb9206b7a Adds idea about CSS file setting 2021-03-11 23:55:41 +01:00
Christophe HENRY c040ba14a3 Removes ^ at the beginning of lines in tutogemtext 2021-03-11 21:01:18 +01:00
Christophe HENRY ba1c51259c Adds Unreleased section to CHANGELOG.gmi 2021-03-11 18:11:56 +01:00
Christophe HENRY 5d791a16d6 Renames CHANGELOG.md to .gmi and adapts content 2021-03-11 18:06:19 +01:00
Christophe HENRY d3cd419b5a Rewords the tutorial 2021-03-11 11:56:49 +01:00
Christophe HENRY c218d37728 Improves the text a little bit 2021-03-11 11:07:01 +01:00
Christophe HENRY f5b1a30a2c Enable spaces around | to set a style 2021-03-11 11:04:27 +01:00
Christophe HENRY a380fadde9 Rewording about text formatting / decoration 2021-03-11 10:59:58 +01:00
Christophe HENRY 9ee5a8744a Improves the regex 2021-03-11 10:55:49 +01:00
Christophe HENRY b418c6080f fix missing \ in regex 2021-03-11 09:19:13 +01:00
Christophe HENRY aaa12c0ee0 Adds an index selection page 2021-03-11 00:28:53 +01:00
Christophe HENRY 26c660f514 Removes unuseful part of black_wide.css 2021-03-11 00:21:31 +01:00
Christophe HENRY a2a27498f8 Adds style raw.css 2021-03-11 00:20:56 +01:00
Christophe HENRY 5832532582 Changes a bit of wording 2021-03-10 13:26:29 +00:00
Christophe HENRY 814dba4078
Ready for v1.0.0 2021-03-10 11:49:53 +01:00
Christophe HENRY 9b4f33f42f Improves general presentation 2021-03-10 11:28:52 +01:00
Christophe HENRY db12ae5856 Improves the presentation of HtmGem 2021-03-10 10:47:40 +01:00
Christophe HENRY 799b34c536 Modify the simple style 2021-03-09 20:07:28 +00:00
Christophe HENRY 8f06bc7e01 Corrects CSS terminal on mobile 2021-03-09 19:59:08 +00:00
Christophe HENRY b6be4afb97 Updates the TODO 2021-03-09 20:34:11 +01:00
Christophe HENRY 7222306779 Don't output a last empty line 2021-03-09 20:27:42 +01:00
Christophe HENRY 29e7d6fc14 Améliore le tutoriel d’installation 2021-03-09 20:20:01 +01:00
Christophe HENRY b162501f0c Permet de désactiver la décoration du texte 2021-03-09 20:19:00 +01:00
Christophe HENRY 805522cdd5 Adds black wide CSS 2021-03-09 15:48:10 +01:00
Christophe HENRY 67890863c8 Adds a greeny terminal CSS 2021-03-09 15:40:30 +01:00