From f259ea5282914333eb418ad4df350c8e4b9f6170 Mon Sep 17 00:00:00 2001 From: octospacc Date: Sun, 14 Aug 2022 13:34:14 +0200 Subject: [PATCH] Some updates --- Pages/index.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/Pages/index.md b/Pages/index.md index 69b9ccf..6360977 100644 --- a/Pages/index.md +++ b/Pages/index.md @@ -1,5 +1,75 @@ # [staticoso:Site:Name] -staticoso docs +Don't yet mind the fact that there is no CSS at all, and only one single page. Still a heavy WIP :) + + +## Input Files + +### Templates and Parts + +For templates and parts files, currently only HTML is supported. + +### Pages and Posts + +For pages and posts files, many formats are supported as input: + +- Markdown (Suffixes: `.md`) +- Pug (through pug-cli) (Suffixes: `.pug`) + +Some are planned for support, but some bugs have to be fixed fist: + +- HTML (Suffixes: `.htm`, `.html`) +- Plain text (Suffixes: `.txt`) + + +## Site folder Structure + +A typical staticoso site folder looks like this: + +- `Assets/`: Contains files that will be just copied as they are in the root of the output folder. +- `Pages/`: Contains website pages. +- `Posts/`: Contains website posts, which differ for some things from pages. +- `Templates/`: Contains base HTML pages to be used as templates for compiling all the pages. +- `StaticParts/`: Contains HTML snippets that can be included statically in HTML templates. +- `DynamicParts/`: Contains HTML snippets that can be included dynamically, via configuration flags, in HTML templates. +- `Site.ini`: Specifies some configuration flags. + + +## Configuration Flags + +Many configuration flags are available. + +They can be specified from the `Site.ini` file, under the `[Site]` section, or as command-line arguments. +CLI arguments, if specified, always take priority over the INI values. + +In the INI file, flags are specified as they are, separated by new lines. In + +_Note: Some flags are currently CLI-only, while others are file-only. This will be soon fixed._ + +- `SiteName`: The name of your site. +- `BlogName`: The name of the blog section of your site. +- `SiteTagline`: The tagline or motto of your site. +- `SiteRoot`: The root path of your site on your server. Defaults to `/`. +- `SiteDomain`: Domain of your website, for use for feeds and sitemaps. +- `SiteLang`: The language of your site. Will be used for choosing certain strings. Defaults to `en`. +- `SiteTemplate`: Name of the template file to use for the site. Defaults to `Default.html`. + +- `Minify`: Whether or not to minify the output HTML. Defaults to `False`. +- `NoScripts`: Whether or not to strip out `