serbea 1.0.0 → 2.0.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/.github/workflows/ci.yml +30 -0
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +11 -0
- data/lib/rouge/lexers/serbea.rb +1 -0
- data/lib/serbea/helpers.rb +1 -1
- data/lib/serbea/pipeline.rb +34 -4
- data/lib/serbea/template_engine.rb +1 -1
- data/lib/serbea.rb +6 -0
- data/lib/version.rb +1 -1
- data/serbea.gemspec +1 -2
- metadata +5 -42
- data/docs/.gitignore +0 -37
- data/docs/Gemfile +0 -5
- data/docs/bridgetown.config.yml +0 -6
- data/docs/frontend/javascript/index.js +0 -3
- data/docs/frontend/styles/index.scss +0 -169
- data/docs/package.json +0 -34
- data/docs/plugins/builders/.keep +0 -0
- data/docs/plugins/site_builder.rb +0 -3
- data/docs/src/404.html +0 -9
- data/docs/src/_components/footer.liquid +0 -3
- data/docs/src/_components/head.liquid +0 -9
- data/docs/src/_components/navbar.liquid +0 -5
- data/docs/src/_data/site_metadata.yml +0 -11
- data/docs/src/_layouts/default.liquid +0 -13
- data/docs/src/_layouts/home.liquid +0 -13
- data/docs/src/_layouts/page.liquid +0 -7
- data/docs/src/_layouts/post.liquid +0 -7
- data/docs/src/favicon.ico +0 -0
- data/docs/src/images/.keep +0 -1
- data/docs/src/images/serbea-logomark.svg +0 -46
- data/docs/src/images/serbea-logotype.svg +0 -31
- data/docs/src/index.md +0 -276
- data/docs/start.js +0 -17
- data/docs/sync.js +0 -35
- data/docs/webpack.config.js +0 -78
- data/docs/yarn.lock +0 -6022
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1afdeb44daa8b1b9cd20c73ec82ebd02defc8d7322247cdc65870279b380450
|
4
|
+
data.tar.gz: 9e7371768fd0cab610e26c9b15020d6320d3d8f78a9f805e56c08d3dcec26ddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352d91c0845ee77c0fc4cbea9953f3d9f63fcc230ad2f6f9fc52cbba64bd6da409482a6e2c5e032c39f853acd1c0f62042869a13f9a34a88c74387825b433fc1
|
7
|
+
data.tar.gz: fde8baf367844161f6f6afcd10c29450673d56871e67949cb831f0d7c86b2a163b644a80e171ffa4d0a104ef549cfa7201dacf7ea6d6522305bfc6aa82ca8ffc
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: ci
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- "*"
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- main
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
build:
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby_version: [2.7.2, 3.0.0]
|
17
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
18
|
+
# Has to be top level to cache properly
|
19
|
+
env:
|
20
|
+
BUNDLE_JOBS: 4
|
21
|
+
BUNDLE_PATH: "vendor/bundle"
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@master
|
24
|
+
- name: Setup Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby_version }}
|
28
|
+
bundler-cache: true
|
29
|
+
- name: Test with Rake
|
30
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.2
|
data/CHANGELOG.md
ADDED
data/lib/rouge/lexers/serbea.rb
CHANGED
data/lib/serbea/helpers.rb
CHANGED
@@ -30,7 +30,7 @@ module Serbea
|
|
30
30
|
def import(*args, **kwargs, &block)
|
31
31
|
helper_names = %i(partial render)
|
32
32
|
available_helper = helper_names.find { |meth| respond_to?(meth) }
|
33
|
-
raise "Serbea Error: no `render' or `partial' helper available in #{self.class}" unless available_helper
|
33
|
+
raise Serbea::Error, "Serbea Error: no `render' or `partial' helper available in #{self.class}" unless available_helper
|
34
34
|
available_helper == :partial ? partial(*args, **kwargs, &block) : render(*args, **kwargs, &block)
|
35
35
|
nil
|
36
36
|
end
|
data/lib/serbea/pipeline.rb
CHANGED
@@ -4,6 +4,17 @@ require "active_support/core_ext/object/blank"
|
|
4
4
|
|
5
5
|
module Serbea
|
6
6
|
class Pipeline
|
7
|
+
# If you include this in any regular Ruby template environment (say ERB),
|
8
|
+
# you can then use Serbea-style pipeline code within the block, e.g.
|
9
|
+
#
|
10
|
+
# `pipe "Hello world" do upcase | split(" ") | join(", ") end`
|
11
|
+
# => `HELLO, WORLD`
|
12
|
+
module Helper
|
13
|
+
def pipe(input = nil, &blk)
|
14
|
+
Pipeline.new(binding, input).tap { _1.instance_exec(&blk) }.value
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
7
18
|
# Exec the pipes!
|
8
19
|
# @param template [String]
|
9
20
|
# @param locals [Hash]
|
@@ -85,13 +96,13 @@ module Serbea
|
|
85
96
|
if var.respond_to?(:call)
|
86
97
|
@value = var.call(@value, *args, **kwargs)
|
87
98
|
else
|
88
|
-
"Serbea warning: Filter #{name} does not respond to call".tap do |warning|
|
89
|
-
self.class.raise_on_missing_filters ? raise(warning) : STDERR.puts(warning)
|
99
|
+
"Serbea warning: Filter '#{name}' does not respond to call".tap do |warning|
|
100
|
+
self.class.raise_on_missing_filters ? raise(Serbea::FilterMissing, warning) : STDERR.puts(warning)
|
90
101
|
end
|
91
102
|
end
|
92
103
|
else
|
93
|
-
"Serbea warning: Filter not found
|
94
|
-
self.class.raise_on_missing_filters ? raise(warning) : STDERR.puts(warning)
|
104
|
+
"Serbea warning: Filter `#{name}' not found".tap do |warning|
|
105
|
+
self.class.raise_on_missing_filters ? raise(Serbea::FilterMissing, warning) : STDERR.puts(warning)
|
95
106
|
end
|
96
107
|
end
|
97
108
|
|
@@ -101,5 +112,24 @@ module Serbea
|
|
101
112
|
def to_s
|
102
113
|
self.class.output_processor.call(@value.is_a?(String) ? @value : @value.to_s)
|
103
114
|
end
|
115
|
+
|
116
|
+
def |(*)
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
def method_missing(...)
|
121
|
+
filter(...)
|
122
|
+
end
|
123
|
+
|
124
|
+
def value(callback = nil)
|
125
|
+
return @value unless callback
|
126
|
+
|
127
|
+
@value = if callback.is_a?(Proc)
|
128
|
+
callback.(@value)
|
129
|
+
else
|
130
|
+
callback
|
131
|
+
end
|
132
|
+
self
|
133
|
+
end
|
104
134
|
end
|
105
135
|
end
|
@@ -188,7 +188,7 @@ module Serbea
|
|
188
188
|
buff << "{% %}\n" # preserve original directive line length
|
189
189
|
end
|
190
190
|
else
|
191
|
-
raise "Handler for Serbea template directive `#{$1}' not found"
|
191
|
+
raise Serbea::Error, "Handler for Serbea template directive `#{$1}' not found"
|
192
192
|
end
|
193
193
|
else
|
194
194
|
buff << "{% end %}"
|
data/lib/serbea.rb
CHANGED
data/lib/version.rb
CHANGED
data/serbea.gemspec
CHANGED
@@ -13,12 +13,11 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.required_ruby_version = ">= 2.7"
|
15
15
|
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features)/!) }
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features|docs|serbea-rails)/!) }
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
19
|
spec.add_runtime_dependency("activesupport", ">= 6.0")
|
20
20
|
spec.add_runtime_dependency("erubi", ">= 1.10")
|
21
|
-
spec.add_runtime_dependency("hash_with_dot_access", "~> 1.1")
|
22
21
|
spec.add_runtime_dependency("tilt", "~> 2.0")
|
23
22
|
|
24
23
|
spec.add_development_dependency("rake", "~> 13.0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serbea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.10'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: hash_with_dot_access
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.1'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.1'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: tilt
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,37 +72,14 @@ executables: []
|
|
86
72
|
extensions: []
|
87
73
|
extra_rdoc_files: []
|
88
74
|
files:
|
75
|
+
- ".github/workflows/ci.yml"
|
89
76
|
- ".gitignore"
|
77
|
+
- ".ruby-version"
|
78
|
+
- CHANGELOG.md
|
90
79
|
- Gemfile
|
91
80
|
- LICENSE.txt
|
92
81
|
- README.md
|
93
82
|
- Rakefile
|
94
|
-
- docs/.gitignore
|
95
|
-
- docs/Gemfile
|
96
|
-
- docs/bridgetown.config.yml
|
97
|
-
- docs/frontend/javascript/index.js
|
98
|
-
- docs/frontend/styles/index.scss
|
99
|
-
- docs/package.json
|
100
|
-
- docs/plugins/builders/.keep
|
101
|
-
- docs/plugins/site_builder.rb
|
102
|
-
- docs/src/404.html
|
103
|
-
- docs/src/_components/footer.liquid
|
104
|
-
- docs/src/_components/head.liquid
|
105
|
-
- docs/src/_components/navbar.liquid
|
106
|
-
- docs/src/_data/site_metadata.yml
|
107
|
-
- docs/src/_layouts/default.liquid
|
108
|
-
- docs/src/_layouts/home.liquid
|
109
|
-
- docs/src/_layouts/page.liquid
|
110
|
-
- docs/src/_layouts/post.liquid
|
111
|
-
- docs/src/favicon.ico
|
112
|
-
- docs/src/images/.keep
|
113
|
-
- docs/src/images/serbea-logomark.svg
|
114
|
-
- docs/src/images/serbea-logotype.svg
|
115
|
-
- docs/src/index.md
|
116
|
-
- docs/start.js
|
117
|
-
- docs/sync.js
|
118
|
-
- docs/webpack.config.js
|
119
|
-
- docs/yarn.lock
|
120
83
|
- lib/rouge/lexers/serbea.rb
|
121
84
|
- lib/serbea.rb
|
122
85
|
- lib/serbea/helpers.rb
|
data/docs/.gitignore
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Bridgetown
|
2
|
-
output
|
3
|
-
.bridgetown-cache
|
4
|
-
.bridgetown-metadata
|
5
|
-
.bridgetown-webpack
|
6
|
-
|
7
|
-
# Dependency folders
|
8
|
-
node_modules
|
9
|
-
bower_components
|
10
|
-
vendor
|
11
|
-
|
12
|
-
# Caches
|
13
|
-
.sass-cache
|
14
|
-
.npm
|
15
|
-
.node_repl_history
|
16
|
-
|
17
|
-
# Ignore bundler config.
|
18
|
-
/.bundle
|
19
|
-
|
20
|
-
# Ignore Byebug command history file.
|
21
|
-
.byebug_history
|
22
|
-
|
23
|
-
# dotenv environment variables file
|
24
|
-
.env
|
25
|
-
|
26
|
-
# Mac files
|
27
|
-
.DS_Store
|
28
|
-
|
29
|
-
# Yarn
|
30
|
-
yarn-error.log
|
31
|
-
yarn-debug.log*
|
32
|
-
.pnp/
|
33
|
-
.pnp.js
|
34
|
-
# Yarn Integrity file
|
35
|
-
.yarn-integrity
|
36
|
-
|
37
|
-
.ruby-version
|
data/docs/Gemfile
DELETED
data/docs/bridgetown.config.yml
DELETED
@@ -1,169 +0,0 @@
|
|
1
|
-
$body-background: #f2f2f2;
|
2
|
-
$body-color: #5a5a5a;
|
3
|
-
$heading-color: #222222;
|
4
|
-
|
5
|
-
html {
|
6
|
-
box-sizing: border-box;
|
7
|
-
}
|
8
|
-
*, *:before, *:after {
|
9
|
-
box-sizing: inherit;
|
10
|
-
}
|
11
|
-
|
12
|
-
body {
|
13
|
-
background: $body-background;
|
14
|
-
color: $body-color;
|
15
|
-
font-family: BlinkMacSystemFont,-apple-system,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif;
|
16
|
-
margin: 0 8px;
|
17
|
-
font-size: 19px;
|
18
|
-
line-height: 1.5;
|
19
|
-
}
|
20
|
-
|
21
|
-
a {
|
22
|
-
color: #204a87;
|
23
|
-
text-decoration: underline;
|
24
|
-
text-decoration-color: #90add3;
|
25
|
-
}
|
26
|
-
|
27
|
-
h1 {
|
28
|
-
font-weight: 900;
|
29
|
-
font-size: 2.5rem;
|
30
|
-
color: $heading-color;
|
31
|
-
text-align: center;
|
32
|
-
}
|
33
|
-
|
34
|
-
footer {
|
35
|
-
text-align: center;
|
36
|
-
margin-bottom: 4rem;
|
37
|
-
font-size: 1em;
|
38
|
-
}
|
39
|
-
|
40
|
-
main {
|
41
|
-
margin: 2rem auto 4rem;
|
42
|
-
max-width: 68rem;
|
43
|
-
padding: 25px 35px 50px;
|
44
|
-
background: white;
|
45
|
-
box-shadow: 2px 3px 3px #ddd;
|
46
|
-
border-radius: 3px;
|
47
|
-
|
48
|
-
@media (max-width: 500px) {
|
49
|
-
padding: 16px 16px 50px;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
h2 {
|
54
|
-
font-weight: 700;
|
55
|
-
color: $heading-color;
|
56
|
-
text-align: center;
|
57
|
-
}
|
58
|
-
|
59
|
-
h3 {
|
60
|
-
margin-top: 3rem;
|
61
|
-
margin-bottom: 2rem;
|
62
|
-
font-weight: 700;
|
63
|
-
color: $heading-color;
|
64
|
-
font-size: 1.75rem;
|
65
|
-
text-align: center;
|
66
|
-
}
|
67
|
-
|
68
|
-
p, ul li, ol li {
|
69
|
-
margin-top: 0;
|
70
|
-
margin-bottom: 1.5rem;
|
71
|
-
}
|
72
|
-
|
73
|
-
div.highlighter-rouge {
|
74
|
-
margin: 1.5rem 0;
|
75
|
-
width: 100%;
|
76
|
-
overflow: auto;
|
77
|
-
}
|
78
|
-
|
79
|
-
$grey: #888;
|
80
|
-
$base-code-text-color: #222;
|
81
|
-
|
82
|
-
code {
|
83
|
-
font-size: 1.1rem;
|
84
|
-
font-family: ui-monospace, monospace;
|
85
|
-
color: #8f5902;
|
86
|
-
}
|
87
|
-
|
88
|
-
pre code {
|
89
|
-
color: $base-code-text-color;
|
90
|
-
}
|
91
|
-
|
92
|
-
.highlight .hll { background-color: #ffffcc }
|
93
|
-
.highlight .c { color: $grey } /* Comment */
|
94
|
-
.highlight .err { color: #a40000 } /* Error */
|
95
|
-
.highlight .g { color: $base-code-text-color } /* Generic */
|
96
|
-
.highlight .k { color: #204a87; font-weight: 500 } /* Keyword */
|
97
|
-
.highlight .l { color: $base-code-text-color } /* Literal */
|
98
|
-
.highlight .n { color: $base-code-text-color } /* Name */
|
99
|
-
.highlight .o { color: #ce5c00; font-weight: 500 } /* Operator */
|
100
|
-
.highlight .x { color: $base-code-text-color } /* Other */
|
101
|
-
.highlight .p { color: $base-code-text-color; font-weight: 500 } /* Punctuation */
|
102
|
-
.highlight .cm { color: #8f5902 } /* Comment.Multiline */
|
103
|
-
.highlight .cp { color: #8f5902 } /* Comment.Preproc */
|
104
|
-
.highlight .c1 { color: #8f5902 } /* Comment.Single */
|
105
|
-
.highlight .cs { color: #8f5902 } /* Comment.Special */
|
106
|
-
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
107
|
-
.highlight .ge { color: $base-code-text-color } /* Generic.Emph */
|
108
|
-
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
109
|
-
.highlight .gh { color: #000080; font-weight: 500 } /* Generic.Heading */
|
110
|
-
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
111
|
-
.highlight .go { color: $base-code-text-color } /* Generic.Output */
|
112
|
-
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
|
113
|
-
.highlight .gs { color: $base-code-text-color; font-weight: 500 } /* Generic.Strong */
|
114
|
-
.highlight .gu { color: #800080; font-weight: 500 } /* Generic.Subheading */
|
115
|
-
.highlight .gt { color: #a40000; font-weight: 500 } /* Generic.Traceback */
|
116
|
-
.highlight .kc { color: #204a87; font-weight: 500 } /* Keyword.Constant */
|
117
|
-
.highlight .kd { color: #204a87; font-weight: 500 } /* Keyword.Declaration */
|
118
|
-
.highlight .kn { color: #204a87; font-weight: 500 } /* Keyword.Namespace */
|
119
|
-
.highlight .kp { color: #204a87; font-weight: 500 } /* Keyword.Pseudo */
|
120
|
-
.highlight .kr { color: #204a87; font-weight: 500 } /* Keyword.Reserved */
|
121
|
-
.highlight .kt { color: #204a87; font-weight: 500 } /* Keyword.Type */
|
122
|
-
.highlight .ld { color: $base-code-text-color } /* Literal.Date */
|
123
|
-
.highlight .m { color: #0000cf; font-weight: 500 } /* Literal.Number */
|
124
|
-
.highlight .s { color: #4e9a06 } /* Literal.String */
|
125
|
-
.highlight .na { color: #8d8400 } /* Name.Attribute */
|
126
|
-
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
127
|
-
.highlight .nc { color: $base-code-text-color } /* Name.Class */
|
128
|
-
.highlight .no { color: $base-code-text-color } /* Name.Constant */
|
129
|
-
.highlight .nd { color: #5c35cc; font-weight: 500 } /* Name.Decorator */
|
130
|
-
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
131
|
-
.highlight .ne { color: #cc0000; font-weight: 500 } /* Name.Exception */
|
132
|
-
.highlight .nf { color: $base-code-text-color } /* Name.Function */
|
133
|
-
.highlight .nl { color: #f57900 } /* Name.Label */
|
134
|
-
.highlight .nn { color: $base-code-text-color } /* Name.Namespace */
|
135
|
-
.highlight .nx { color: $base-code-text-color } /* Name.Other */
|
136
|
-
.highlight .py { color: $base-code-text-color } /* Name.Property */
|
137
|
-
.highlight .nt { color: #204a87; font-weight: 500 } /* Name.Tag */
|
138
|
-
.highlight .nv { color: $base-code-text-color } /* Name.Variable */
|
139
|
-
.highlight .ow { color: #204a87; font-weight: 500 } /* Operator.Word */
|
140
|
-
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
|
141
|
-
.highlight .mf { color: #0000cf; font-weight: 500 } /* Literal.Number.Float */
|
142
|
-
.highlight .mh { color: #0000cf; font-weight: 500 } /* Literal.Number.Hex */
|
143
|
-
.highlight .mi { color: #0000cf; font-weight: 500 } /* Literal.Number.Integer */
|
144
|
-
.highlight .mo { color: #0000cf; font-weight: 500 } /* Literal.Number.Oct */
|
145
|
-
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
|
146
|
-
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
147
|
-
.highlight .sd { color: #8f5902 } /* Literal.String.Doc */
|
148
|
-
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
|
149
|
-
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
|
150
|
-
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
151
|
-
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
152
|
-
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
153
|
-
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
154
|
-
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
|
155
|
-
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
156
|
-
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
157
|
-
.highlight .vc { color: $base-code-text-color } /* Name.Variable.Class */
|
158
|
-
.highlight .vg { color: $base-code-text-color } /* Name.Variable.Global */
|
159
|
-
.highlight .vi { color: $base-code-text-color } /* Name.Variable.Instance */
|
160
|
-
.highlight .il { color: #0000cf; font-weight: 500 } /* Literal.Number.Integer.Long */
|
161
|
-
|
162
|
-
.language-liquid {
|
163
|
-
.highlight .p {
|
164
|
-
color: #8d8400;
|
165
|
-
}
|
166
|
-
.highlight .nv {
|
167
|
-
color: #204a87;
|
168
|
-
}
|
169
|
-
}
|
data/docs/package.json
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "bridgetown-primer-demo",
|
3
|
-
"version": "1.0.0",
|
4
|
-
"private": true,
|
5
|
-
"scripts": {
|
6
|
-
"build": "bundle exec bridgetown build",
|
7
|
-
"serve": "bundle exec bridgetown serve",
|
8
|
-
"clean": "bundle exec bridgetown clean",
|
9
|
-
"webpack-build": "webpack --mode production",
|
10
|
-
"webpack-dev": "webpack --mode development -w",
|
11
|
-
"deploy": "yarn clean && yarn webpack-build && yarn build",
|
12
|
-
"sync": "node sync.js",
|
13
|
-
"start": "node start.js"
|
14
|
-
},
|
15
|
-
"devDependencies": {
|
16
|
-
"@babel/core": "^7.9.0",
|
17
|
-
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
18
|
-
"@babel/plugin-proposal-decorators": "^7.10.1",
|
19
|
-
"@babel/plugin-transform-runtime": "^7.9.0",
|
20
|
-
"@babel/preset-env": "^7.9.0",
|
21
|
-
"babel-loader": "^8.1.0",
|
22
|
-
"browser-sync": "^2.26.7",
|
23
|
-
"concurrently": "^5.2.0",
|
24
|
-
"css-loader": "^3.4.2",
|
25
|
-
"file-loader": "^6.0.0",
|
26
|
-
"mini-css-extract-plugin": "^0.9.0",
|
27
|
-
"node-sass": "^4.13.1",
|
28
|
-
"sass-loader": "^8.0.2",
|
29
|
-
"style-loader": "^1.1.3",
|
30
|
-
"webpack": "^4.42.1",
|
31
|
-
"webpack-cli": "^3.3.11",
|
32
|
-
"webpack-manifest-plugin": "^2.2.0"
|
33
|
-
}
|
34
|
-
}
|
data/docs/plugins/builders/.keep
DELETED
File without changes
|
data/docs/src/404.html
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
<meta charset="utf-8" />
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
3
|
-
{% capture page_title %}{{ title | strip_html | strip_newlines }}{% endcapture %}
|
4
|
-
<title>{% if page_title != "" %}{{ page_title | escape }} | {{ metadata.title | escape }}{% else %}{{ metadata.title | escape }}: {{ metadata.tagline | escape }}{% endif %}</title>
|
5
|
-
|
6
|
-
<meta name="description" content="{{ metadata.description }}" />
|
7
|
-
|
8
|
-
<link rel="stylesheet" href="{% webpack_path css %}" />
|
9
|
-
<script src="{% webpack_path js %}" defer></script>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Site settings
|
2
|
-
# These are used to personalize your new site. If you look in the HTML files,
|
3
|
-
# you will see them accessed via {{ site.metadata.title }}, {{ site.metadata.email }}, and so on.
|
4
|
-
# You can create any custom variable you would like, and they will be accessible
|
5
|
-
# in the templates via {{ site.metadata.myvariable }}.
|
6
|
-
|
7
|
-
title: Serbea
|
8
|
-
tagline: Similar to ERB, Except Awesomer
|
9
|
-
email: your-email@example.com
|
10
|
-
description: >- # this means to ignore newlines until "baseurl:"
|
11
|
-
The Ruby template engine you didn't realize you needed. Until now.
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
{% render "head", metadata: site.metadata, title: page.title %}
|
5
|
-
</head>
|
6
|
-
<body class="{{ page.layout }} {{ page.page_class }}">
|
7
|
-
<main>
|
8
|
-
{{ content }}
|
9
|
-
</main>
|
10
|
-
|
11
|
-
{% render "footer", metadata: site.metadata %}
|
12
|
-
</body>
|
13
|
-
</html>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
<h1 style="margin-bottom: 1.5rem">
|
6
|
-
<img src="/images/serbea-logomark.svg" alt="" style="height: 120px; vertical-align: middle;margin-bottom:20px" />
|
7
|
-
<img src="/images/serbea-logotype.svg" alt="Serbea" style="height: 60px; vertical-align: middle;margin-top:0px;margin-left:20px;margin-right:20px" />
|
8
|
-
</h1>
|
9
|
-
|
10
|
-
<p style="font-size: 1.5rem;text-align: center">Similar to ERB, Except Awesomer. 😉<p>
|
11
|
-
|
12
|
-
|
13
|
-
{{ content }}
|
data/docs/src/favicon.ico
DELETED
File without changes
|
data/docs/src/images/.keep
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|