From eb07d11bd6e1c2d69f6ad04b5f291aad211c3102 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Wed, 25 Jan 2023 16:57:34 -0500 Subject: [PATCH] Add schema for #8429 and tweak comments --- .../frontend/schema/handler/common_config.cljc | 8 +++++++- templates/config.edn | 16 ++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/main/frontend/schema/handler/common_config.cljc b/src/main/frontend/schema/handler/common_config.cljc index 1371d6819958..6a3e6349377e 100644 --- a/src/main/frontend/schema/handler/common_config.cljc +++ b/src/main/frontend/schema/handler/common_config.cljc @@ -13,15 +13,20 @@ [:default-templates [:map-of [:enum :journals] :string]] + [:journal/page-title-format :string] [:ui/enable-tooltip? :boolean] [:ui/show-brackets? :boolean] [:feature/enable-block-timestamps? :boolean] [:feature/enable-search-remove-accents? :boolean] [:feature/enable-journals? :boolean] [:feature/enable-flashcards? :boolean] + [:feature/enable-whiteboards? :boolean] [:feature/disable-scheduled-and-deadline-query? :boolean] + [:scheduled/future-days :int] [:start-of-week [:enum 0 1 2 3 4 5 6]] [:custom-css-url :string] + [:custom-js-url :string] + [:arweave/gateway :string] [:export/bullet-indentation [:enum :eight-spaces :four-spaces :two-spaces :tab]] [:publishing/all-pages-public? :boolean] @@ -83,4 +88,5 @@ [:redirect-page? {:optional true} :boolean]]] [:file-sync/ignore-files [:vector :string]] [:dwim/settings [:map-of :keyword :boolean]] - [:file/name-format [:enum :legacy :triple-lowbar]]])) + [:file/name-format [:enum :legacy :triple-lowbar]] + [:journal/file-name-format :string]])) diff --git a/templates/config.edn b/templates/config.edn index 5343a8fd0233..c02fcd168dab 100644 --- a/templates/config.edn +++ b/templates/config.edn @@ -48,17 +48,17 @@ ;; :feature/enable-flashcards? true ;; Enable Whiteboards - ;; :feature/enable-whiteboards? + ;; :feature/enable-whiteboards? true ;; Disable the built-in Scheduled tasks and deadlines query ;; :feature/disable-scheduled-and-deadline-query? true - - ;; Specify the number of days in the future to display in the - ;; scheduled tasks and deadlines query, with a default value of 0 which - ;; only displays tasks for today. - ;; Example usage: + + ;; Specify the number of days in the future to display in the + ;; scheduled tasks and deadlines query, with a default value of 0 which + ;; only displays tasks for today. + ;; Example usage: ;; Display all scheduled tasks and deadlines in the next 7 days - ;; scheduled/future-days 7 + ;; :scheduled/future-days 7 ;; Specify the date on which the week starts. ;; Goes from 0 to 6 (Monday to Sunday), default to 6 @@ -338,7 +338,7 @@ ;; ;use triple underscore `___` for slash `/` in page title ;; ;use Percent-encoding for other invalid characters :file/name-format :triple-lowbar - + ;; specify the format of the filename for journal files ;; :journal/file-name-format "yyyy_MM_dd"