Skip to content

1.0.1

Compare
Choose a tag to compare
@dmbaturin dmbaturin released this 20 Jul 11:34

Behaviour changes

Only files with extensions .htm .html .md .rst are assumed to be pages now, all other files are copied to the build dir unchanged. This is to simplify switching for existing websites that store assets together with pages, and to comply with the principle of least astonishment.

You can change it with page_file_extensions option, for example:

[settings]
  page_file_extensions = ["htm", "html", "md", "rst", "txt"]

New features

JSON index data export

It is now possible to export the global website index to file:

[index]
  index = true
  dump_json = "path/to/file.json"

Custom index fields

Example:

[index.custom_fields]
  tags = {selector = ".tag", select_all = true}
  category = {selector = "#category" }

Lists of selectors

page and section options can now be either single selector or lists.
This also applies to the selector option in title and footnotes widgets, with different semantics (select any that exists and select all respectively).

Bug fixes

  • Fixed missing dependency in the OPAM package spec.
  • Strict mode (--strict/strict = true) now actually stops on the first error.
  • Output lines are no longer prefixed with superfluous executable file name
  • Correct spelling of use_heading_text and use_heading_slug options. Old use_header_* options are kept for compatibility but deprecated.
  • A warning and a suggestion to use soupault --init are now displayed if neither site dir nor default template exist.
  • Graceful handling of sections (directories) without an index page or with no pages at all