scholarmarkdown 1.4.0 → 2.0.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
- SHA1:
3
- metadata.gz: 8e5d23bd7d0c9be0cd125d0808dd9c0df6b29d2f
4
- data.tar.gz: a99b6ebfced6aa0ad73e85e4ef344c37af9a416f
2
+ SHA256:
3
+ metadata.gz: cb5557bb17201f44365407885c3e16c2b60f0e489be3b8e5980c7d1e906f9d07
4
+ data.tar.gz: b12c6c0fe49c6b419dca75d318b869dad6c35e2f42024f130898929c07d45e6e
5
5
  SHA512:
6
- metadata.gz: 6af15e371f9f8fe2ae1b38724085801404d406eba09663f43a97b97e97464d9e75cb3ae56677567be547701fe041707bf81f72deaedbcb2f2e2e9a11ad5ed566
7
- data.tar.gz: 54dc3d426e736be81c1b9c4f6de07c328d31348775bb79cace05598138826114d9aaac266f34c0cb733ac9bf90b4cdab7febc125a4791240521183787f64820f
6
+ metadata.gz: 0a684b9e020e902ca79e4e91aee4bd8db062bb308943806a5b9542e5741eaca9eb5026bbe93164760b0f012dbc43306440bb45870bd4bb0faff271a91ccdb56e
7
+ data.tar.gz: 0f950b838974fe53d23b25a729f1bde9c1bd11b5a0b5a382f6368301cc3247c3a901210b3728fce1afb314b71fd6b9f3aed9e99089389836c4f756c2a53bb1d4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 2.0.0
@@ -5,9 +5,9 @@
5
5
  <title><%= h @item[:title] %></title>
6
6
  <link rel="stylesheet" media="screen" href="styles/screen.css" />
7
7
  <link rel="stylesheet" media="print" href="styles/print.css" />
8
- <%= @items['/styles/katex.css'].nil? ? '' : '<link rel="stylesheet" media="all" href="styles/katex.css">' %>
8
+ <%= @items['/styles/katex.css'].nil? ? '' : '<link rel="stylesheet" media="all" href="styles/katex.css" />' %>
9
9
  </head>
10
- <body prefix="cc: https://creativecommons.org/ns# rdfs: http://www.w3.org/2000/01/rdf-schema#">
10
+ <body prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ v: http://www.w3.org/2006/vcard/ns# pimspace: http://www.w3.org/ns/pim/space# cc: https://creativecommons.org/ns# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# cal: http://www.w3.org/2002/12/cal/ical# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# org: http://www.w3.org/ns/org# biblio: http://purl.org/net/biblio# bibo: http://purl.org/ontology/bibo/ book: http://purl.org/NET/book/vocab# ov: http://open.vocab.org/terms/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# dio: https://w3id.org/dio# as: https://www.w3.org/ns/activitystreams# oa: http://www.w3.org/ns/oa# ldp: http://www.w3.org/ns/ldp#" typeof="schema:CreativeWork sioc:Post prov:Entity">
11
11
  <%= yield %>
12
- </body about="" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# dcterms: http://purl.org/dc/terms/ dctypes: http://purl.org/dc/dcmitype/ foaf: http://xmlns.com/foaf/0.1/ v: http://www.w3.org/2006/vcard/ns# pimspace: http://www.w3.org/ns/pim/space# cc: https://creativecommons.org/ns# skos: http://www.w3.org/2004/02/skos/core# prov: http://www.w3.org/ns/prov# qb: http://purl.org/linked-data/cube# schema: http://schema.org/ void: http://rdfs.org/ns/void# rsa: http://www.w3.org/ns/auth/rsa# cert: http://www.w3.org/ns/auth/cert# cal: http://www.w3.org/2002/12/cal/ical# wgs: http://www.w3.org/2003/01/geo/wgs84_pos# org: http://www.w3.org/ns/org# biblio: http://purl.org/net/biblio# bibo: http://purl.org/ontology/bibo/ book: http://purl.org/NET/book/vocab# ov: http://open.vocab.org/terms/ sioc: http://rdfs.org/sioc/ns# doap: http://usefulinc.com/ns/doap# dbr: http://dbpedia.org/resource/ dbp: http://dbpedia.org/property/ sio: http://semanticscience.org/resource/ opmw: http://www.opmw.org/ontology/ deo: http://purl.org/spar/deo/ doco: http://purl.org/spar/doco/ cito: http://purl.org/spar/cito/ fabio: http://purl.org/spar/fabio/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# ldp: http://www.w3.org/ns/ldp# solid: http://www.w3.org/ns/solid/terms# acl: http://www.w3.org/ns/auth/acl# dio: https://w3id.org/dio#" typeof="schema:CreativeWork sioc:Post prov:Entity">
12
+ </body>
13
13
  </html>
