From 87bdfa10a70a1ef1d82fa0659a11952804ae0c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Cez=C3=A1rio=20Barreto?= Date: Wed, 5 Nov 2025 23:05:33 -0300 Subject: [PATCH 1/2] [ config.ru ] --- config.ru | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config.ru diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..ecd347c --- /dev/null +++ b/config.ru @@ -0,0 +1,22 @@ +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 \ No newline at end of file From e41592c96097f712ad194879f53dcfef01351b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Cez=C3=A1rio=20Barreto?= Date: Wed, 5 Nov 2025 23:07:39 -0300 Subject: [PATCH 2/2] [ build.sh ] --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d36c186 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +mkdir modules + +cd modules + +git clone https://mytonton.com.br/git/TonTon/tonton-gollum.git \ No newline at end of file