scholarmarkdown 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: 99d5b736bcf8777363f16fa6f181b68a42a35bd0
4
- data.tar.gz: faf2eb639b266ba9eb082f16d63e8bc7f7f9b10b
3
+ metadata.gz: 04bb44a7dd4dedb9bf445d555990711ea92599b3
4
+ data.tar.gz: 0425ca14fac298dd071d0a17da65777be9f8aa71
5
5
  SHA512:
6
- metadata.gz: cccbcdcc92710f5b7204862c8c3d49217a0c31055432075aed80da58be2d47e5a6c7c882fb655512a34c61e0756b4a48b7f50bb3519c1964a47e5a33f1bef767
7
- data.tar.gz: da1129b6bcf6fdeab5980cd94c57ca12597cd85646436ed4231cf3c671bfaeab263fe9df12ed53e7fcf53d35bf8aeccdf9b2fa0a213c0876f312b6603c037efa
6
+ metadata.gz: 4c3af7e015490bd5cb27711aabb7283514773ee0da5c462c48fc5d2967272e6d76b0f21593b22d8cc2b6a245f50a82a7cd3045d43538a71c72119b8d25467100
7
+ data.tar.gz: bc8d2bf6416a77121871a064a268afc3fef87c5a82c838079ce8682b4412d7059d47955df98366d253d01d14c3fdb3611411dabac74b6c76b043b5e4b1bfd348
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
data/bin/template/Gemfile CHANGED
@@ -28,6 +28,7 @@ group :development do
28
28
  gem 'rack-livereload'
29
29
  gem 'wdm', '>= 0.1.0' if Gem.win_platform?
30
30
  gem 'rb-readline'
31
+ gem 'rb-notifu' if Gem.win_platform?
31
32
  end
32
33
 
33
34
  group :test do
@@ -368,6 +368,7 @@ header {
368
368
  list-style: none;
369
369
  margin: 1em 0;
370
370
  padding: 0;
371
+ text-align: center;
371
372
 
372
373
  li {
373
374
  display: inline;
@@ -1,2 +1,8 @@
1
1
  @import "lncs.scss";
2
2
  @import "shared.scss";
3
+
4
+ header {
5
+ .actions, .context {
6
+ display: none;
7
+ }
8
+ }
@@ -43,6 +43,37 @@ header {
43
43
  padding: 0;
44
44
  }
45
45
 
46
+ .actions, .context {
47
+ font-size: .9em;
48
+
49
+ h2 {
50
+ margin: 0;
51
+ display: inline;
52
+ font-size: 1em;
53
+ font-weight: normal;
54
+
55
+ &:after {
56
+ content: ":";
57
+ }
58
+ }
59
+
60
+ ul {
61
+ display: inline;
62
+ }
63
+
64
+ li {
65
+ display: inline;
66
+ white-space: nowrap;
67
+ font-style: italic;
68
+
69
+ &:not(:last-child) {
70
+ &:after {
71
+ content: ", ";
72
+ }
73
+ }
74
+ }
75
+ }
76
+
46
77
  #authors {
47
78
  li {
48
79
  display: inline;
@@ -75,6 +106,7 @@ header {
75
106
  #abstract {
76
107
  font-weight: bold;
77
108
  hyphens: auto;
109
+ padding-bottom: 10px;
78
110
 
79
111
  h2 {
80
112
  display: none;
@@ -1,12 +1,12 @@
1
- <!DOCTYPE HTML>
2
- <html lang="en">
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
3
  <head>
4
- <meta charset="utf-8">
4
+ <meta charset="utf-8" />
5
5
  <title><%= h @item[:title] %></title>
6
- <link rel="stylesheet" media="screen" href="styles/screen.css">
7
- <link rel="stylesheet" media="print" href="styles/print.css">
6
+ <link rel="stylesheet" media="screen" href="styles/screen.css" />
7
+ <link rel="stylesheet" media="print" href="styles/print.css" />
8
8
  </head>
9
9
  <body prefix="cc: https://creativecommons.org/ns# rdfs: http://www.w3.org/2000/01/rdf-schema#">
10
10
  <%= yield %>
11
- </body>
11
+ </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
12
  </html>
@@ -0,0 +1,34 @@
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
@@ -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 1.0.0 ruby lib
5
+ # stub: scholarmarkdown 1.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scholarmarkdown"
9
- s.version = "1.0.0"
9
+ s.version = "1.1.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ruben Taelman"]
14
- s.date = "2018-04-19"
14
+ s.date = "2018-05-08"
15
15
  s.email = "rubensworks@gmail.com"
16
16
  s.executables = ["generate-scholarmarkdown"]
17
17
  s.extra_rdoc_files = [
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  "lib/scholarmarkdown/citationstyles/lncs-custom.csl",
48
48
  "lib/scholarmarkdown/filter/acronym.rb",
49
49
  "lib/scholarmarkdown/filter/citation.rb",
50
+ "lib/scholarmarkdown/filter/dokieli.rb",
50
51
  "lib/scholarmarkdown/filter/headerids_to_section.rb",
51
52
  "lib/scholarmarkdown/filter/hyphenate_iri.rb",
52
53
  "lib/scholarmarkdown/filter/include_code.rb",
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.0.0
4
+ version: 1.1.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-04-19 00:00:00.000000000 Z
11
+ date: 2018-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -159,6 +159,7 @@ files:
159
159
  - lib/scholarmarkdown/citationstyles/lncs-custom.csl
160
160
  - lib/scholarmarkdown/filter/acronym.rb
161
161
  - lib/scholarmarkdown/filter/citation.rb
162
+ - lib/scholarmarkdown/filter/dokieli.rb
162
163
  - lib/scholarmarkdown/filter/headerids_to_section.rb
163
164
  - lib/scholarmarkdown/filter/hyphenate_iri.rb
164
165
  - lib/scholarmarkdown/filter/include_code.rb