1
0
mirror of https://tildegit.org/sbgodin/HtmGem.git synced 2023-08-25 13:53:12 +02:00
Commit Graph

26 Commits

Author SHA1 Message Date
8e74403bc4 Fixes bug about CSS not applied correctly
The default CSS was loaded anyway, in addition to the custom css.
2022-08-02 08:41:18 +02:00
c11af12551 Adds the url path
* The /htmgem directory can be renamed and moved.
* Everything works without URL rewriting enabled.
2021-04-11 21:37:50 +02:00
cf54d98c61 Converts files from UTF-16 and UTF-32 to UTF-8
The resulting file (HTML) is in UTF-8.
2021-04-05 11:46:22 +02:00
26ad4f7d98 Adds strict_types=1 2021-04-02 21:29:46 +02:00
f4e71cb2b6 Refactores and add tests for url resolving 2021-04-02 21:00:09 +02:00
9471c43674 Enables browsing without URL Rewriting 2021-03-28 22:41:45 +02:00
5d74578efc typo 2021-03-25 22:39:52 +01:00
7b58fc1a26 Merge remote-tracking branch master into dev 2021-03-24 11:18:57 +01:00
b7276e12e3 Removes unuseful case 2021-03-20 23:58:43 +01:00
731a8eef6a Escapes the quotes and enable double encode 2021-03-20 15:21:43 +01:00
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
365c855c00 Adds icons in the 404 page 2021-03-18 22:05:48 +01:00
d280ceff94 WIP 2021-03-18 22:04:31 +01:00
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
9726203d07 Split index.php into two files to isolate the lib 2021-03-16 15:00:02 +01:00
bf1c16922b Fixes 404 page text decoration, adds reload message 2021-03-13 10:45:54 +00:00
212c503bfb Forces download when using "source" as a style 2021-03-13 00:33:46 +01:00
9ee5a8744a Improves the regex 2021-03-11 10:55:49 +01:00
b418c6080f fix missing \ in regex 2021-03-11 09:19:13 +01:00
7222306779 Don't output a last empty line 2021-03-09 20:27:42 +01:00
b162501f0c Permet de désactiver la décoration du texte 2021-03-09 20:19:00 +01:00
0f6e3467eb Adds the style "pre" 2021-03-09 11:11:28 +00:00
1a01e8bd81 Manages the styles. WIP. 2021-03-09 11:26:55 +01:00
11ced8627b Shows nothing if index.gmi is not present 2021-03-09 02:11:29 +01:00
e74beaba67 Adds 404 page 2021-03-09 01:48:10 +01:00
dcc36b1d66 Setup easy installation on shared host 2021-03-09 00:48:07 +01:00