Quick Start
To setup a new project:
- Install
mspa;# From source, requires cargo (ensure that ~/.cargo/bin is in $PATH) $ curl -f https://codeberg.org/jpistre/MarkdownSPA/raw/branch/main/install.sh | sh -s -- source # Or download the precompiled binary (linux only) $ curl -f https://codeberg.org/jpistre/MarkdownSPA/raw/branch/main/install.sh | sh -s -- binary - 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 |