From 433f37fa8efe96c4b609cf4a7e2151f3289ff552 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 17 Feb 2024 18:51:52 +0100 Subject: [PATCH] update schema.json --- schema.json | 72 ++++++++++++++++++++++++----------------------------- 1 file changed, 33 insertions(+), 39 deletions(-) diff --git a/schema.json b/schema.json index 8f5a660..7b28ce6 100644 --- a/schema.json +++ b/schema.json @@ -44,25 +44,12 @@ "title": "Disable Page Numbering", "type": "boolean" }, - "text_alignment": { - "default": "justified", - "description": "The alignment of the text. The default value is justified.", - "enum": [ - "left-aligned", - "justified" - ], - "title": "Text Alignment", + "page_numbering_style": { + "default": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES", + "description": "The style of the page numbering. The following placeholders can be used:\n- NAME: The name of the person\n- PAGE_NUMBER: The current page number\n- TOTAL_PAGES: The total number of pages\nThe default value is NAME -- Page PAGE_NUMBER of TOTAL_PAGES.", + "title": "Page Numbering Style", "type": "string" }, - "show_timespan_in": { - "default": [], - "description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).", - "items": { - "type": "string" - }, - "title": "Show Time Span in These Sections", - "type": "array" - }, "show_last_updated_date": { "default": true, "description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.", @@ -115,6 +102,25 @@ "theme": { "const": "classic", "title": "Theme" + }, + "text_alignment": { + "default": "justified", + "description": "The alignment of the text. The default value is justified.", + "enum": [ + "left-aligned", + "justified" + ], + "title": "Text Alignment", + "type": "string" + }, + "show_timespan_in": { + "default": [], + "description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).", + "items": { + "type": "string" + }, + "title": "Show Time Span in These Sections", + "type": "array" } }, "required": [ @@ -1031,25 +1037,12 @@ "title": "Disable Page Numbering", "type": "boolean" }, - "text_alignment": { - "default": "justified", - "description": "The alignment of the text. The default value is justified.", - "enum": [ - "left-aligned", - "justified" - ], - "title": "Text Alignment", + "page_numbering_style": { + "default": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES", + "description": "The style of the page numbering. The following placeholders can be used:\n- NAME: The name of the person\n- PAGE_NUMBER: The current page number\n- TOTAL_PAGES: The total number of pages\nThe default value is NAME -- Page PAGE_NUMBER of TOTAL_PAGES.", + "title": "Page Numbering Style", "type": "string" }, - "show_timespan_in": { - "default": [], - "description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).", - "items": { - "type": "string" - }, - "title": "Show Time Span in These Sections", - "type": "array" - }, "show_last_updated_date": { "default": true, "description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.", @@ -1057,8 +1050,8 @@ "type": "boolean" }, "header_font_size": { - "default": "30 pt", - "description": "The font size of the header (the name of the person). The default value is 30 pt.", + "default": "24 pt", + "description": "The font size of the header (the name of the person). The default value is 24 pt. Unfortunately, sb2nov does not support font sizes bigger than 24 pt.", "pattern": "\\d+\\.?\\d* *(cm|in|pt|mm|ex|em)", "title": "Header Font Size", "type": "string" @@ -1180,8 +1173,7 @@ "page_size": "letterpaper", "color": "#004f90", "disable_page_numbering": false, - "text_alignment": "justified", - "show_timespan_in": [], + "page_numbering_style": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES", "show_last_updated_date": true, "header_font_size": "30 pt", "margins": { @@ -1211,7 +1203,9 @@ "top": "0.2 cm" } }, - "theme": "classic" + "theme": "classic", + "text_alignment": "justified", + "show_timespan_in": [] }, "description": "The design information of the CV.", "discriminator": {