@@ -6,7 +6,7 @@ Nanoc::Filter.define(:scholar_acronym) do |content, params|
6
6
  transformed = content.dup
7
7
  acronyms.each do |row|
8
8
  transformed.gsub! %r{(?<=[^a-zA-Z0-9])#{row['abbreviation']}(?=[^a-zA-Z0-9])} do |match|
9
- %{<span class='abbreviation' title='#{row['full']}'>#{row['abbreviation']}</span>}
9
+ %{<abbr title='#{row['full']}'>#{row['abbreviation']}</abbr>}
10
10
  end
11
11
  end
12
12
  transformed
@@ -0,0 +1,20 @@
1
+ # Define a filter for adding annotation links
2
+ Nanoc::Filter.define(:scholar_annotations) do |content, params|
3
+ content = content.dup
4
+
5
+ # Add Dokieli actions at the end of the <header>
6
+ content.gsub! %r{\<\/header\>} do |match|
7
+ <<-HTML
8
+ <section class="actions">
9
+ <h2 id="notifications-and-annotations">Notifications and annotations</h2>
10
+ <ul>
11
+ <li><a href="#{params[:notifications]}" rel="ldp:inbox">notification inbox</a></li>
12
+ <li><a href="#{params[:annotations]}" rel="oa:annotationService">annotation service</a></li>
13
+ </ul>
14
+ </section>
15
+ </header>
16
+ HTML
17
+ end
18
+
19
+ content
20
+ end
@@ -0,0 +1,16 @@
1
+ # Define a filter for adding the Dokieli UI
2
+ Nanoc::Filter.define(:scholar_dokieli_ui) do |content|
3
+ content = content.dup
4
+
5
+ # Add Dokieli scripts at the end of the <head>
6
+ content.gsub! %r{\<\/head\>} do |match|
7
+ <<-HTML
8
+ <link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet" />
9
+ <link href="https://dokie.li/media/css/dokieli.css" media="all" rel="stylesheet" />
10
+ <script src="https://dokie.li/scripts/dokieli.js"></script>
11
+ </head>
12
+ HTML
13
+ end
14
+
15
+ content
16
+ end
@@ -2,18 +2,18 @@
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 1.4.0 ruby lib
5
+ # stub: scholarmarkdown 2.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "scholarmarkdown"
9
- s.version = "1.4.0"
8
+ s.name = "scholarmarkdown".freeze
9
+ s.version = "2.0.0"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Ruben Taelman"]
14
- s.date = "2018-06-05"
15
- s.email = "rubensworks@gmail.com"
16
- s.executables = ["generate-scholarmarkdown"]
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Ruben Taelman".freeze]
14
+ s.date = "2018-12-03"
15
+ s.email = "rubensworks@gmail.com".freeze
16
+ s.executables = ["generate-scholarmarkdown".freeze]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.md"
@@ -46,8 +46,9 @@ Gem::Specification.new do |s|
46
46
  "lib/scholarmarkdown.rb",
47
47
  "lib/scholarmarkdown/citationstyles/lncs-custom.csl",
48
48
  "lib/scholarmarkdown/filter/acronym.rb",
49
+ "lib/scholarmarkdown/filter/annotations.rb",
49
50
  "lib/scholarmarkdown/filter/citation.rb",
50
- "lib/scholarmarkdown/filter/dokieli.rb",
51
+ "lib/scholarmarkdown/filter/dokieli_ui.rb",
51
52
  "lib/scholarmarkdown/filter/headerids_to_section.rb",
52
53
  "lib/scholarmarkdown/filter/hyphenate_iri.rb",
53
54
  "lib/scholarmarkdown/filter/include_code.rb",
@@ -57,54 +58,54 @@ Gem::Specification.new do |s|
57
58
  "lib/scholarmarkdown/snippets.rb",
58
59
  "scholarmarkdown.gemspec"
59
60
  ]
60
- s.homepage = "http://github.com/rubensworks/ScholarMarkdown"
61
- s.licenses = ["MIT"]
62
- s.rubygems_version = "2.5.1"
63
- s.summary = "A framework for writing markdown-based scholarly articles."
61
+ s.homepage = "http://github.com/rubensworks/ScholarMarkdown".freeze
62
+ s.licenses = ["MIT".freeze]
63
+ s.rubygems_version = "2.7.7".freeze
64
+ s.summary = "A framework for writing markdown-based scholarly articles.".freeze
64
65
 
65
66
  if s.respond_to? :specification_version then
66
67
  s.specification_version = 4
67
68
 
68
69
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
- s.add_runtime_dependency(%q<i18n>, [">= 0"])
70
- s.add_runtime_dependency(%q<bibtex-ruby>, [">= 0"])
71
- s.add_runtime_dependency(%q<latex-decode>, [">= 0"])
72
- s.add_runtime_dependency(%q<citeproc-ruby>, [">= 1.1.6"])
73
- s.add_runtime_dependency(%q<csl-styles>, [">= 0"])
74
- s.add_runtime_dependency(%q<bibmarkdown>, ["~> 2.0.0"])
75
- s.add_runtime_dependency(%q<katex>, [">= 0"])
76
- s.add_runtime_dependency(%q<sskatex>, [">= 0"])
77
- s.add_runtime_dependency(%q<execjs>, [">= 0"])
78
- s.add_runtime_dependency(%q<therubyracer>, [">= 0"])
79
- s.add_development_dependency(%q<bundler>, ["~> 1.0"])
80
- s.add_development_dependency(%q<juwelier>, ["~> 2.4.7"])
70
+ s.add_runtime_dependency(%q<i18n>.freeze, [">= 0"])
71
+ s.add_runtime_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
72
+ s.add_runtime_dependency(%q<latex-decode>.freeze, [">= 0"])
73
+ s.add_runtime_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
74
+ s.add_runtime_dependency(%q<csl-styles>.freeze, [">= 0"])
75
+ s.add_runtime_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
76
+ s.add_runtime_dependency(%q<katex>.freeze, [">= 0"])
77
+ s.add_runtime_dependency(%q<sskatex>.freeze, [">= 0"])
78
+ s.add_runtime_dependency(%q<execjs>.freeze, [">= 0"])
79
+ s.add_runtime_dependency(%q<therubyracer>.freeze, [">= 0"])
80
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
81
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
81
82
  else
82
- s.add_dependency(%q<i18n>, [">= 0"])
83
- s.add_dependency(%q<bibtex-ruby>, [">= 0"])
84
- s.add_dependency(%q<latex-decode>, [">= 0"])
85
- s.add_dependency(%q<citeproc-ruby>, [">= 1.1.6"])
86
- s.add_dependency(%q<csl-styles>, [">= 0"])
87
- s.add_dependency(%q<bibmarkdown>, ["~> 2.0.0"])
88
- s.add_dependency(%q<katex>, [">= 0"])
89
- s.add_dependency(%q<sskatex>, [">= 0"])
90
- s.add_dependency(%q<execjs>, [">= 0"])
91
- s.add_dependency(%q<therubyracer>, [">= 0"])
92
- s.add_dependency(%q<bundler>, ["~> 1.0"])
93
- s.add_dependency(%q<juwelier>, ["~> 2.4.7"])
83
+ s.add_dependency(%q<i18n>.freeze, [">= 0"])
84
+ s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
85
+ s.add_dependency(%q<latex-decode>.freeze, [">= 0"])
86
+ s.add_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
87
+ s.add_dependency(%q<csl-styles>.freeze, [">= 0"])
88
+ s.add_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
89
+ s.add_dependency(%q<katex>.freeze, [">= 0"])
90
+ s.add_dependency(%q<sskatex>.freeze, [">= 0"])
91
+ s.add_dependency(%q<execjs>.freeze, [">= 0"])
92
+ s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
93
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
94
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
94
95
  end
95
96
  else
96
- s.add_dependency(%q<i18n>, [">= 0"])
97
- s.add_dependency(%q<bibtex-ruby>, [">= 0"])
98
- s.add_dependency(%q<latex-decode>, [">= 0"])
99
- s.add_dependency(%q<citeproc-ruby>, [">= 1.1.6"])
100
- s.add_dependency(%q<csl-styles>, [">= 0"])
101
- s.add_dependency(%q<bibmarkdown>, ["~> 2.0.0"])
102
- s.add_dependency(%q<katex>, [">= 0"])
103
- s.add_dependency(%q<sskatex>, [">= 0"])
104
- s.add_dependency(%q<execjs>, [">= 0"])
105
- s.add_dependency(%q<therubyracer>, [">= 0"])
106
- s.add_dependency(%q<bundler>, ["~> 1.0"])
107
- s.add_dependency(%q<juwelier>, ["~> 2.4.7"])
97
+ s.add_dependency(%q<i18n>.freeze, [">= 0"])
98
+ s.add_dependency(%q<bibtex-ruby>.freeze, [">= 0"])
99
+ s.add_dependency(%q<latex-decode>.freeze, [">= 0"])
100
+ s.add_dependency(%q<citeproc-ruby>.freeze, [">= 1.1.6"])
101
+ s.add_dependency(%q<csl-styles>.freeze, [">= 0"])
102
+ s.add_dependency(%q<bibmarkdown>.freeze, ["~> 2.0.0"])
103
+ s.add_dependency(%q<katex>.freeze, [">= 0"])
104
+ s.add_dependency(%q<sskatex>.freeze, [">= 0"])
105
+ s.add_dependency(%q<execjs>.freeze, [">= 0"])
106
+ s.add_dependency(%q<therubyracer>.freeze, [">= 0"])
107
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
108
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.7"])
108
109
  end
109
110
  end
110
111
 
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: 1.4.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Taelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -214,8 +214,9 @@ files:
214
214
  - lib/scholarmarkdown.rb
215
215
  - lib/scholarmarkdown/citationstyles/lncs-custom.csl
216
216
  - lib/scholarmarkdown/filter/acronym.rb
217
+ - lib/scholarmarkdown/filter/annotations.rb
217
218
  - lib/scholarmarkdown/filter/citation.rb
218
- - lib/scholarmarkdown/filter/dokieli.rb
219
+ - lib/scholarmarkdown/filter/dokieli_ui.rb
219
220
  - lib/scholarmarkdown/filter/headerids_to_section.rb
220
221
  - lib/scholarmarkdown/filter/hyphenate_iri.rb
221
222
  - lib/scholarmarkdown/filter/include_code.rb
@@ -244,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  version: '0'
245
246
  requirements: []
246
247
  rubyforge_project:
247
- rubygems_version: 2.5.1
248
+ rubygems_version: 2.7.7
248
249
  signing_key:
249
250
  specification_version: 4
250
251
  summary: A framework for writing markdown-based scholarly articles.
@@ -1,34 +0,0 @@
1
- # Define a filter for adding Dokieli annotations
2
- Nanoc::Filter.define(:scholar_dokieli) do |content, params|
3
- content = content.dup
4
-
5
- # Add Dokieli scripts at the end of the <head>
6
- content.gsub! %r{\<\/head\>} do |match|
7
- <<-HTML
8
- <link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet" />
9
- <link href="https://dokie.li/media/css/do.css" media="all" rel="stylesheet" />
10
- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" media="all" rel="stylesheet" />
11
- <script src="https://dokie.li/scripts/simplerdf.js"></script>
12
- <script src="https://dokie.li/scripts/medium-editor.min.js"></script>
13
- <script src="https://dokie.li/scripts/medium-editor-tables.min.js"></script>
14
- <script src="https://dokie.li/scripts/do.js"></script>
15
- </head>
16
- HTML
17
- end
18
-
19
- # Add Dokieli actions at the end of the <header>
20
- content.gsub! %r{\<\/header\>} do |match|
21
- <<-HTML
22
- <section class="actions">
23
- <h2 id="notifications-and-annotations">Notifications and annotations</h2>
24
- <ul>
25
- <li><a href="#{params[:notifications]}" rel="ldp:inbox">notification inbox</a></li>
26
- <li><a href="#{params[:annotations]}" rel="oa:annotationService">annotation service</a></li>
27
- </ul>
28
- </section>
29
- </header>
30
- HTML
31
- end
32
-
33
- content
34
- end