forked from TonTon/tonton-web
Compare commits
No commits in common. "local" and "main" have entirely different histories.
2 changed files with 0 additions and 29 deletions
7
build.sh
7
build.sh
|
|
@ -1,7 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
|
|
||||||
mkdir modules
|
|
||||||
|
|
||||||
cd modules
|
|
||||||
|
|
||||||
git clone https://mytonton.com.br/git/TonTon/tonton-gollum.git
|
|
||||||
22
config.ru
22
config.ru
|
|
@ -1,22 +0,0 @@
|
||||||
require_relative 'tonton_web'
|
|
||||||
require_relative 'modules/tonton-gollum/app'
|
|
||||||
|
|
||||||
use Rack::Session::Cookie, key: 'rack.session', secret: ENV.fetch('SESSION_SECRET')
|
|
||||||
|
|
||||||
wiki_options = {
|
|
||||||
universal_toc: false,
|
|
||||||
math: :mathjax,
|
|
||||||
css: true,
|
|
||||||
template_dir: 'modules/tonton-gollum/templates'
|
|
||||||
}
|
|
||||||
|
|
||||||
Precious::App.set(:gollum_path, 'modules/tonton-gollum/wiki')
|
|
||||||
Precious::App.set(:default_markup, :markdown)
|
|
||||||
Precious::App.set(:wiki_options, wiki_options)
|
|
||||||
|
|
||||||
app = Rack::URLMap.new(
|
|
||||||
'/' => TonTonWeb.new,
|
|
||||||
'/wiki' => TonTonWeb::Wiki.new('wiki')
|
|
||||||
)
|
|
||||||
|
|
||||||
run app
|
|
||||||
Reference in a new issue