Quick Start
To setup a new project:
- Install
mspa;# From source, requires cargo (ensure that ~/.cargo/bin is in $PATH) $ cargo install --git https://codeberg.org/jpistre/MarkdownSPA.git --tag 0.2 # Or download the precompiled binary (linux only) $ curl -L -o mspa https://codeberg.org/jpistre/MarkdownSPA/releases/download/0.2/mspa-x86_64-unknown-linux-gnu - Create a new project with
mspa new [path (optionnal)]; - Start developping !
# One-off build $ mspa build [path (optionnal)] # Start a livereload server $ mspa watch [path (optionnal)]
Here is the default configuration for all projects:
| Key | Default value | Description |
|---|---|---|
prod_url | <empty> | Base URL of your website |
build_path | generated | Where to generate all files |
pages_path | pages | Root of all markdown files |
assets_path | assets | Root of all static files (images, css, js, …) |
templates_path | templates | Root of all templates |
defaults | <object> | Meta files default values |