all repos — py-vite @ 0627560c23aa1a845e084dade55d0351c9560e67

the original vite, written in python

chore: back to md
icyphox icyph0x@protonmail.com
Sun, 18 Mar 2018 11:10:32 +0530
commit

0627560c23aa1a845e084dade55d0351c9560e67

parent

2e2cd2354f0b0ad1a2240cf1c81d2455cf365087

2 files changed, 81 insertions(+), 82 deletions(-)

jump to
A README.md

@@ -0,0 +1,81 @@

+Vite +==== + +> A simple and mnml static site generator; pronounced as /vit/ + +Usage +----- + +``` {.sourceCode .console} +$ vite.py new <project-path> +``` + +Write your Markdown files in the `pages` directory and execute + +``` {.sourceCode .console} +$ vite.py build <project-path> +``` + +**OR** + +``` {.sourceCode .console} +$ make.py # at the project directory +``` + +Rendered HTML will be in the `build` directory. + +Configuration +------------- + +| Not very sophisticated, but basic configuration can be acheived using + `config.py` found in the project directory. +| Example config: + +``` {.sourceCode .python} +# config.py +title = '' +author = '' +header = '' +footer = '' +``` + +Templating +---------- + +Vite uses Jinja2 templating. A basic example would be: + +``` {.sourceCode .html} +<title> {{ title }} </title> + +<body> +{{ body }} +</body> + +<footer> +{{ footer }} +</footer> +``` + +Directory tree +-------------- + + example + ├── build + │   └── test_page1 + │   └── index.html + ├── config.py + ├── make.py -> /home/icyphox/code/vite/make.py + ├── pages + │   └── test_page1.md + └── templates + └── index.html + +TODO +---- + +- [x] Templating +- [ ] CSS support +- [ ] Implement a simple HTTP server (*later*) +- [x] Add example site +- [x] Basic config (`config.py`) +
D README.rst

@@ -1,82 +0,0 @@

-Vite -==== - - A simple and mnml static site generator; pronounced as /vit/ - -Usage ------ - -.. code:: console - - $ vite.py new <project-path> - -Write your Markdown files in the ``pages`` directory and execute - -.. code:: console - - $ vite.py build <project-path> - -**OR** - -.. code:: console - - $ make.py # at the project directory - -Rendered HTML will be in the ``build`` directory. - -Configuration -------------- - -| Not very sophisticated, but basic configuration can be acheived using - ``config.py`` found in the project directory. -| Example config: - -.. code:: python - - # config.py - title = '' - author = '' - header = '' - footer = '' - -Templating ----------- - -Vite uses Jinja2 templating. A basic example would be: - -.. code:: html - - <title> {{ title }} </title> - - <body> - {{ body }} - </body> - - <footer> - {{ footer }} - </footer> - -Directory tree --------------- - -:: - - example - ├── build - │   └── test_page1 - │   └── index.html - ├── config.py - ├── make.py -> /home/icyphox/code/vite/make.py - ├── pages - │   └── test_page1.md - └── templates - └── index.html - -TODO ----- - -- ``[x]`` Templating -- ``[ ]`` CSS support -- ``[ ]`` Implement a simple HTTP server (*later*) -- ``[x]`` Add example site -- ``[x]`` Basic config (``config.py``)