mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Fragment indices are being returned instead of fragments, and it does not seem that the extension formatters are being called at all. But... config is definitely improved in the right direction.
55 lines
2.9 KiB
Clojure
55 lines
2.9 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.
|
|
{:vega {:formatter "smeagol.extensions.vega/process-vega" }
|
|
:vis {:formatter "smeagol.extensions.vega/process-vega" }
|
|
:mermaid {:formatter "smeagol.extensions.mermaid/process-mermaid" }
|
|
:backticks {:formatter "smeagol.formatting/process-backticks" }
|
|
:pswp {:formatter "smeagol.extensions.photoswipe/process-photoswipe" }
|
|
}
|
|
: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
|
|
}}
|