Better handling of missing files #3
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: GLAREAN-Doku/glarean-books#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently several cases of missing files will simply trigger exceptions. I assume that some errors in the configuration will even trigger unexpected exceptions. The following behaviour should be implemented:
config.ymlEnforce reasonable defaults
defaults.ymlThis should only cause an exception if the template actually contains replacement fields. In addition the replacement fields should be tested for defaults. Each field must have a default value in the configuration (also because these defaults are used to control the actual replacement process
outline.ymlIf this file is missing we should infer the outline from the
booksdirectory:maindirectory is present treat it as the main book.