diff --git a/README.md b/README.md index 4dbd21d..27f2c75 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,13 @@ > Under construction, may not working -## Table of contents - -- [Setup](#setup) -- [License](#license) - ## Setup -This project require only perl, janet and a web server. +This project require only janet to build and a webserver to be served. -> You can use ``perl blog --help`` to see all command available. - -To build your differents file into ``public`` directory, just run ``perl blog build``. Now just have to serve static file 🥳. - -Note: In developpement, you can use Vagrant with the provided Vagrantfile +You can build a page like that: `janet page.janet raw/~blog/blog.md public/~blog/blog.html` ## License -- Color for code block are heavly inspired by [paste.artemix.org](paste.artemix.org). You can find source code on [Artemis's sourcehut](https://git.sr.ht/~artemis/paste-go) - +This program is inspired by [sidey theme](https://github.com/ronv/sidey), [aphrodite.dev source code](https://git.sr.ht/~artemis/aphrodite.dev/tree/1e4c18597c0dae8f41a28b42e6261a71e34c5b54) and [atom 'one light syntax' color theme](https://github.com/atom/one-light-syntax). This program is distributed under AGPL3, see LICENSE file for more information. \ No newline at end of file diff --git a/grammar/code/php.janet b/grammar/code/php.janet index bc15029..6710679 100644 --- a/grammar/code/php.janet +++ b/grammar/code/php.janet @@ -1,7 +1,7 @@ #!/usr/bin/env janet (def to-ast - "A custom markdown flavored grammar" + "PHP Grammar" ~{ :end-of-line (* (? "\r") "\n") diff --git a/page.janet b/page.janet index 244bc12..4c48656 100644 --- a/page.janet +++ b/page.janet @@ -76,7 +76,7 @@ "")) (defn pp-ast - "Pretty prints the Mardown AST (as provided by (peg/match md-to-ast))" + "Pretty prints the AST (as provided by (peg/match {lang}/to-ast))" [ast] (if ast (do @@ -85,7 +85,7 @@ (print "]")))) (defn main [bin & args] - (write-to-file "test4.html" (string + (write-to-file (get args 1) (string ``` @@ -97,7 +97,7 @@ - +