summaryrefslogtreecommitdiff
path: root/src/collect_files.rs
Commit message (Collapse)AuthorAge
* Implement redirectsBen Bridle2025-01-15
| | | | | Source files with extension .redirect will be converted into redirect pages linking to the internal-style URL in each file.
* Implement a config file formatBen Bridle2025-01-14
| | | | | | If the file `toaster.conf` is found in the root of the source directory, the contents are parsed as key-value pairs. A line with no indentation is a key, and all following indented lines are the value.
* Detect duplicate headings within a pageBen Bridle2025-01-14
| | | | | | This is an issue because the duplicate headings will have identical ids, and all links to the lower heading will instead link to the upper heading.
* Rewrite link handling and add navigation features to generated HTMLBen Bridle2025-01-09
|
* More robust file traversal logicBen Bridle2025-01-08
File traversal can now cope with symbolic links. The original path to each file is preserved where before they were unintentionally canonicalized, so the source folder prefix can now be correctly stripped from the path of each source file. This commit also adds the !folder syntax from the original toaster. Directories with a !-prefix are copied without modification to the site root. A --delete option has been added to the program. When this option is set, the destination directory is first deleted if it already exists.