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 +4 -4
- data/bake/utopia/wiki.rb +9 -0
- data/lib/utopia/wiki/version.rb +1 -1
- data/template/Gemfile +6 -0
- data/template/README.md +27 -0
- data/template/config.ru +10 -0
- data/wiki/Gemfile +0 -4
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dde608a804db566cb8db13cafac65566f06f0c40560cec19d806353439d4ac8
|
4
|
+
data.tar.gz: 91eacac35db0e3484721a181cf4c8b741c00285c22f28e0b07a8cb1cc23a8098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ad3108d0c49ef241f1c448e40eb99f5305e14f92800ee8d703da7ae73ca2573e1d54e69c33c39e9c8480287126c2eb244ea2ee6b398902ca40695a0d24df80
|
7
|
+
data.tar.gz: 3431896df793ed072ffbd150f12dfb86234ec93b70e4bf9bec6e74b17c6a31ed1a602c5de35fa1d22617352cc49410f3a7fe026b0d62a92c12a557aa7346de6a
|
data/bake/utopia/wiki.rb
CHANGED
@@ -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")
|
data/lib/utopia/wiki/version.rb
CHANGED
data/template/Gemfile
ADDED
data/template/README.md
ADDED
@@ -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.
|
data/template/config.ru
ADDED
data/wiki/Gemfile
CHANGED
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.
|
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
|