utopia-wiki 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3898702baeb4d8e774865ea9e007536e12585589eea3af9f3dffacaf4a7b78f7
4
- data.tar.gz: b0e86b7e14c6335914baa8a99e87e88ce3b588c6ba5cf27533a7d72c31751cc3
3
+ metadata.gz: 9dde608a804db566cb8db13cafac65566f06f0c40560cec19d806353439d4ac8
4
+ data.tar.gz: 91eacac35db0e3484721a181cf4c8b741c00285c22f28e0b07a8cb1cc23a8098
5
5
  SHA512:
6
- metadata.gz: fb1a5c4d59d7edaaafb4f6d6a2f1cf68644923e000808bd7f02c67f0447459a9adba7ba27099f36924980c9b8afbb0e3365a92bb4b999b420a2c430c826aba8e
7
- data.tar.gz: 001041f7b1ac843b422e37b2cbf1dd9095b1e7377dbea197b92d37bbba1fcdbd8b500f948f7eaec1cc7b94a5539c6f6da7959340b99659e4849a5ac31c79f99d
6
+ metadata.gz: 38ad3108d0c49ef241f1c448e40eb99f5305e14f92800ee8d703da7ae73ca2573e1d54e69c33c39e9c8480287126c2eb244ea2ee6b398902ca40695a0d24df80
7
+ data.tar.gz: 3431896df793ed072ffbd150f12dfb86234ec93b70e4bf9bec6e74b17c6a31ed1a602c5de35fa1d22617352cc49410f3a7fe026b0d62a92c12a557aa7346de6a
@@ -1,4 +1,13 @@
1
1
 
2
+ # Create an empty wiki in the current directory.
3
+ def create
4
+ template_path = File.expand_path("../../template/*", __dir__)
5
+
6
+ Dir.glob(template_path) do |path|
7
+ FileUtils::Verbose.cp_r path, Dir.pwd
8
+ end
9
+ end
10
+
2
11
  # Server the wiki locally.
3
12
  def serve
4
13
  system("bundle", "exec", "falcon", "serve")
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Utopia
24
24
  module Wiki
25
- VERSION = "0.2.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
@@ -0,0 +1,6 @@
1
+
2
+ source "https://rubygems.org"
3
+
4
+ group :preload do
5
+ gem "utopia-wiki"
6
+ end
@@ -0,0 +1,27 @@
1
+ # Wiki
2
+
3
+ ## Usage
4
+
5
+ If you don't have Ruby installed yet, please do so using your system's package manager.
6
+
7
+ ### Initial Installation
8
+
9
+ To install the Ruby gems to serve your wiki:
10
+
11
+ bundle install
12
+
13
+ ### Local Server
14
+
15
+ To start the wiki locally:
16
+
17
+ bake utopia:wiki:serve
18
+
19
+ You can then access the wiki: https://localhost:9292
20
+
21
+ ### Static Site
22
+
23
+ To generate a static site:
24
+
25
+ bake utopia:wiki:static
26
+
27
+ This will generate a complete static copy of the wiki in the `static/` directory.
@@ -0,0 +1,10 @@
1
+
2
+ require 'utopia/setup'
3
+ UTOPIA ||= Utopia.setup
4
+
5
+ require 'utopia/wiki'
6
+
7
+ Utopia::Wiki.call(self,
8
+ # If you want to localize your wiki, specify the languages:
9
+ # locales: ['en', 'ja']
10
+ )
@@ -2,9 +2,5 @@
2
2
  source "https://rubygems.org"
3
3
 
4
4
  group :preload do
5
- gem "falcon"
6
5
  gem "utopia-wiki", path: "../"
7
6
  end
8
-
9
- gem "utopia", path: "../../utopia"
10
- gem "rackula", path: "../../rackula"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -629,6 +629,9 @@ files:
629
629
  - public/_components/jquery/jquery.slim.min.map
630
630
  - public/_static/icon.png
631
631
  - public/_static/site.css
632
+ - template/Gemfile
633
+ - template/README.md
634
+ - template/config.ru
632
635
  - utopia-wiki.gemspec
633
636
  - wiki/Gemfile
634
637
  - wiki/config.ru