| example | ||
| gsitegen | ||
| tests | ||
| .gitignore | ||
| README.md | ||
| setup.py | ||
| tox.ini | ||
Static Site Generator
Generates simple webpages.
How to use
- Create a file with
.pageextension in the same directory asgenerate.py, the file name will be title of the page, for example: About.page - Use markdown in the created file, it will be auto-converted to HTML. You can also use raw HTML in the file, with
>symbol, like this:
**Example**
>
<p>Hello world</p>
**Back to just markdown**
Line before HTML code must be a single character > and HTML code below must be indented by 2 spaces. You can also use Markdown inside HTML, for example:
<p>**Hello world**<p>
will display as bold.
- (Optional) Create a file called
navbarto have a navigation bar that is added to every generated page file. Example navbar file:
[Home](/)
[About](/about)
It also supports HTML, but HTML code will not be formatted as navigation bar automatically.
- Run generate.py, it will generate output website files in
website-outputfolder.
To-do list
- Better styling support for navigation bar, etc.
- Footer support, similar to navigation bar.
- Adding images, other resources support.
- Delete removed page files from website-output during next site generation (Last, to be done on release, so it doesn't disturb development)