Lite XL website
This website is built with markdown and a tiny ruby script as a static site generator.
- Install ruby.
- Install the
redcarpet
androuge
gems. You can install them withgem install redcarpet rouge
. - Run
site.rb
. It should generate the website in-place. You'll need a HTTP server₁₂ to preview it.
If you use
python3
'shttp.server
, the links on the website may not work correctly ashttp.server
requires the full filename (with the.html
file extension) while the website does not use that.http-server
does not have this limitation.
Please read CONTRIBUTING.md for guidelines on how to contribute.
assets/
: Asset files (images, js, css, etc.)assets/img
: Images used for the websiteassets/javascript.js
: Main JavaScript file used for the websiteassets/stylesheet.css
: Main CSS file used for the websitelocales/
: Localized website contentlocales/en
: English website contentlocales/en/template.html
: Template HTML for the english websitelocales/en/404.md
: The content shown to users when the page is not found.editorconfig
: EditorConfig for this website404.html
: The content shown to users when the page is not foundindex.html
: A symlink to index.html in the default localesite.rb
: Website generator
Get watchexec for watching directories.
$ watchexec -e md,html -w locales -w assets ./site.rb
For normal usage you don't need to configure the script at all. However, some of the behavior can be changed via environment variables.
Environment Variable | Description |
---|---|
SITE_ROOT |
Change the output path of the script*. |
SITE_DOMAIN |
Change the domain used in sitemap.txt . |
SITE_LOCALE |
Change the default locale of the website. |
VERBOSE |
Enable verbose logging. |
* This does not change the URL in generated HTML files.
Material Design Icons are used in the website. It is licensed under Apache 2.0 License.