Crate gutenberg [] [src]

Modules

errors

Structs

Config
Page
PageFrontMatter

The front matter of every page

Section
SectionFrontMatter

The front matter of every section

Site

Enums

InsertAnchor
SortBy

Functions

create_file

Create a file with the content given

get_config

Get and parse the config. If it doesn't succeed, exit

populate_previous_and_next_pages

Horribly inefficient way to set previous and next on each pages So many clones

sort_pages

Sort pages using the method for the given section

split_page_content

Split a file between the front matter and its content Returns a parsed PageFrontMatter and the rest of the content

split_section_content

Split a file between the front matter and its content. Returns a parsed SectionFrontMatter and the rest of the content