Add option for custom js (like custom css)

* Add a new 'js' flag to indicate you want to embed a file named 'custom.js'
  which should exist at the root of the wiki
This commit is contained in:
Simon Williams
2013-03-14 23:38:53 -06:00
parent fe706c184e
commit 846ebb285e
7 changed files with 38 additions and 1 deletions
+3 -1
View File
@@ -548,10 +548,12 @@ Note that filenames on windows must not contain any of the following characters
Gollum optionally takes a `--config file`. See [config.rb](https://github.com/gollum/gollum/blob/master/config.rb) for an example.
## CUSTOM CSS
## CUSTOM CSS/JS
The `--css` flag will inject `custom.css` from the root of your git repository into each page. `custom.css` must be commited to git or you will get a 302 redirect to the create page.
The `--js` flag will inject `custom.js` from the root of your git repository into each page. `custom.js` must be commited to git or you will get a 302 redirect to the create page.
## CONTRIBUTE
If you'd like to hack on Gollum, start by forking the repo on GitHub: