Browse Source

Add schema for #8429 and tweak comments

Gabriel Horner 2 years ago
parent
commit
dd006bf6b1
2 changed files with 15 additions and 9 deletions
  1. 7 1
      src/main/frontend/schema/handler/common_config.cljc
  2. 8 8
      templates/config.edn

+ 7 - 1
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]]))

+ 8 - 8
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"