scholarmarkdown 2.6.0 → 2.10.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: 7706863395ba006040193bda58d4788efef5935494a7337be0cd604396c0f093
4
- data.tar.gz: 8a71634b511450130b8610cdab9362d6c491b388ea2101e7ca97ea0ae219faa1
3
+ metadata.gz: 0a20e52ef2e85542ba625d9cf59f1f09671b476b86b8d045e5b725071cab6a21
4
+ data.tar.gz: 575349c0cd0640eb724a9477cc5942195dd74fbffa1c1de19f665978f76f7f05
5
5
  SHA512:
6
- metadata.gz: 50953b262188dca05a48145d34c2242bf7834dc64243a81505b11c5626f82f53dd708209f1b89afe343fe5ee16beba3c90de0313cba9c43999d30cda0b417484
7
- data.tar.gz: 0bcf49fbe70124d2e0e7fff72df236b13b379c26309d65221436fae277bb77c9dfc5ab4b1c87eaf34dd77715a3f12cd6f26f36001aadb41dc1fd7d498e1aa244
6
+ metadata.gz: 0e7e37c86f236955443bf102d34c81fcac762cbbf5f753049c76dfb7461a8ece246b0c31a1b0fcf3f86f4f7f88643c9eded9315b7b77fe214d9f7125935e248e
7
+ data.tar.gz: 683f261c53d0579398f8faa63ed6a39297512fe939e772a1986eb8675497bf72aa253de366c43d75eaf396cf1e46fc92cd156afb141fe0a3263fc3e911d97e0b
data/Gemfile CHANGED
@@ -13,10 +13,10 @@ gem 'katex'
13
13
  gem 'sskatex'
14
14
  gem 'kramdown-math-sskatex'
15
15
  gem 'execjs'
16
- gem 'therubyracer' # embedded V8 JavaScript engine
16
+ gem 'therubyracer', :platforms => :ruby # embedded V8 JavaScript engine
17
17
 
18
18
  group :development do
19
19
  # management of this gem
20
- gem "bundler", "~> 1.0"
20
+ gem "bundler", "~> 2.0"
21
21
  gem "juwelier", "~> 2.4.7"
22
22
  end
