package stone
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Stone is a static website generator
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.6.1.tar.gz
sha256=8c6b17f6339c60ede7dd20fb304e0fe9bb95f45987bbac5c505c93c96312024d
md5=71f9eb88ff6be881f8aba4e79161d8b1
doc/CHANGES.html
v0.6
This is a major overhaul release, which includes a number of breaking changes. See below for a migration guide.
High-level changes (breaking changes highlighted):
- The configuration file format has changed to .toml, the name of the file is now
stone.toml(was previouslyconfig.stone). - The
data/folder has been removed. Instead, a newtemplates/directory is introduced to contain template files. Other static files should go inpages/(e.g.pages/static/). There is no special handling of static files anymore.. - Page titles can now be specified in the config for any page, instead of only header pages; see the documentation.
- The mechanism for custom "exporters" and custom templates has been generalized. The configuration now specifies a list of "rules"; see the documentation for more details.
- In templates, the
CSSvariable has been removed. Instead, a more generalPATH_TO_ROOTvariable is provided. See the documentation. - Switch to the Cmarkit library for rendering markdown. This may change the HTML ids generated for headings and used in anchors, check your links.
- Removed the template generated by
stone -iformlorg. - Stone is much faster (~20x) after fixing its naive file copy implementation.
- NB: the loading of fonts was fixed in the recent 0.5.2 release, resulting in visual changes if you were previously relying on the fallback fonts.
Migration guide
mkdir templatesand move your templates fromdata/totemplates/- move remaining files in
datatopages/static/; thenrmdir data/ - edit your templates, replace
$CSS$by<link href="$PATH_TO_ROOT$static/style.css" type="text/css" rel="stylesheet"> - if you used the default
style.cssor templates, be sure to check the updated version (style.css, template) for any changes that you need to backport. create a minimal
stone.tomlby copying the default file. Then:Title(inconfig.stone) becomestitle(instone.toml)Items of
Pagesmust be split into theheaderandpage_titlesettings. Additionally, path to files now refer to the files after processing rather than before. For example,Pages = [("index.md", "Home")]becomes:header = ["index.html"] [page_title] "index.html" = "Home"DefaultTemplatecorresponds to thetemplatesetting in the default[[rule]]block for markdown.- if you have custom
ExportsorPagesTemplates, you need to define custom rules. See the documentation on rules. ExtraStaticis gone, static files should be put somewhere inpages/and will be copied as-is.DirPermandFilePermare gone; their previous default value is now used in all cases.
- check any known links to the headers of your pages; header ids may have changed with the switch to cmarkit. See the documentation on markdown.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page