serbea 0.11.4 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9de1d1227d672565dd3f5c7e1eaccd6b521aef986761905c32a5291f0ec07884
4
- data.tar.gz: d1d30224f4c014bb7c142ace9c1780318e5a7e15ff299dc3d0d8a5913e419077
3
+ metadata.gz: b747bafc667c67c0826b3cbe2c979825df89174d43a3a617780eaec53da6a059
4
+ data.tar.gz: 7b359e8cd5faa91971c58974bd2be1daa89dcd666d55a4430bf3a3f3ffd57dd0
5
5
  SHA512:
6
- metadata.gz: ef72a8fd812225972e01f5a658c673266c72a0afa925595178f2f8f39e00a444c566b9f01c24880a2a063aa8dd29dbabd04114c792544f8d78e05e6f3c6fe321
7
- data.tar.gz: bf6962a1de782dd73e8aad76a20d6c830b62906053c7d33a5f6e0783ecd5ef46f086e365d7c37d24d6437a80b94fcde7f1258dc318a5c7905ebbc4bca2b78859
6
+ metadata.gz: 68a4dce4eb9edafc3fcf3f127421889188d5d4d2bc10b20bd16b48c053baeb2be00ee3cea3ff04d0cc82a764036ef853cd655e47001145f459c9f6745f6e8e89
7
+ data.tar.gz: 55e7eb37b580e4c3b2998d52e938fc79fe58db94c7e8e3522b278471e7a971070adfc94b51ff82c54646b584c61a368d41604cd35d6c4edc131a1b2434e48fc2
@@ -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
@@ -9,6 +9,7 @@ module Rouge
9
9
  desc "Embedded Ruby Serbea template files"
10
10
 
11
11
  tag 'serb'
12
+ aliases 'serbea'
12
13
 
13
14
  filenames '*.serb'
14
15
 
@@ -50,4 +51,4 @@ module Rouge
50
51
  end
51
52
  end
52
53
  end
53
- end
54
+ end
@@ -10,9 +10,10 @@ module Serbea
10
10
  previous_buffer_state = @_erbout
11
11
  @_erbout = Serbea::OutputBuffer.new
12
12
  result = yield(*args)
13
+ result = @_erbout.presence || result
13
14
  @_erbout = previous_buffer_state
14
15
 
15
- result&.html_safe
16
+ Serbea::OutputBuffer === result ? result.html_safe : result
16
17
  end
17
18
 
18
19
  def pipeline(context, value)
@@ -21,16 +22,19 @@ module Serbea
21
22
 
22
23
  def helper(name, &helper_block)
23
24
  self.class.define_method(name) do |*args, **kwargs, &block|
24
- previous_buffer_state = @_erbout
25
- @_erbout = Serbea::OutputBuffer.new
26
- result = helper_block.call(*args, **kwargs, &block)
27
- @_erbout = previous_buffer_state
28
-
29
- result.is_a?(String) ? result.html_safe : result
25
+ capture { helper_block.call(*args, **kwargs, &block) }
30
26
  end
31
27
  end
32
28
  alias_method :macro, :helper
33
29
 
30
+ def import(*args, **kwargs, &block)
31
+ helper_names = %i(partial render)
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
34
+ available_helper == :partial ? partial(*args, **kwargs, &block) : render(*args, **kwargs, &block)
35
+ nil
36
+ end
37
+
34
38
  def h(input)
35
39
  ERB::Util.h(input.to_s)
36
40
  end
@@ -1,3 +1,4 @@
1
+ require "set"
1
2
  require "active_support/core_ext/string/output_safety"
2
3
  require "active_support/core_ext/object/blank"
3
4
 
@@ -68,38 +69,21 @@ module Serbea
68
69
  @value = value
69
70
  end
70
71
 
71
- # TODO: clean this up somehow and still support Ruby 2.5..3.0!
72
72
  def filter(name, *args, **kwargs)
73
73
  if @value.respond_to?(name) && !self.class.value_methods_denylist.include?(name)
74
74
  if args.last.is_a?(Proc)
75
75
  real_args = args.take(args.length - 1)
76
76
  block = args.last
77
- unless kwargs.empty?
78
- @value = @value.send(name, *real_args, **kwargs, &block)
79
- else
80
- @value = @value.send(name, *real_args, &block)
81
- end
77
+ @value = @value.send(name, *real_args, **kwargs, &block)
82
78
  else
83
- unless kwargs.empty?
84
- @value = @value.send(name, *args, **kwargs)
85
- else
86
- @value = @value.send(name, *args)
87
- end
79
+ @value = @value.send(name, *args, **kwargs)
88
80
  end
89
81
  elsif @context.respond_to?(name)
90
- unless kwargs.empty?
91
- @value = @context.send(name, @value, *args, **kwargs)
92
- else
93
- @value = @context.send(name, @value, *args)
94
- end
82
+ @value = @context.send(name, @value, *args, **kwargs)
95
83
  elsif @binding.local_variables.include?(name)
