From f2a74c9ffc204ded511394a8f9a5058c2be6ed9d Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 4 Sep 2013 14:33:29 -0500 Subject: [PATCH] Better doc section override order in ini files. --- defaults.ini | 21 ++++++++++++++++++--- plugin-defaults.ini | 21 ++++++++++++++++++--- plugin-example.ini | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+), 6 deletions(-) diff --git a/defaults.ini b/defaults.ini index 15eb143..807b0db 100644 --- a/defaults.ini +++ b/defaults.ini @@ -16,7 +16,22 @@ [defaults] ## [defaults] section applies to all formats and sites but may be -## overridden at several levels +## overridden at several levels. Example: + +## [defaults] +## titlepage_entries: category,genre, status +## [www.whofic.com] +## # overrides defaults. +## titlepage_entries: category,genre, status,dateUpdated,rating +## [epub] +## # overrides defaults & site section +## titlepage_entries: category,genre, status,datePublished,dateUpdated,dateCreated +## [www.whofic.com:epub] +## # overrides defaults, site section & format section +## titlepage_entries: category,genre, status,datePublished +## [overrides] +## # overrides all other sections +## titlepage_entries: category ## Some sites also require the user to confirm they are adult for ## adult content. Uncomment by removing '#' in front of is_adult. @@ -450,8 +465,8 @@ nook_img_fix:true ## mobi TOC cannot be turned off right now. #include_tocpage: true -## Each site has a section that overrides [defaults] *and* the format -## sections test1.com specifically is not a real story site. Instead, +## Each site has a section that overrides [defaults]. +## test1.com specifically is not a real story site. Instead, ## it is a fake site for testing configuration and output. It uses ## URLs like: http://test1.com?sid=12345 [test1.com] diff --git a/plugin-defaults.ini b/plugin-defaults.ini index c6d0e0c..107eeb1 100644 --- a/plugin-defaults.ini +++ b/plugin-defaults.ini @@ -16,7 +16,22 @@ [defaults] ## [defaults] section applies to all formats and sites but may be -## overridden at several levels +## overridden at several levels. Example: + +## [defaults] +## titlepage_entries: category,genre, status +## [www.whofic.com] +## # overrides defaults. +## titlepage_entries: category,genre, status,dateUpdated,rating +## [epub] +## # overrides defaults & site section +## titlepage_entries: category,genre, status,datePublished,dateUpdated,dateCreated +## [www.whofic.com:epub] +## # overrides defaults, site section & format section +## titlepage_entries: category,genre, status,datePublished +## [overrides] +## # overrides all other sections +## titlepage_entries: category ## Some sites also require the user to confirm they are adult for ## adult content. Uncomment by removing '#' in front of is_adult. @@ -419,8 +434,8 @@ nook_img_fix:true ## mobi TOC cannot be turned off right now. #include_tocpage: true -## Each site has a section that overrides [defaults] *and* the format -## sections test1.com specifically is not a real story site. Instead, +## Each site has a section that overrides [defaults]. +## test1.com specifically is not a real story site. Instead, ## it is a fake site for testing configuration and output. It uses ## URLs like: http://test1.com?sid=12345 [test1.com] diff --git a/plugin-example.ini b/plugin-example.ini index 3080bd9..99e867a 100644 --- a/plugin-example.ini +++ b/plugin-example.ini @@ -2,6 +2,24 @@ ## like. Uncomment options by removing the '#' in front of them. [defaults] +## [defaults] section applies to all formats and sites but may be +## overridden at several levels. Example: + +## [defaults] +## titlepage_entries: category,genre, status +## [www.whofic.com] +## # overrides defaults. +## titlepage_entries: category,genre, status,dateUpdated,rating +## [epub] +## # overrides defaults & site section +## titlepage_entries: category,genre, status,datePublished,dateUpdated,dateCreated +## [www.whofic.com:epub] +## # overrides defaults, site section & format section +## titlepage_entries: category,genre, status,datePublished +## [overrides] +## # overrides all other sections +## titlepage_entries: category + ## Some sites also require the user to confirm they are adult for ## adult content. Uncomment by removing '#' in front of is_adult. #is_adult:true