Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
CNLHC committed May 9, 2024
1 parent 4ccef86 commit e6a2435
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/main/frontend/schema/handler/common_config.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"Schema that is common for global-config and repo-config"
(:require [malli.util :as mu]))

(def html-options
(mu/optional-keys
[:map
[:icon :string]
[:name :string]
[:alias :string]
[:title :string]
[:description :string]
[:url :string]
[:scripts-before
[:vector [:map
[:src {:optional true} :string
:content {:optional true} :string]]]]]))

(def Config-edn
(mu/optional-keys
[:map
Expand Down Expand Up @@ -29,18 +43,7 @@
[:export/bullet-indentation
[:enum :eight-spaces :four-spaces :two-spaces :tab]]
[:publishing/all-pages-public? :boolean]
[:publishing/html-options?
(mu/optional-keys [:map
[:icon :string]
[:name :string]
[:alias :string]
[:title :string]
[:description :string]
[:url :string]
[:scripts-before
[:vector [:map
[:src {:optional true} :string
:content {:optional true} :string]]]]])]
[:publishing/html-options? html-options]
[:default-home [:map
[:page {:optional true} :string]
[:sidebar {:optional true} [:or :string [:vector :string]]]]]
Expand Down

0 comments on commit e6a2435

Please sign in to comment.