Skip to content

Commit

Permalink
Merge tag 'smeagol-1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-brooke committed Feb 5, 2020
2 parents f2479b2 + a821f8d commit 852f4a6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 29 deletions.
59 changes: 36 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,38 +110,29 @@ Parameters semantics:

Security warning: At the moment there is no check against directory traversal attack. So include feature may expose files outside of your wiki content-dir.

## Advertisement
If you like what you see here, I am available for work on open source Clojure projects.

### Phoning home
Smeagol currently requests the WEFT logo in the page footer from my home site. This is mainly so I can get a feel for how many people are using the product. If you object to this, edit the file

resources/templates/base.html

and replace the line

<img height="16" width="16" alt="The Web Engineering Factory &amp; Toolworks" src="http://www.weft.scot/images/weft.logo.64.png"> Developed by <a href="http://www.weft.scot/">WEFT</a>
## Prerequisites
You will need [Leiningen](https://github.com/technomancy/leiningen) 2.0 or above installed.

with the line
You will need [node](https://nodejs.org/en/) and [bower](https://bower.io/) installed.

<img height="16" width="16" alt="The Web Engineering Factory &amp; Toolworks" src="img/weft.logo.64.png"> Developed by <a href="http://www.weft.scot/">WEFT</a>
## Development
To start a development web server for the application, run:

## License
Copyright © 2014-2015 Simon Brooke. Licensed under the GNU General Public License,
version 2.0 or (at your option) any later version. If you wish to incorporate
parts of Smeagol into another open source project which uses a less restrictive
license, please contact me; I'm open to dual licensing it.
lein bower install
lein repl

## Prerequisites
You will need [Leiningen](https://github.com/technomancy/leiningen) 2.0 or above installed.
And then, when the repl starts up,

You will need [node](https://nodejs.org/en/) and [bower](https://bower.io/) installed.
(start-server)

## Running
To start a web server for the application, run:

To build a standalone Smeagol jar file, run:

lein bower install
lein ring server
lein ring uberjar

**HOWEVER**, this will not run without [configuration](https://github.com/journeyman-cc/smeagol/blob/develop/resources/public/content/Environment%20Variables.md).

Alternatively, if you want to deploy to a servlet container (which I would strongly recommend), the simplest thing is to run:

Expand Down Expand Up @@ -172,3 +163,25 @@ To build your own Docker image, run:
lein docker build

This will build a new Docker image locally; you can, obviously, push it to your own Docker repository if you wish.

## Advertisement
If you like what you see here, I am available for work on open source Clojure projects.

### Phoning home
Smeagol currently requests the WEFT logo in the page footer from my home site. This is mainly so I can get a feel for how many people are using the product. If you object to this, edit the file

resources/templates/base.html

and replace the line

<img height="16" width="16" alt="The Web Engineering Factory &amp; Toolworks" src="http://www.weft.scot/images/weft.logo.64.png"> Developed by <a href="http://www.weft.scot/">WEFT</a>

with the line

<img height="16" width="16" alt="The Web Engineering Factory &amp; Toolworks" src="img/weft.logo.64.png"> Developed by <a href="http://www.weft.scot/">WEFT</a>

## License
Copyright © 2014-2020 Simon Brooke. Licensed under the GNU General Public License,
version 2.0 or (at your option) any later version. If you wish to incorporate
parts of Smeagol into another open source project which uses a less restrictive
license, please contact me; I'm open to dual licensing it.
16 changes: 11 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject smeagol "1.0.2"
(defproject smeagol "1.0.3"
:description "A simple Git-backed Wiki inspired by Gollum"
:url "https://github.com/simon-brooke/smeagol"
:license {:name "GNU General Public License,version 2.0 or (at your option) any later version"
Expand All @@ -7,7 +7,7 @@
[clj-yaml "0.4.0"]
[com.cemerick/url "0.1.1"]
[com.fzakaria/slf4j-timbre "0.3.7"]
[com.stuartsierra/component "0.3.2"]
[com.stuartsierra/component "0.4.0"]
[com.taoensso/encore "2.92.0"]
[com.taoensso/timbre "4.10.0"]
[com.taoensso/tower "3.0.2" :exclusions [com.taoensso/encore]]
Expand Down Expand Up @@ -43,7 +43,7 @@
[io.sarnowski/lein-docker "1.0.0"]
[lein-environ "1.0.0"]
[lein-marginalia "0.7.1" :exclusions [org.clojure/clojure]]
[lein-ring "0.8.13" :exclusions [org.clojure/clojure]]]
[lein-ring "0.12.5" :exclusions [org.clojure/clojure]]]

:bower-dependencies [[simplemde "1.11.2"]
;; [vega-embed "3.0.0-beta.20"] ;; vega-embed currently not loaded from Bower because of
Expand All @@ -58,13 +58,19 @@
:init smeagol.handler/init
:destroy smeagol.handler/destroy}

;; for the time being, I'm not sure that I want to formally deploy this anywhere, and I certainly don't feel
;; it's fair to clutter clojars.org with it.
:deploy-repositories [["releases" "file:/tmp"]
["snapshots" "file:/tmp"]]

:release-tasks [["vcs" "assert-committed"]
["clean"]
["codox"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag" "v." "--no-sign"]
["clean"]
["bower" "install"]
["ring" "uberjar"]
["deploy"]
["docker" "build"]
["docker" "push"]
["change" "version" "leiningen.release/bump-version"]
Expand Down
2 changes: 1 addition & 1 deletion src/smeagol/formatting.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
[^String html-src]
(if html-src
(cs/replace html-src #"\[\[[^\[\]]*\]\]"
#(let [text (clojure.string/replace %1 #"[\[\]]" "")
#(let [text (cs/replace %1 #"[\[\]]" "")
encoded (url-encode text)
;; I use '\_' to represent '_' in wiki markup, because
;; '_' is meaningful in Markdown. However, this needs to
Expand Down

0 comments on commit 852f4a6

Please sign in to comment.