Skip to content

Commit

Permalink
Add schema for logseq#8429 and tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
logseq-cldwalker authored and sallto committed Jan 31, 2023
1 parent dd5e52f commit eb07d11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
8 changes: 7 additions & 1 deletion src/main/frontend/schema/handler/common_config.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]]))
16 changes: 8 additions & 8 deletions templates/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit eb07d11

Please sign in to comment.