asciidoctor-html 0.1.2 → 0.1.3
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/.rubocop.yml +3 -3
- data/README.md +28 -11
- data/Rakefile +15 -6
- data/assets/css/fonts/bootstrap-icons.woff +0 -0
- data/assets/css/fonts/bootstrap-icons.woff2 +0 -0
- data/assets/css/styles.css +5 -0
- data/assets/css/styles.css.map +1 -0
- data/exe/adoctohtml +6 -0
- data/lib/asciidoctor/html/bi_inline_macro.rb +25 -0
- data/lib/asciidoctor/html/book.rb +222 -0
- data/lib/asciidoctor/html/cli.rb +112 -0
- data/lib/asciidoctor/html/converter.rb +165 -24
- data/lib/asciidoctor/html/cref_inline_macro.rb +37 -0
- data/lib/asciidoctor/html/figure.rb +10 -10
- data/lib/asciidoctor/html/highlightjs.rb +99 -0
- data/lib/asciidoctor/html/list.rb +38 -0
- data/lib/asciidoctor/html/popovers.rb +49 -0
- data/lib/asciidoctor/html/ref_tree_processor.rb +134 -57
- data/lib/asciidoctor/html/template.rb +127 -0
- data/lib/asciidoctor/html/tree_walker.rb +3 -1
- data/lib/asciidoctor/html/utils.rb +6 -0
- data/lib/asciidoctor/html/webmanifest.rb +23 -0
- data/lib/asciidoctor/html.rb +13 -1
- data/lib/minitest/html_plugin.rb +18 -22
- metadata +52 -27
- data/docs/_config.yml +0 -5
- data/docs/_layouts/default.html +0 -25
- data/docs/_sass/_custom.scss +0 -35
- data/docs/_sass/_example.scss +0 -30
- data/docs/_sass/_figure.scss +0 -17
- data/docs/_sass/_olist.scss +0 -101
- data/docs/_sass/main.scss +0 -40
- data/docs/assets/css/fonts +0 -1
- data/docs/assets/css/styles.scss +0 -3
- data/docs/assets/img/cat1.jpg +0 -0
- data/docs/assets/img/cat2.jpg +0 -0
- data/docs/assets/img/cat3.jpg +0 -0
- data/docs/package-lock.json +0 -59
- data/docs/package.json +0 -6
- data/docs/site.webmanifest +0 -1
- data/lib/asciidoctor/html/olist.rb +0 -18
- data/lib/asciidoctor/html/version.rb +0 -7
- /data/{docs → assets/favicon}/android-chrome-192x192.png +0 -0
- /data/{docs → assets/favicon}/android-chrome-512x512.png +0 -0
- /data/{docs → assets/favicon}/apple-touch-icon.png +0 -0
- /data/{docs → assets/favicon}/favicon-16x16.png +0 -0
- /data/{docs → assets/favicon}/favicon-32x32.png +0 -0
- /data/{docs → assets/favicon}/favicon.ico +0 -0
data/lib/minitest/html_plugin.rb
CHANGED
@@ -7,8 +7,9 @@ require "cgi"
|
|
7
7
|
module Minitest
|
8
8
|
# Custom reporter class that creates an HTML file in the docs folder
|
9
9
|
class HTMLReporter < AbstractReporter
|
10
|
-
DOCS_DIR = "#{__dir__}/../../docs".freeze
|
10
|
+
DOCS_DIR = "#{__dir__}/../../docs/asciidoc".freeze
|
11
11
|
TESTS_DIR = "#{__dir__}/../../test/asciidoctor/html".freeze
|
12
|
+
CONFIG_FILE = "#{DOCS_DIR}/config.yml".freeze
|
12
13
|
|
13
14
|
def initialize
|
14
15
|
@results = {}
|
@@ -19,27 +20,24 @@ module Minitest
|
|
19
20
|
@results[result.name] = result.failures
|
20
21
|
end
|
21
22
|
|
22
|
-
def display_failure(failure
|
23
|
-
%(
|
23
|
+
def display_failure(failure)
|
24
|
+
%([source,shell,role="text-bg-danger"]\n----\n#{failure}\n----\n)
|
24
25
|
end
|
25
26
|
|
26
|
-
def display_result_title(name,
|
27
|
-
|
28
|
-
|
29
|
-
chevron = %(<i class="bi bi-chevron-expand"></i>)
|
30
|
-
attrs = %(type="button" data-bs-toggle="collapse" data-bs-target="##{id}")
|
31
|
-
%(#{status_icon}<button #{attrs} class="btn btn-link">#{chevron} #{name.tr("_", " ").capitalize}</button>\n)
|
27
|
+
def display_result_title(name, failed, color)
|
28
|
+
status_icon = %(pass:[<i class="bi bi-#{failed ? "x" : "check"}-lg text-#{color}"></i>])
|
29
|
+
%(#{status_icon} #{name.tr("_", " ").capitalize})
|
32
30
|
end
|
33
31
|
|
34
|
-
def display_result(name, adoc
|
32
|
+
def display_result(name, adoc)
|
35
33
|
key = "test_#{name}"
|
36
34
|
failed = @results[key]&.size&.positive?
|
37
35
|
color = failed ? "danger" : "success"
|
38
36
|
id = "test-#{name.tr "_", "-"}"
|
39
|
-
title = display_result_title name,
|
40
|
-
pre = %(
|
41
|
-
fail = failed ? display_failure(
|
42
|
-
%(
|
37
|
+
title = display_result_title name, failed, color
|
38
|
+
pre = %([source,asciidoc]\n------\n#{adoc}\n------\n)
|
39
|
+
fail = failed ? display_failure(@results[key].join("\n")) : ""
|
40
|
+
%([##{id}]\n== #{title}\n\n#{pre}#{fail}\n\n#{adoc}\n\n)
|
43
41
|
end
|
44
42
|
|
45
43
|
def report_files(results, dirname)
|
@@ -47,21 +45,19 @@ module Minitest
|
|
47
45
|
next unless filepath.extname == ".adoc"
|
48
46
|
|
49
47
|
results << display_result(filepath.basename.sub_ext("").to_s,
|
50
|
-
File.read(filepath)
|
48
|
+
File.read(filepath))
|
51
49
|
end
|
52
50
|
end
|
53
51
|
|
54
52
|
def report
|
55
|
-
|
56
|
-
time = %(<p class="lead">#{Time.now.strftime("%d/%m/%Y %H:%M")}</p>\n)
|
53
|
+
time = %([.lead]\n#{Time.now.strftime("%d/%m/%Y %H:%M")}\n)
|
57
54
|
results = []
|
58
|
-
Pathname(TESTS_DIR).children.sort.each do |pn|
|
59
|
-
next unless pn.directory?
|
60
|
-
|
55
|
+
Pathname(TESTS_DIR).children.reject { |f| f.file? || f.basename.to_s.start_with?("_") }.sort.each do |pn|
|
61
56
|
report_files results, pn
|
62
57
|
end
|
63
|
-
|
64
|
-
File.write("#{DOCS_DIR}/
|
58
|
+
adoc = %(= Test Results\n\n#{time}\n#{results.join "\n"})
|
59
|
+
File.write("#{DOCS_DIR}/tests.adoc", adoc)
|
60
|
+
Asciidoctor::Html::CLI.run({ "config-file": CONFIG_FILE, watch: false })
|
65
61
|
end
|
66
62
|
end
|
67
63
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ravi Rajani
|
@@ -23,6 +23,34 @@ dependencies:
|
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '2.0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: filewatcher
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.1'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.1'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: psych
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '5.2'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '5.2'
|
26
54
|
- !ruby/object:Gem::Dependency
|
27
55
|
name: roman-numerals
|
28
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +67,8 @@ dependencies:
|
|
39
67
|
version: '0.3'
|
40
68
|
email:
|
41
69
|
- ravi.inajar@gmail.com
|
42
|
-
executables:
|
70
|
+
executables:
|
71
|
+
- adoctohtml
|
43
72
|
extensions: []
|
44
73
|
extra_rdoc_files: []
|
45
74
|
files:
|
@@ -49,35 +78,32 @@ files:
|
|
49
78
|
- LICENSE.txt
|
50
79
|
- README.md
|
51
80
|
- Rakefile
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
- docs/assets/css/styles.scss
|
64
|
-
- docs/assets/img/cat1.jpg
|
65
|
-
- docs/assets/img/cat2.jpg
|
66
|
-
- docs/assets/img/cat3.jpg
|
67
|
-
- docs/favicon-16x16.png
|
68
|
-
- docs/favicon-32x32.png
|
69
|
-
- docs/favicon.ico
|
70
|
-
- docs/package-lock.json
|
71
|
-
- docs/package.json
|
72
|
-
- docs/site.webmanifest
|
81
|
+
- assets/css/fonts/bootstrap-icons.woff
|
82
|
+
- assets/css/fonts/bootstrap-icons.woff2
|
83
|
+
- assets/css/styles.css
|
84
|
+
- assets/css/styles.css.map
|
85
|
+
- assets/favicon/android-chrome-192x192.png
|
86
|
+
- assets/favicon/android-chrome-512x512.png
|
87
|
+
- assets/favicon/apple-touch-icon.png
|
88
|
+
- assets/favicon/favicon-16x16.png
|
89
|
+
- assets/favicon/favicon-32x32.png
|
90
|
+
- assets/favicon/favicon.ico
|
91
|
+
- exe/adoctohtml
|
73
92
|
- lib/asciidoctor/html.rb
|
93
|
+
- lib/asciidoctor/html/bi_inline_macro.rb
|
94
|
+
- lib/asciidoctor/html/book.rb
|
95
|
+
- lib/asciidoctor/html/cli.rb
|
74
96
|
- lib/asciidoctor/html/converter.rb
|
97
|
+
- lib/asciidoctor/html/cref_inline_macro.rb
|
75
98
|
- lib/asciidoctor/html/figure.rb
|
76
|
-
- lib/asciidoctor/html/
|
99
|
+
- lib/asciidoctor/html/highlightjs.rb
|
100
|
+
- lib/asciidoctor/html/list.rb
|
101
|
+
- lib/asciidoctor/html/popovers.rb
|
77
102
|
- lib/asciidoctor/html/ref_tree_processor.rb
|
103
|
+
- lib/asciidoctor/html/template.rb
|
78
104
|
- lib/asciidoctor/html/tree_walker.rb
|
79
105
|
- lib/asciidoctor/html/utils.rb
|
80
|
-
- lib/asciidoctor/html/
|
106
|
+
- lib/asciidoctor/html/webmanifest.rb
|
81
107
|
- lib/minitest/html_plugin.rb
|
82
108
|
homepage: https://github.com/ravirajani/asciidoctor-html
|
83
109
|
licenses:
|
@@ -103,6 +129,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
129
|
requirements: []
|
104
130
|
rubygems_version: 3.6.9
|
105
131
|
specification_version: 4
|
106
|
-
summary: An
|
107
|
-
generate a book.
|
132
|
+
summary: An AsciiDoc-to-HTML static site generator based on Asciidoctor.
|
108
133
|
test_files: []
|
data/docs/_config.yml
DELETED
data/docs/_layouts/default.html
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
<title>{{ page.title }} | {{ site.title }}</title>
|
7
|
-
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
|
8
|
-
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
9
|
-
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
10
|
-
<link rel="manifest" href="site.webmanifest">
|
11
|
-
<link rel="stylesheet" href="assets/css/styles.css">
|
12
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.11.1/build/styles/default.min.css">
|
13
|
-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.11.1/build/highlight.min.js"></script>
|
14
|
-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
15
|
-
</head>
|
16
|
-
<body>
|
17
|
-
<main class="content-container">
|
18
|
-
<h1 class="display-4">{{ page.title }}</h1>
|
19
|
-
{{ content }}
|
20
|
-
</main>
|
21
|
-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.bundle.min.js" integrity="sha384-j1CDi7MgGQ12Z7Qab0qlWQ/Qqz24Gc6BM0thvEMVjHnfYGF0rmFCozFSxQBxwHKO" crossorigin="anonymous"></script>
|
22
|
-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.11.1/build/languages/asciidoc.min.js"></script>
|
23
|
-
<script>hljs.highlightAll();</script>
|
24
|
-
</body>
|
25
|
-
</html>
|
data/docs/_sass/_custom.scss
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
$content-padding-x: 0.75rem;
|
2
|
-
$content-padding-y: 0.5rem;
|
3
|
-
$content-width: 90rch;
|
4
|
-
|
5
|
-
main {
|
6
|
-
margin: $spacer auto;
|
7
|
-
}
|
8
|
-
|
9
|
-
.full-width-bg {
|
10
|
-
padding-left: $content-padding-x;
|
11
|
-
padding-right: $content-padding-x;
|
12
|
-
margin-left: -$content-padding-x;
|
13
|
-
margin-right: -$content-padding-x;
|
14
|
-
}
|
15
|
-
|
16
|
-
.content-container {
|
17
|
-
max-width: $content-width;
|
18
|
-
padding-left: $content-padding-x;
|
19
|
-
padding-right: $content-padding-x;
|
20
|
-
}
|
21
|
-
|
22
|
-
.title-mark {
|
23
|
-
margin-right: 1.5ex;
|
24
|
-
}
|
25
|
-
|
26
|
-
.title-prefix {
|
27
|
-
margin-right: 1ex;
|
28
|
-
&::after {
|
29
|
-
content: ':';
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
.block-title {
|
34
|
-
margin-bottom: 0.25rem;
|
35
|
-
}
|
data/docs/_sass/_example.scss
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
.example {
|
2
|
-
@extend .full-width-bg;
|
3
|
-
padding-top: $content-padding-y;
|
4
|
-
padding-bottom: $content-padding-y;
|
5
|
-
margin-bottom: $spacer;
|
6
|
-
border-top: 2px solid var(--example-border-color, var(--bs-secondary-border-subtle));
|
7
|
-
border-bottom: 2px solid var(--example-border-color, var(--bs-secondary-border-subtle));
|
8
|
-
background-color: var(--example-bg-color, var(--bs-secondary-bg-subtle));
|
9
|
-
> *:last-child {
|
10
|
-
margin-bottom: 0;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
$thm-types: theorem, proposition, lemma, corollary;
|
15
|
-
|
16
|
-
@each $type in $thm-types {
|
17
|
-
.example-#{$type} {
|
18
|
-
--example-border-color: var(--bs-primary-border-subtle);
|
19
|
-
--example-bg-color: var(--bs-primary-bg-subtle);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
.example-algorithm {
|
24
|
-
--example-border-color: #{tint-color($orange, 60%)};
|
25
|
-
--example-bg-color: #{tint-color($orange, 80%)};
|
26
|
-
@include color-mode(dark) {
|
27
|
-
--example-border-color: #{shade-color($orange, 40%)};
|
28
|
-
--example-bg-color: #{shade-color($orange, 80%)};
|
29
|
-
}
|
30
|
-
}
|
data/docs/_sass/_figure.scss
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
.figbox {
|
2
|
-
margin: 1.5rem -#{$content-padding-x};
|
3
|
-
}
|
4
|
-
figure {
|
5
|
-
text-align: center;
|
6
|
-
img {
|
7
|
-
@extend .figure-img;
|
8
|
-
@extend .img-fluid;
|
9
|
-
max-height: 400px;
|
10
|
-
}
|
11
|
-
figcaption {
|
12
|
-
padding-left: $content-padding-x;
|
13
|
-
padding-right: $content-padding-x;
|
14
|
-
text-align: center;
|
15
|
-
@extend .figure-caption;
|
16
|
-
}
|
17
|
-
}
|
data/docs/_sass/_olist.scss
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
.arabic, .lowerroman {
|
2
|
-
> li .li-mark::after {
|
3
|
-
content: '.';
|
4
|
-
}
|
5
|
-
}
|
6
|
-
.loweralpha, .upperalpha {
|
7
|
-
> li .li-mark {
|
8
|
-
&::before { content: '('; }
|
9
|
-
&::after { content: ')'; }
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
.list-wrapper {
|
14
|
-
margin-bottom: $spacer;
|
15
|
-
ol, ul {
|
16
|
-
margin-bottom: 0;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
.olist {
|
21
|
-
@extend .list-unstyled;
|
22
|
-
li {
|
23
|
-
display: flex;
|
24
|
-
flex-flow: row nowrap;
|
25
|
-
gap: 0.5rem;
|
26
|
-
align-items: first baseline;
|
27
|
-
.li-mark {
|
28
|
-
flex: 0 0 1.5rem;
|
29
|
-
text-align: right;
|
30
|
-
}
|
31
|
-
.li-content {
|
32
|
-
flex: 1;
|
33
|
-
p { margin-bottom: 0.25rem; }
|
34
|
-
}
|
35
|
-
}
|
36
|
-
&.pseudocode {
|
37
|
-
@mixin pcode-style($initial-gap, $indent) {
|
38
|
-
$mark-width: 1.25rem;
|
39
|
-
> li {
|
40
|
-
gap: $initial-gap;
|
41
|
-
> .li-mark {
|
42
|
-
flex: 0 0 $mark-width;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
@for $i from 1 through 3 {
|
46
|
-
&.level-#{$i + 1} {
|
47
|
-
margin-left: -($i - 1)*$indent - $initial-gap - $mark-width;
|
48
|
-
> li {
|
49
|
-
gap: $i*$indent + $initial-gap;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
@include pcode-style($initial-gap: 0.75rem, $indent: 1.5rem);
|
56
|
-
|
57
|
-
@include media-breakpoint-up(sm) {
|
58
|
-
@include pcode-style($initial-gap: 0.75rem, $indent: 1.75rem);
|
59
|
-
}
|
60
|
-
|
61
|
-
@include media-breakpoint-up(md) {
|
62
|
-
@include pcode-style($initial-gap: 1rem, $indent: 2rem);
|
63
|
-
}
|
64
|
-
|
65
|
-
.li-mark {
|
66
|
-
font-size: 90%;
|
67
|
-
color: var(--bs-tertiary-color);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
.figlist-wrapper {
|
73
|
-
@extend .figbox;
|
74
|
-
.figlist {
|
75
|
-
margin-bottom: 0;
|
76
|
-
@extend .list-unstyled;
|
77
|
-
display: flex;
|
78
|
-
flex-flow: row wrap;
|
79
|
-
gap: 0.75rem;
|
80
|
-
justify-content: space-evenly;
|
81
|
-
align-items: last baseline;
|
82
|
-
li {
|
83
|
-
flex: 1;
|
84
|
-
.li-mark {
|
85
|
-
margin-right: 1ex;
|
86
|
-
}
|
87
|
-
figure {
|
88
|
-
margin-bottom: 0.25rem;
|
89
|
-
img {
|
90
|
-
min-width: 300px;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
.block-title {
|
96
|
-
padding-left: $content-padding-x;
|
97
|
-
padding-right: $content-padding-x;
|
98
|
-
text-align: center;
|
99
|
-
@extend .figure-caption;
|
100
|
-
}
|
101
|
-
}
|
data/docs/_sass/main.scss
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
// main.scss
|
2
|
-
|
3
|
-
// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
|
4
|
-
@import "../node_modules/bootstrap/scss/functions";
|
5
|
-
|
6
|
-
// 2. Include any default variable overrides here
|
7
|
-
$color-mode-type: media-query;
|
8
|
-
|
9
|
-
// 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets)
|
10
|
-
@import "../node_modules/bootstrap/scss/variables";
|
11
|
-
@import "../node_modules/bootstrap/scss/variables-dark";
|
12
|
-
|
13
|
-
// 4. Include any default map overrides here
|
14
|
-
|
15
|
-
// 5. Include remainder of required parts
|
16
|
-
@import "../node_modules/bootstrap/scss/maps";
|
17
|
-
@import "../node_modules/bootstrap/scss/mixins";
|
18
|
-
@import "../node_modules/bootstrap/scss/root";
|
19
|
-
|
20
|
-
// 6. Include any other optional stylesheet partials as desired; list below is not inclusive of all available stylesheets
|
21
|
-
@import "../node_modules/bootstrap/scss/utilities";
|
22
|
-
@import "../node_modules/bootstrap/scss/reboot";
|
23
|
-
@import "../node_modules/bootstrap/scss/type";
|
24
|
-
@import "../node_modules/bootstrap/scss/images";
|
25
|
-
@import "../node_modules/bootstrap/scss/containers";
|
26
|
-
@import "../node_modules/bootstrap/scss/grid";
|
27
|
-
@import "../node_modules/bootstrap/scss/helpers";
|
28
|
-
@import "../node_modules/bootstrap/scss/buttons";
|
29
|
-
@import "../node_modules/bootstrap/scss/transitions";
|
30
|
-
// ...
|
31
|
-
|
32
|
-
// 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
|
33
|
-
@import "../node_modules/bootstrap/scss/utilities/api";
|
34
|
-
|
35
|
-
// 8. Add additional custom code here
|
36
|
-
@import "../node_modules/bootstrap-icons/font/bootstrap-icons";
|
37
|
-
@import "custom";
|
38
|
-
@import "example";
|
39
|
-
@import "olist";
|
40
|
-
@import "figure";
|
data/docs/assets/css/fonts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../../node_modules/bootstrap-icons/font/fonts
|
data/docs/assets/css/styles.scss
DELETED
data/docs/assets/img/cat1.jpg
DELETED
Binary file
|
data/docs/assets/img/cat2.jpg
DELETED
Binary file
|
data/docs/assets/img/cat3.jpg
DELETED
Binary file
|
data/docs/package-lock.json
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "docs",
|
3
|
-
"lockfileVersion": 3,
|
4
|
-
"requires": true,
|
5
|
-
"packages": {
|
6
|
-
"": {
|
7
|
-
"dependencies": {
|
8
|
-
"bootstrap": "^5.3.6",
|
9
|
-
"bootstrap-icons": "^1.13.1"
|
10
|
-
}
|
11
|
-
},
|
12
|
-
"node_modules/@popperjs/core": {
|
13
|
-
"version": "2.11.8",
|
14
|
-
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
|
15
|
-
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
|
16
|
-
"license": "MIT",
|
17
|
-
"peer": true,
|
18
|
-
"funding": {
|
19
|
-
"type": "opencollective",
|
20
|
-
"url": "https://opencollective.com/popperjs"
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"node_modules/bootstrap": {
|
24
|
-
"version": "5.3.6",
|
25
|
-
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.6.tgz",
|
26
|
-
"integrity": "sha512-jX0GAcRzvdwISuvArXn3m7KZscWWFAf1MKBcnzaN02qWMb3jpMoUX4/qgeiGzqyIb4ojulRzs89UCUmGcFSzTA==",
|
27
|
-
"funding": [
|
28
|
-
{
|
29
|
-
"type": "github",
|
30
|
-
"url": "https://github.com/sponsors/twbs"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"type": "opencollective",
|
34
|
-
"url": "https://opencollective.com/bootstrap"
|
35
|
-
}
|
36
|
-
],
|
37
|
-
"license": "MIT",
|
38
|
-
"peerDependencies": {
|
39
|
-
"@popperjs/core": "^2.11.8"
|
40
|
-
}
|
41
|
-
},
|
42
|
-
"node_modules/bootstrap-icons": {
|
43
|
-
"version": "1.13.1",
|
44
|
-
"resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.13.1.tgz",
|
45
|
-
"integrity": "sha512-ijombt4v6bv5CLeXvRWKy7CuM3TRTuPEuGaGKvTV5cz65rQSY8RQ2JcHt6b90cBBAC7s8fsf2EkQDldzCoXUjw==",
|
46
|
-
"funding": [
|
47
|
-
{
|
48
|
-
"type": "github",
|
49
|
-
"url": "https://github.com/sponsors/twbs"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"type": "opencollective",
|
53
|
-
"url": "https://opencollective.com/bootstrap"
|
54
|
-
}
|
55
|
-
],
|
56
|
-
"license": "MIT"
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
data/docs/package.json
DELETED
data/docs/site.webmanifest
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Asciidoctor
|
4
|
-
module Html
|
5
|
-
# Helper functions for the olist conversion.
|
6
|
-
module Olist
|
7
|
-
def self.display_list_item(item)
|
8
|
-
result = []
|
9
|
-
result << %(<li#{Utils.id_class_attr_str item.id,
|
10
|
-
item.role}><div class="li-mark">#{item.attr "mark"}</div>)
|
11
|
-
result << %(<div class="li-content"><p>#{item.text}</p>)
|
12
|
-
result << "\n#{item.content}" if item.blocks?
|
13
|
-
result << %(</div></li>#{Utils.id_class_sel_comment item.id, item.role})
|
14
|
-
result.join "\n"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|