paperwork 0.3.5 → 0.5.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.
@@ -1,7 +1,16 @@
1
1
  @import "../../node_modules/bootstrap/dist/css/bootstrap";
2
+ @import "./bootstrap-icons.css";
2
3
 
3
- .sub-title {
4
- font-size: 2.2rem;
4
+ .page-title {
5
+ font-size: 3rem;
6
+ }
7
+
8
+ .page-sub-title {
9
+ font-size: 2rem;
10
+ }
11
+
12
+ .page-category {
13
+ font-size: 1.5rem;
5
14
  }
6
15
 
7
16
  $header-siblings-margin: 1rem;
@@ -28,4 +37,39 @@ pre.highlight {
28
37
  padding: 0.3rem;
29
38
  margin-top: 1rem;
30
39
  margin-bottom: 1rem;
31
- }
40
+ }
41
+
42
+ .toc {
43
+ padding-top: 1rem;
44
+ white-space: nowrap;
45
+
46
+ &.sidebar {
47
+ position: sticky;
48
+ top: 4rem;
49
+ margin-right: 5rem;
50
+ width: 12rem;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ }
54
+
55
+ .title {
56
+ font-weight: bold;
57
+ }
58
+
59
+ @for $i from 1 through 6 {
60
+ .toc-h#{$i} {
61
+ font-size: 0.8rem;
62
+ padding-left: #{($i - 1) * 0.5}rem;
63
+ }
64
+ }
65
+ }
66
+
67
+
68
+ .d-flex {
69
+ @for $i from 1 through 5 {
70
+ .v-spacer-#{$i} {
71
+ margin-left: #{$i * 2}rem;
72
+ }
73
+ }
74
+ }
75
+
@@ -2,6 +2,7 @@ const path = require('path');
2
2
 
3
3
  module.exports = {
4
4
  entry: './source/javascripts/site.js',
5
+ devtool: 'source-map',
5
6
 
6
7
  resolve: {
7
8
  modules: [
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paperwork
4
- VERSION = "0.3.5"
4
+ VERSION = "0.5.0"
5
5
  end
data/paperwork.yml CHANGED
@@ -8,6 +8,7 @@ navbar:
8
8
 
9
9
  config:
10
10
  name: doc
11
+ toc: true
11
12
  sources:
12
13
  - README.md
13
14
  - nested_example/navdemo.md
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -174,13 +174,20 @@ files:
174
174
  - lib/paperwork/tasks/middleman_template/lib/doc_renderer.rb
175
175
  - lib/paperwork/tasks/middleman_template/lib/info_helpers.rb
176
176
  - lib/paperwork/tasks/middleman_template/package.json
177
+ - lib/paperwork/tasks/middleman_template/source/fonts/bootstrap-icons.woff
178
+ - lib/paperwork/tasks/middleman_template/source/fonts/bootstrap-icons.woff2
177
179
  - lib/paperwork/tasks/middleman_template/source/images/.keep
178
180
  - lib/paperwork/tasks/middleman_template/source/javascripts/site.js
181
+ - lib/paperwork/tasks/middleman_template/source/javascripts/toc.js
182
+ - lib/paperwork/tasks/middleman_template/source/layouts/_content.erb
183
+ - lib/paperwork/tasks/middleman_template/source/layouts/_content_with_toc.erb
179
184
  - lib/paperwork/tasks/middleman_template/source/layouts/_document.erb
180
185
  - lib/paperwork/tasks/middleman_template/source/layouts/_header.erb
181
186
  - lib/paperwork/tasks/middleman_template/source/layouts/_info.erb
182
187
  - lib/paperwork/tasks/middleman_template/source/layouts/_navbar.erb
188
+ - lib/paperwork/tasks/middleman_template/source/layouts/_toc.erb
183
189
  - lib/paperwork/tasks/middleman_template/source/layouts/layout.erb
190
+ - lib/paperwork/tasks/middleman_template/source/stylesheets/bootstrap-icons.css
184
191
  - lib/paperwork/tasks/middleman_template/source/stylesheets/rogue.css.erb
185
192
  - lib/paperwork/tasks/middleman_template/source/stylesheets/site.css.scss
186
193
  - lib/paperwork/tasks/middleman_template/webpack.config.js
@@ -213,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
220
  - !ruby/object:Gem::Version
214
221
  version: '0'
215
222
  requirements: []
216
- rubygems_version: 3.0.6
223
+ rubygems_version: 3.3.18
217
224
  signing_key:
218
225
  specification_version: 4
219
226
  summary: Convert markdown documents to html pages