utopia-project 0.15.5 → 0.16.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: 5bce0912852ded6422335c5f5b4fb819485a2bf600ee2fd459c41db1d1ecee73
4
- data.tar.gz: 835f4eb6be07a1063d6f575ab882d6ae62cf4101ec1b387769c036c136657941
3
+ metadata.gz: c71cf5c142e09f4a14c86c346f006a9208a104a1271627fc63b739c3b409ff32
4
+ data.tar.gz: ed70f4c752e6f955c2a9e4da329b632f0bd86fc9071016f9881dbd68425baefb
5
5
  SHA512:
6
- metadata.gz: b7bf5269dec13418197d951e61b635e6176bf6335bc0397bc6e4b9d1c584ae0facd0ee2f813358c22e79465f2359611f36f56544a533a6cc5b8929000d6f4520
7
- data.tar.gz: 2be013a652c1eafc7cc044eaabf42c5c53796bd8192a56014e331528d516590e10d2bc02533aa08490643fc1421bb3dbaf757a6628b6cf7f7d2b16c6e920b624
6
+ metadata.gz: 2b82b1707d5c3f75d0358443b3ae67e2758d17c73a872c71cb74427a8871992b78ea32154fac1593f7fb5c6c5cdb8a169e165ca0439b68613128dbb311779d13
7
+ data.tar.gz: 0d1dda598ecb0bd12eef2501eddade8b02c06d3880c39eb0c53b6975563c3011470dcf485541a2dda689a35ceb44b903bf5f92c6e756d0a11d6182518714cd6f
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Utopia
24
24
  module Project
25
- VERSION = "0.15.5"
25
+ VERSION = "0.16.0"
26
26
  end
27
27
  end
@@ -0,0 +1,24 @@
1
+ <?r
2
+ repo = ENV['UTOPIA_PROJECT_GISCUS_REPO']
3
+ repo_id = ENV['UTOPIA_PROJECT_GISCUS_REPO_ID']
4
+ category = ENV['UTOPIA_PROJECT_GISCUS_CATEGORY']
5
+ category_id = ENV['UTOPIA_PROJECT_GISCUS_CATEGORY_ID']
6
+
7
+ if repo
8
+ ?>
9
+ <section>
10
+ <h2>Discussion</h2>
11
+ <script src="https://giscus.app/client.js"
12
+ data-repo="#{repo}"
13
+ data-repo-id="#{repo_id}"
14
+ data-category="#{category}"
15
+ data-category-id="#{category_id}"
16
+ data-mapping="title"
17
+ data-reactions-enabled="0"
18
+ data-emit-metadata="0"
19
+ data-theme="preferred_color_scheme"
20
+ crossorigin="anonymous"
21
+ async>
22
+ </script>
23
+ </section>
24
+ <?r end ?>
@@ -61,4 +61,6 @@
61
61
  end
62
62
  ?>
63
63
  </section>
64
+
65
+ <content:discuss/>
64
66
  </content:page>
@@ -1,4 +1,6 @@
1
1
 
2
+ * {box-sizing: border-box;}
3
+
2
4
  html {
3
5
  font-family: "PT Sans", Verdana, Helvetica, Arial, sans-serif;
4
6
  font-size: 16px;
@@ -135,6 +137,11 @@ h1, h2, h3, h4, h5, h6, p, pre, ul, dl, ol {
135
137
  margin: 1rem;
136
138
  }
137
139
 
140
+ div.giscus {
141
+ margin: 1rem 0;
142
+ padding: 0 1rem;
143
+ }
144
+
138
145
  pre {
139
146
  margin: 2rem 1rem;
140
147
  }
data/template/config.ru CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  require 'utopia/setup'
3
- UTOPIA ||= Utopia.setup
3
+ UTOPIA ||= Utopia.setup(Dir.pwd)
4
4
 
5
5
  require 'utopia/project'
6
6
  Utopia::Project.call(self)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.5
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-18 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decode
@@ -193,6 +193,7 @@ files:
193
193
  - pages/guides/show.xnode
194
194
  - pages/index.xnode
195
195
  - pages/links.yaml
196
+ - pages/source/_discuss.xnode
196
197
  - pages/source/_pragmas.xnode
197
198
  - pages/source/_signature.xnode
198
199
  - pages/source/controller.rb