markdownr 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/Dockerfile.markdownr +1 -1
- data/bin/markdownr +15 -0
- data/bin/markdownr-servers.yaml +39 -0
- data/lib/markdown_server/app.rb +729 -90
- data/lib/markdown_server/csv_browser/addon_registry.rb +137 -0
- data/lib/markdown_server/csv_browser/config_loader.rb +231 -0
- data/lib/markdown_server/csv_browser/row_context.rb +146 -0
- data/lib/markdown_server/csv_browser/table_reader.rb +259 -0
- data/lib/markdown_server/helpers/admin_helpers.rb +15 -1
- data/lib/markdown_server/plugin.rb +11 -0
- data/lib/markdown_server/version.rb +1 -1
- data/views/browser.erb +4408 -0
- data/views/layout.erb +2 -15
- metadata +35 -1
data/views/layout.erb
CHANGED
|
@@ -403,21 +403,8 @@
|
|
|
403
403
|
}
|
|
404
404
|
.sort-arrow { font-size: 0.6rem; }
|
|
405
405
|
|
|
406
|
-
/* Rouge syntax highlighting
|
|
407
|
-
|
|
408
|
-
.highlight .kr, .highlight .kt { color: #66d9ef; }
|
|
409
|
-
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb,
|
|
410
|
-
.highlight .sc, .highlight .sd, .highlight .sh, .highlight .sx { color: #e6db74; }
|
|
411
|
-
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #75715e; font-style: italic; }
|
|
412
|
-
.highlight .na { color: #a6e22e; }
|
|
413
|
-
.highlight .nf, .highlight .nb { color: #a6e22e; }
|
|
414
|
-
.highlight .nn, .highlight .nc { color: #66d9ef; }
|
|
415
|
-
.highlight .no { color: #ae81ff; }
|
|
416
|
-
.highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo { color: #ae81ff; }
|
|
417
|
-
.highlight .o, .highlight .ow { color: #f92672; }
|
|
418
|
-
.highlight .p { color: #f0f0f0; }
|
|
419
|
-
.highlight .gi { color: #a6e22e; }
|
|
420
|
-
.highlight .gd { color: #f92672; }
|
|
406
|
+
/* Rouge Monokai syntax highlighting */
|
|
407
|
+
<%= Rouge::Themes::Monokai.render(scope: '.highlight').gsub(/^\.highlight \{\n.*?background-color:.*?\n\}$/m, '') %>
|
|
421
408
|
|
|
422
409
|
/* TOC sidebar */
|
|
423
410
|
.page-with-toc {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdownr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Dunn
|
|
@@ -93,6 +93,34 @@ dependencies:
|
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '4.0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: json_schemer
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '2.0'
|
|
103
|
+
type: :runtime
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "~>"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '2.0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: csv
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - "~>"
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: '3.0'
|
|
117
|
+
type: :runtime
|
|
118
|
+
prerelease: false
|
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - "~>"
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '3.0'
|
|
96
124
|
description: Serve markdown files from any directory with a clean web interface, syntax
|
|
97
125
|
highlighting, YAML frontmatter support, and wiki-link resolution.
|
|
98
126
|
executables:
|
|
@@ -103,8 +131,13 @@ files:
|
|
|
103
131
|
- bin/Dockerfile.markdownr
|
|
104
132
|
- bin/build-and-push-to-docker
|
|
105
133
|
- bin/markdownr
|
|
134
|
+
- bin/markdownr-servers.yaml
|
|
106
135
|
- lib/markdown_server.rb
|
|
107
136
|
- lib/markdown_server/app.rb
|
|
137
|
+
- lib/markdown_server/csv_browser/addon_registry.rb
|
|
138
|
+
- lib/markdown_server/csv_browser/config_loader.rb
|
|
139
|
+
- lib/markdown_server/csv_browser/row_context.rb
|
|
140
|
+
- lib/markdown_server/csv_browser/table_reader.rb
|
|
108
141
|
- lib/markdown_server/helpers/admin_helpers.rb
|
|
109
142
|
- lib/markdown_server/helpers/fetch_helpers.rb
|
|
110
143
|
- lib/markdown_server/helpers/formatting_helpers.rb
|
|
@@ -117,6 +150,7 @@ files:
|
|
|
117
150
|
- lib/markdown_server/plugins/bible_citations/plugin.rb
|
|
118
151
|
- lib/markdown_server/version.rb
|
|
119
152
|
- views/admin_login.erb
|
|
153
|
+
- views/browser.erb
|
|
120
154
|
- views/directory.erb
|
|
121
155
|
- views/layout.erb
|
|
122
156
|
- views/markdown.erb
|