data/Gemfile.lock CHANGED
@@ -1,39 +1,58 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- addressable (2.5.2)
5
- public_suffix (>= 2.0.2, < 4.0)
4
+ addressable (2.8.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
6
6
  bibmarkdown (2.0.0)
7
7
  citeproc-ruby
8
8
  csl-styles
9
- bibtex-ruby (4.4.6)
9
+ bibtex-ruby (6.0.0)
10
10
  latex-decode (~> 0.0)
11
- builder (3.2.3)
12
- citeproc (1.0.9)
11
+ builder (3.2.4)
12
+ citeproc (1.0.10)
13
13
  namae (~> 1.0)
14
- citeproc-ruby (1.1.10)
14
+ citeproc-ruby (1.1.14)
15
15
  citeproc (~> 1.0, >= 1.0.9)
16
- csl (~> 1.5)
17
- concurrent-ruby (1.0.5)
18
- csl (1.5.0)
16
+ csl (~> 1.6)
17
+ concurrent-ruby (1.1.9)
18
+ csl (1.6.0)
19
19
  namae (~> 1.0)
20
- csl-styles (1.0.1.8)
20
+ rexml
21
+ csl-styles (1.0.1.11)
21
22
  csl (~> 1.0)
22
23
  descendants_tracker (0.0.4)
23
24
  thread_safe (~> 0.3, >= 0.3.1)
24
- execjs (2.7.0)
25
- faraday (0.12.2)
25
+ execjs (2.8.1)
26
+ faraday (1.8.0)
27
+ faraday-em_http (~> 1.0)
28
+ faraday-em_synchrony (~> 1.0)
29
+ faraday-excon (~> 1.1)
30
+ faraday-httpclient (~> 1.0.1)
31
+ faraday-net_http (~> 1.0)
32
+ faraday-net_http_persistent (~> 1.1)
33
+ faraday-patron (~> 1.0)
34
+ faraday-rack (~> 1.0)
26
35
  multipart-post (>= 1.2, < 3)
27
- git (1.3.0)
28
- github_api (0.18.2)
36
+ ruby2_keywords (>= 0.0.4)
37
+ faraday-em_http (1.0.0)
38
+ faraday-em_synchrony (1.0.0)
39
+ faraday-excon (1.1.0)
40
+ faraday-httpclient (1.0.1)
41
+ faraday-net_http (1.0.1)
42
+ faraday-net_http_persistent (1.2.0)
43
+ faraday-patron (1.0.0)
44
+ faraday-rack (1.0.0)
45
+ git (1.9.1)
46
+ rchardet (~> 1.8)
47
+ github_api (0.19.0)
29
48
  addressable (~> 2.4)
30
49
  descendants_tracker (~> 0.0.4)
31
- faraday (~> 0.8)
50
+ faraday (>= 0.8, < 2)
32
51
  hashie (~> 3.5, >= 3.5.2)
33
52
  oauth2 (~> 1.0)
34
- hashie (3.5.7)
35
- highline (1.7.10)
36
- i18n (0.9.5)
53
+ hashie (3.6.0)
54
+ highline (2.0.3)
55
+ i18n (1.8.10)
37
56
  concurrent-ruby (~> 1.0)
38
57
  juwelier (2.4.9)
39
58
  builder
@@ -47,36 +66,40 @@ GEM
47
66
  rake
48
67
  rdoc
49
68
  semver2
50
- jwt (1.5.6)
69
+ jwt (2.2.3)
51
70
  kamelcase (0.0.2)
52
71
  semver2 (~> 3)
53
- katex (0.4.3)
72
+ katex (0.8.0)
54
73
  execjs (~> 2.7)
55
- kramdown (2.1.0)
74
+ kramdown (2.3.1)
75
+ rexml
56
76
  kramdown-math-sskatex (1.0.0)
57
77
  kramdown (~> 2.0)
58
78
  sskatex (>= 0.9.37)
59
- latex-decode (0.3.1)
79
+ latex-decode (0.3.2)
60
80
  libv8 (3.16.14.19)
61
- mini_portile2 (2.3.0)
62
- multi_json (1.13.1)
81
+ multi_json (1.15.0)
63
82
  multi_xml (0.6.0)
64
- multipart-post (2.0.0)
65
- namae (1.0.1)
66
- nokogiri (1.8.2)
67
- mini_portile2 (~> 2.3.0)
68
- oauth2 (1.4.0)
69
- faraday (>= 0.8, < 0.13)
70
- jwt (~> 1.0)
83
+ multipart-post (2.1.1)
84
+ namae (1.1.1)
85
+ nokogiri (1.12.4-x86_64-darwin)
86
+ racc (~> 1.4)
87
+ oauth2 (1.4.7)
88
+ faraday (>= 0.8, < 2.0)
89
+ jwt (>= 1.0, < 3.0)
71
90
  multi_json (~> 1.3)
72
91
  multi_xml (~> 0.5)
73
92
  rack (>= 1.2, < 3)
74
- psych (3.0.2)
75
- public_suffix (3.0.2)
76
- rack (1.5.5)
77
- rake (12.3.0)
78
- rdoc (6.0.2)
93
+ psych (4.0.1)
94
+ public_suffix (4.0.6)
95
+ racc (1.5.2)
96
+ rack (2.2.3)
97
+ rake (13.0.6)
98
+ rchardet (1.8.0)
99
+ rdoc (6.3.2)
79
100
  ref (2.0.0)
101
+ rexml (3.2.5)
102
+ ruby2_keywords (0.0.5)
80
103
  semver2 (3.4.2)
81
104
  sskatex (0.9.39)
82
105
  execjs (~> 2.7)
@@ -87,11 +110,12 @@ GEM
87
110
 
88
111
  PLATFORMS
89
112
  ruby
113
+ x86_64-darwin-19
90
114
 
91
115
  DEPENDENCIES
92
116
  bibmarkdown (~> 2.0.0)
93
117
  bibtex-ruby
94
- bundler (~> 1.0)
118
+ bundler (~> 2.0)
95
119
  citeproc-ruby (>= 1.1.6)
96
120
  csl-styles
97
121
  execjs
@@ -104,4 +128,4 @@ DEPENDENCIES
104
128
  therubyracer
105
129
 
106
130
  BUNDLED WITH
107
- 1.16.2
131
+ 2.2.28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.0
1
+ 2.10.0
data/bin/template/Gemfile CHANGED
@@ -21,10 +21,9 @@ gem 'csl-styles'
21
21
  group :development do
22
22
  # live view
23
23
  gem 'guard-nanoc', '~> 2.1.2'
24
- gem 'guard-process'
24
+ gem 'guard-rack'
25
25
  gem 'guard-livereload'
26
- gem 'serve'
27
- gem 'thin'
26
+ gem 'rack'
28
27
  gem 'rack-livereload'
29
28
  gem 'wdm', '>= 0.1.0' if Gem.win_platform?
30
29
  gem 'rb-readline'
@@ -1,15 +1,15 @@
1
+ guard 'rack', :port => 3000 do
2
+ watch 'Gemfile.lock'
3
+ end
4
+
1
5
  guard :nanoc do
2
6
  watch 'nanoc.yaml'
3
7
  watch 'Rules'
4
8
  watch %r{^(content|layouts|lib)/}
5
9
  end
6
10
 
7
- guard :process, name: 'server', command: 'bundle exec serve' do
8
- watch 'Gemfile.lock'
9
- end
10
-
11
11
  guard :livereload do
12
12
  watch(%r{^output/}) { |m| m[0].sub(%r{^output/}, '') }
13
13
  end
14
14
 
15
- notification :notifu, :nosound => true
15
+ notification :notifu, :nosound => true
@@ -1,15 +1,17 @@
1
1
  # My Scholarly Article
2
2
 
3
- ## Build
3
+ ## Development mode
4
4
  ```
5
5
  bundle install
6
- bundle exec nanoc compile
6
+ bundle exec guard
7
7
  ```
8
8
 
9
- ## Development mode
9
+ ## Build
10
10
  ```
11
11
  bundle install
12
- bundle exec guard
12
+ bundle exec nanoc compile
13
13
  ```
14
14
 
15
15
  View on http://localhost:3000/
16
+
17
+ This article makes use of the [ScholarMarkdown](https://github.com/rubensworks/ScholarMarkdown/) framework.
@@ -1,11 +1,17 @@
1
- #\ -p 3000
2
- require 'serve'
3
- require 'serve/rack'
1
+ require 'rack'
4
2
  require 'rack-livereload'
5
- use Rack::LiveReload, no_swf: true
6
3
 
7
- root = File.dirname(__FILE__) + '/output'
8
- run Rack::Cascade.new [
9
- Serve::RackAdapter.new(root),
10
- Rack::Directory.new(root),
11
- ]
4
+ class IndexRewriter
5
+ def initialize app
6
+ @app = app
7
+ end
8
+
9
+ def call env
10
+ env["PATH_INFO"].gsub! /\/$/, '/index.html'
11
+ @app.call env
12
+ end
13
+ end
14
+
15
+ use IndexRewriter
16
+ use Rack::LiveReload
17
+ run Rack::File.new 'output'
@@ -15,7 +15,7 @@ title: "My Awesome Article"
15
15
 
16
16
  <main>
17
17
  <!-- Add sections by specifying their file name, excluding the '.md' suffix. -->
18
- <%= section 'introduction' %>
18
+ <%= section 'introduction' %>
19
19
  </main>
20
20
 
21
21
  <footer></footer>
@@ -3,7 +3,7 @@
3
3
 
4
4
  This is a great article on the [Semantic Web](cite:cites semanticweb), written in Markdown.
5
5
 
6
- Make sure to [write your document effectively](http://www.treesmapsandtheorems.com/pdfs/TM&Th-2.0-summary.pdf)!
6
+ Make sure to [write your document effectively](https://www.principiae.be/book/pdfs/TM&Th-2.0-summary.pdf)!
7
7
 
8
8
  Write proper introduction.
9
9
  More information on snippets like this can be found on the [ScholarMarkdown wiki](https://github.com/rubensworks/ScholarMarkdown/wiki/Snippets).
@@ -25,3 +25,19 @@ ol.index-entries[depth="1"] {
25
25
  font-weight: normal;
26
26
  }
27
27
  }
28
+
29
+ figure.numbered pre {
30
+ counter-reset: precode;
31
+
32
+ code {
33
+ &::before {
34
+ color: lightgray;
35
+ left: -1.75em;
36
+ text-align: right;
37
+ display: inline-block;
38
+ width: 1.5em;
39
+ content: counter(precode) " ";
40
+ counter-increment: precode;
41
+ }
42
+ }
43
+ }
@@ -25,7 +25,7 @@ title: "My Awesome Article"
25
25
 
26
26
  <main>
27
27
  <!-- Add sections by specifying their file name, excluding the '.md' suffix. -->
28
- <%= section 'introduction' %>
28
+ <%= section 'introduction' %>
29
29
  </main>
30
30
 
31
31
  <footer></footer>
@@ -154,6 +154,7 @@
154
154
  </group>
155
155
  </else>
156
156
  </choose>
157
+ <text variable="DOI" prefix=" doi:"/>
157
158
  </layout>
158
159
  </bibliography>
159
160
  </style>
@@ -67,6 +67,8 @@ def label_type_for document_sections, tag, attributes
67
67
  return 'Equation'
68
68
  when 'subfigure'
69
69
  return 'Subfig.'
70
+ when 'definition'
71
+ return 'Definition'
70
72
  end
71
73
  end
72
74
  end
@@ -163,4 +165,4 @@ def serialize_sections_index_row sections_index, max_depth, depth, root
163
165
  end
164
166
  table += "</ol>"
165
167
  table
166
- end
168
+ end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scholarmarkdown 2.6.0 ruby lib
5
+ # stub: scholarmarkdown 2.10.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scholarmarkdown".freeze
9
- s.version = "2.6.0"
9
+ s.version = "2.10.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Ruben Taelman".freeze]
14
- s.date = "2019-08-01"
14
+ s.date = "2021-09-24"
15
15
  s.email = "rubensworks@gmail.com".freeze
16
16
  s.executables = ["generate-scholarmarkdown".freeze]
17
17
  s.extra_rdoc_files = [
@@ -71,41 +71,27 @@ Gem::Specification.new do |s|
71
71
  ]
72
72
  s.homepage = "http://github.com/rubensworks/ScholarMarkdown".freeze
73
73
  s.licenses = ["MIT".freeze]
74
- s.rubygems_version = "2.7.7".freeze
74
+ s.rubygems_version = "3.1.2".freeze
75
75
  s.summary = "A framework for writing markdown-based scholarly articles.".freeze
76
76
 
77
77
  if s.respond_to? :specification_version then
78
78
  s.specification_version = 4
79
+ end
79
80
 
80
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
81
- s.add_runtime_dependency(%q<i18n>.freeze, [">= 0"])
82
- s.add_runtime_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
83
- s.add_runtime_dependency(%q<latex-decode>.freeze, [">= 0"])
84
- s.add_runtime_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
85
- s.add_runtime_dependency(%q<csl-styles>.freeze, [">= 0"])
86
- s.add_runtime_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
87
- s.add_runtime_dependency(%q<katex>.freeze, [">= 0"])
88
- s.add_runtime_dependency(%q<sskatex>.freeze, [">= 0"])
89
- s.add_runtime_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
90
- s.add_runtime_dependency(%q<execjs>.freeze, [">= 0"])
91
- s.add_runtime_dependency(%q<therubyracer>.freeze, [">= 0"])
92
- s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
93
- s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
94
- else
95
- s.add_dependency(%q<i18n>.freeze, [">= 0"])
96
- s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
97
- s.add_dependency(%q<latex-decode>.freeze, [">= 0"])
98
- s.add_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
99
- s.add_dependency(%q<csl-styles>.freeze, [">= 0"])
100
- s.add_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
101
- s.add_dependency(%q<katex>.freeze, [">= 0"])
102
- s.add_dependency(%q<sskatex>.freeze, [">= 0"])
103
- s.add_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
104
- s.add_dependency(%q<execjs>.freeze, [">= 0"])
105
- s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
106
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
107
- s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
108
- end
81
+ if s.respond_to? :add_runtime_dependency then
82
+ s.add_runtime_dependency(%q<i18n>.freeze, [">= 0"])
83
+ s.add_runtime_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
84
+ s.add_runtime_dependency(%q<latex-decode>.freeze, [">= 0"])
85
+ s.add_runtime_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
86
+ s.add_runtime_dependency(%q<csl-styles>.freeze, [">= 0"])
87
+ s.add_runtime_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
88
+ s.add_runtime_dependency(%q<katex>.freeze, [">= 0"])
89
+ s.add_runtime_dependency(%q<sskatex>.freeze, [">= 0"])
90
+ s.add_runtime_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
91
+ s.add_runtime_dependency(%q<execjs>.freeze, [">= 0"])
92
+ s.add_runtime_dependency(%q<therubyracer>.freeze, [">= 0"])
93
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 2.0"])
94
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
109
95
  else
110
96
  s.add_dependency(%q<i18n>.freeze, [">= 0"])
111
97
  s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
@@ -118,7 +104,7 @@ Gem::Specification.new do |s|
118
104
  s.add_dependency(%q<kramdown-math-sskatex>.freeze, [">= 0"])
119
105
  s.add_dependency(%q<execjs>.freeze, [">= 0"])
120
106
  s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
121
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
107
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.0"])
122
108
  s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
123
109
  end
124
110
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scholarmarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Taelman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-01 00:00:00.000000000 Z
11
+ date: 2021-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '1.0'
173
+ version: '2.0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '1.0'
180
+ version: '2.0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: juwelier
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 2.4.7
195
- description:
195
+ description:
196
196
  email: rubensworks@gmail.com
197
197
  executables:
198
198
  - generate-scholarmarkdown
@@ -254,7 +254,7 @@ homepage: http://github.com/rubensworks/ScholarMarkdown
254
254
  licenses:
255
255
  - MIT
256
256
  metadata: {}
257
- post_install_message:
257
+ post_install_message:
258
258
  rdoc_options: []
259
259
  require_paths:
260
260
  - lib
@@ -269,9 +269,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  - !ruby/object:Gem::Version
270
270
  version: '0'
271
271
  requirements: []
272
- rubyforge_project:
273
- rubygems_version: 2.7.7
274
- signing_key:
272
+ rubygems_version: 3.1.2
273
+ signing_key:
275
274
  specification_version: 4
276
275
  summary: A framework for writing markdown-based scholarly articles.
277
276
  test_files: []