mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
74 lines
4.5 KiB
Clojure
74 lines
4.5 KiB
Clojure
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;;;
|
|
;;;; Smeagol: a very simple Wiki engine.
|
|
;;;;
|
|
;;;; This program is free software; you can redistribute it and/or
|
|
;;;; modify it under the terms of the GNU General Public License
|
|
;;;; as published by the Free Software Foundation; either version 2
|
|
;;;; of the License, or (at your option) any later version.
|
|
;;;;
|
|
;;;; This program is distributed in the hope that it will be useful,
|
|
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;;;; GNU General Public License for more details.
|
|
;;;;
|
|
;;;; You should have received a copy of the GNU General Public License
|
|
;;;; along with this program; if not, write to the Free Software
|
|
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
;;;; USA.
|
|
;;;;
|
|
;;;; Copyright (C) 2017 Simon Brooke
|
|
;;;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;; config.edn: a simple configuration map for Smeagol; inspired by Cryogen.
|
|
;;; This is top-level configuration. All values can be overridden with
|
|
;;; environment variables.
|
|
|
|
;; ; ; ; ; ; ; ; ; ;
|
|
{
|
|
:content-dir "resources/public/content"
|
|
;; where content is served from.
|
|
:default-locale "en-GB" ;; default language used for messages
|
|
:formatters ;; formatters for processing markdown
|
|
;; extensions.
|
|
{:backticks {:formatter "smeagol.formatting/process-backticks"
|
|
:scripts {}
|
|
:styles {}}
|
|
:mermaid {:formatter "smeagol.extensions.mermaid/process-mermaid"
|
|
:scripts {:core {:local "vendor/mermaid/dist/mermaid.js"}}
|
|
:styles {}}
|
|
:pswp {:formatter "smeagol.extensions.photoswipe/process-photoswipe"
|
|
:scripts {:core {:local "/vendor/node_modules/photoswipe/dist/photoswipe.min.js"
|
|
:remote "https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.3/photoswipe.min.js"}
|
|
:ui {:local "/vendor/node_modules/photoswipe/dist/photoswipe-ui-default.min.js"
|
|
:remote "https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.3/photoswipe-ui-default.min.js"}}
|
|
:styles {:core {:local "/vendor/node_modules/photoswipe/dist/photoswipe.css"
|
|
:remote "/vendor/node_modules/photoswipe/dist/default-skin/default-skin.css"}}}
|
|
:test {:formatter "smeagol.extensions.test/process-test" }
|
|
:vega {:formatter "smeagol.extensions.vega/process-vega"
|
|
:scripts {:core {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega/5.9.1/vega.min.js"}
|
|
:lite {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega-lite/4.1.1/vega-lite.min.js"}
|
|
:embed {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega-embed/6.2.2/vega-embed.min.js"}
|
|
:styles {}}}
|
|
:vis {:formatter "smeagol.extensions.vega/process-vega"
|
|
:scripts {:core {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega/5.9.1/vega.min.js"}
|
|
:lite {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega-lite/4.1.1/vega-lite.min.js"}
|
|
:embed {:remote "https://cdnjs.cloudflare.com/ajax/libs/vega-embed/6.2.2/vega-embed.min.js"}
|
|
:styles {}}}
|
|
}
|
|
:log-level :info ;; the minimum logging level; one of
|
|
;; :trace :debug :info :warn :error :fatal
|
|
:js-from :cdnjs ;; where to load JavaScript libraries
|
|
;; from: options are :local, :cdnjs
|
|
:passwd "resources/passwd"
|
|
;; where the password file is stored
|
|
:site-title "Smeagol" ;; overall title of the site, used in
|
|
;; page headings
|
|
:start-page "Introduction" ;; the page shown to a visitor to the
|
|
;; root URL.
|
|
:thumbnails {:small 64 ;; maximum dimension of thumbnails
|
|
;; stored in the /small directory
|
|
:med 400 ;; maximum dimension of thumbnails
|
|
;; stored in the /med directory
|
|
}}
|