quickstart
setup
install ninja
install the flower binary
Two options:
download a static binary
- go to https://github.com/jyn514/flower/actions?query=event%3Apush+branch%3Adev+is%3Asuccess
- click on the latest successful action
- scroll down to "Artifacts"
build from source
See contributing.md.
create your site
mkdir my-sitecd my-siteflower newflower watch
flower new generates the skeleton of a site in the current directory. Feel free to edit any files it generates.
write a post
Add your posts in pages. Flower infers the filetype from the file extension. Currently, only .md (markdown) and .html (HTML) are supported. Pages can use the sunflower template language to embed clojure.
modify the defaults
Most of flower's defaults can be used as-is without changes. One default you will want to modify, however, is expressions/constants.clj. This contains various constant values that are used in various places through the site. Here are the constants for the flower docs themselves, which you can use as an example:
(def site-title "flower documentation")
(def site-author "jyn")
(def global-desc "flower documentation")
(def lang "en")
You likely will also want to change the HTML templates for your pages. The default template is templates/default.html.
For more information, see the guide.