96
84
  var = @binding.local_variable_get(name)
97
85
  if var.respond_to?(:call)
98
- unless kwargs.empty?
99
- @value = var.call(@value, *args, **kwargs)
100
- else
101
- @value = var.call(@value, *args)
102
- end
86
+ @value = var.call(@value, *args, **kwargs)
103
87
  else
104
88
  "Serbea warning: Filter #{name} does not respond to call".tap do |warning|
105
89
  self.class.raise_on_missing_filters ? raise(warning) : STDERR.puts(warning)
data/lib/serbea.rb CHANGED
@@ -25,19 +25,3 @@ module Tilt
25
25
  end
26
26
 
27
27
  Tilt.register Tilt::SerbeaTemplate, "serb"
28
-
29
- if defined?(Rails::Railtie)
30
- class Railtie < ::Rails::Railtie
31
- initializer :serbea do |app|
32
- ActiveSupport.on_load(:action_view) do
33
- require "serbea/rails_support"
34
-
35
- ActionController::Base.include Serbea::Rails::FrontmatterControllerActions
36
- end
37
- end
38
- end
39
- end
40
-
41
- if defined?(Bridgetown)
42
- require "serbea/bridgetown_support"
43
- end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Serbea
2
- VERSION = "0.11.4"
2
+ VERSION = "1.0.1"
3
3
  end
data/serbea.gemspec CHANGED
@@ -11,14 +11,13 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = "https://github.com/bridgetownrb/serbea"
12
12
  spec.license = "MIT"
13
13
 
14
- spec.required_ruby_version = ">= 2.5"
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
- spec.add_runtime_dependency("activesupport", "~> 6.0")
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,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serbea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-03 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -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
@@ -80,49 +66,22 @@ dependencies:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '13.0'
83
- description:
69
+ description:
84
70
  email: maintainers@bridgetownrb.com
85
71
  executables: []
86
72
  extensions: []
87
73
  extra_rdoc_files: []
88
74
  files:
75
+ - ".github/workflows/ci.yml"
89
76
  - ".gitignore"
90
77
  - Gemfile
91
78
  - LICENSE.txt
92
79
  - README.md
93
80
  - 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
81
+ - lib/rouge/lexers/serbea.rb
120
82
  - lib/serbea.rb
121
- - lib/serbea/bridgetown_support.rb
122
83
  - lib/serbea/helpers.rb
123
84
  - lib/serbea/pipeline.rb
124
- - lib/serbea/rails_support.rb
125
- - lib/serbea/rouge_lexer.rb
126
85
  - lib/serbea/template_engine.rb
127
86
  - lib/version.rb
128
87
  - serbea.gemspec
@@ -130,7 +89,7 @@ homepage: https://github.com/bridgetownrb/serbea
130
89
  licenses:
131
90
  - MIT
132
91
  metadata: {}
133
- post_install_message:
92
+ post_install_message:
134
93
  rdoc_options: []
135
94
  require_paths:
136
95
  - lib
@@ -138,15 +97,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
97
  requirements:
139
98
  - - ">="
140
99
  - !ruby/object:Gem::Version
141
- version: '2.5'
100
+ version: '2.7'
142
101
  required_rubygems_version: !ruby/object:Gem::Requirement
143
102
  requirements:
144
103
  - - ">="
145
104
  - !ruby/object:Gem::Version
146
105
  version: '0'
147
106
  requirements: []
148
- rubygems_version: 3.2.3
149
- signing_key:
107
+ rubygems_version: 3.1.4
108
+ signing_key:
150
109
  specification_version: 4
151
110
  summary: Similar to ERB, Except Awesomer
152
111
  test_files: []
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
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- gem "bridgetown", "~> 0.19"
5
- gem "serbea", "~> 0.10", :group => :bridgetown_plugins
@@ -1,6 +0,0 @@
1
- url: "https://www.serbea.dev"
2
- permalink: pretty
3
-
4
- timezone: America/Los_Angeles
5
-
6
- template_engine: serbea
@@ -1,3 +0,0 @@
1
- import "../styles/index.scss"
2
-
3
- console.info("Bridgetown is loaded!")
@@ -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
- }
File without changes
@@ -1,3 +0,0 @@
1
- class SiteBuilder < Bridgetown::Builder
2
- # write builders which subclass SiteBuilder in plugins/builder
3
- end
data/docs/src/404.html DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- permalink: /404.html
3
- layout: default
4
- ---
5
-
6
- <h1>404</h1>
7
-
8
- <p><strong>Page not found :(</strong></p>
9
- <p>The requested page could not be found.</p>
@@ -1,3 +0,0 @@
1
- <footer>
2
- <strong><a href="https://github.com/bridgetownrb/serbea">Visit the GitHub Repo ▸</a></strong>
3
- </footer>
@@ -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,5 +0,0 @@
1
- <nav>
2
- <a href="/">Home</a>
3
- <a href="/about">About</a>
4
- <a href="/posts">Posts</a>
5
- </nav>
@@ -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 }}