Config file generation:

- Rename "possible values" to "allowed values"
 - Reorder items in initConfig to match the order of pihole.tom;
 - Improve readability of some items by adding extra line breaks, thus preventing walls of text in both toml and MD
 - Attempt to deduplicate information between the descriptive header and the allowed values for each setting
 - Explicilty add an allowed values section to all settings (even for things that may seem obvious)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2025-07-06 22:40:51 +00:00
parent 12ad0764a4
commit 486500a3d3
3 changed files with 787 additions and 296 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -253,7 +253,7 @@ void print_comment(FILE *fp, const char *str, const char *intro, const unsigned
void print_toml_allowed_values(cJSON *allowed_values, FILE *fp, const unsigned int width, const unsigned int indent)
{
print_comment(fp, "", "", 85, indent);
print_comment(fp, "", "Possible values are:", 85, indent);
print_comment(fp, "", "Allowed values are:", 85, indent);
if(cJSON_IsArray(allowed_values))
{
// Loop over array items

File diff suppressed because it is too large Load Diff