amber_component 0.0.4 → 1.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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +2 -2
  3. data/Gemfile.lock +9 -9
  4. data/README.md +424 -4
  5. data/banner.png +0 -0
  6. data/lib/amber_component/minitest_test_case.rb +10 -0
  7. data/lib/amber_component/props.rb +1 -1
  8. data/lib/amber_component/test_helper.rb +34 -0
  9. data/lib/amber_component/version.rb +1 -1
  10. data/lib/generators/amber_component/install_generator.rb +20 -1
  11. data/lib/generators/amber_component/templates/application_component_test_case.rb +7 -0
  12. data/lib/generators/amber_component_generator.rb +56 -4
  13. data/lib/generators/component_generator.rb +9 -0
  14. data/lib/generators/templates/component.rb.erb +3 -1
  15. data/lib/generators/templates/component_test.rb.erb +11 -3
  16. data/lib/generators/templates/style.css.erb +1 -1
  17. data/lib/generators/templates/style.sass.erb +3 -0
  18. data/lib/generators/templates/style.scss.erb +5 -0
  19. data/lib/generators/templates/view.haml.erb +9 -0
  20. data/lib/generators/templates/view.html.erb.erb +8 -0
  21. data/lib/generators/templates/view.slim.erb +6 -0
  22. metadata +11 -31
  23. data/docs/.bundle/config +0 -2
  24. data/docs/.gitignore +0 -5
  25. data/docs/404.html +0 -25
  26. data/docs/Gemfile +0 -37
  27. data/docs/Gemfile.lock +0 -89
  28. data/docs/README.md +0 -19
  29. data/docs/_config.yml +0 -148
  30. data/docs/_data/amber_component.yml +0 -3
  31. data/docs/_sass/_variables.scss +0 -2
  32. data/docs/_sass/color_schemes/amber_component.scss +0 -11
  33. data/docs/_sass/custom/custom.scss +0 -60
  34. data/docs/api/index.md +0 -8
  35. data/docs/assets/images/logo_wide.png +0 -0
  36. data/docs/changelog/index.md +0 -8
  37. data/docs/favicon.ico +0 -0
  38. data/docs/getting_started/index.md +0 -8
  39. data/docs/getting_started/installation.md +0 -7
  40. data/docs/getting_started/ruby_support.md +0 -7
  41. data/docs/getting_started/wireframes.md +0 -7
  42. data/docs/index.md +0 -17
  43. data/docs/introduction/basic_usage.md +0 -7
  44. data/docs/introduction/index.md +0 -8
  45. data/docs/introduction/why_amber_component.md +0 -7
  46. data/docs/resources/index.md +0 -8
  47. data/docs/styles/index.md +0 -8
  48. data/docs/styles/usage.md +0 -7
  49. data/docs/views/index.md +0 -8
  50. data/docs/views/usage.md +0 -7
  51. data/lib/generators/templates/view.html.erb +0 -3
@@ -7,12 +7,39 @@ class AmberComponentGenerator < ::Rails::Generators::NamedBase
7
7
  desc 'Generate a new component'
8
8
  source_root ::File.expand_path('templates', __dir__)
9
9
 
10
- # copy rake tasks
11
- def copy_tasks
10
+ # @return [Array<Symbol>]
11
+ VIEW_FORMATS = %i[html erb haml slim].freeze
12
+ # @return [Array<Symbol>]
13
+ STYLE_FORMATS = %i[css scss sass].freeze
14
+
15
+ class_option :view,
16
+ aliases: ['-v'],
17
+ desc: "Indicate what type of view should be generated eg. #{VIEW_FORMATS}"
18
+
19
+ class_option :css,
20
+ aliases: ['--style', '-c'],
21
+ desc: "Indicate what type of styles should be generated eg. #{STYLE_FORMATS}"
22
+
23
+ def generate_component
24
+ @view_format = (options[:view] || :html).to_sym
25
+ @view_format = :html if @view_format == :erb
26
+
27
+ @style_format = options[:css]&.to_sym
28
+
29
+ unless VIEW_FORMATS.include? @view_format
30
+ puts "No such view format as `#{@view_format}`"
31
+ return
32
+ end
33
+
34
+ if !@style_format.nil? && STYLE_FORMATS.include?(@style_format)
35
+ puts "No such css/style format as `#{@style_format}`"
36
+ return
37
+ end
38
+
12
39
  template 'component.rb.erb', "app/components/#{file_path}.rb"
13
40
  template 'component_test.rb.erb', "test/components/#{file_path}_test.rb"
14
- template 'view.html.erb', "app/components/#{file_path}/view.html.erb"
15
- template 'style.css.erb', "app/components/#{file_path}/style.css"
41
+ create_stylesheet
42
+ create_view
16
43
  end
17
44
 
18
45
  def file_name
@@ -21,4 +48,29 @@ class AmberComponentGenerator < ::Rails::Generators::NamedBase
21
48
 
22
49
  "#{name}_component"
23
50
  end
51
+
52
+ private
53
+
54
+ # @return [void]
55
+ def create_view
56
+ case @view_format
57
+ when :slim
58
+ template 'view.slim.erb', "app/components/#{file_path}/view.slim"
59
+ when :haml
60
+ template 'view.haml.erb', "app/components/#{file_path}/view.haml"
61
+ else
62
+ template 'view.html.erb.erb', "app/components/#{file_path}/view.html.erb"
63
+ end
64
+ end
65
+
66
+ # @return [void]
67
+ def create_stylesheet
68
+ if (@style_format.nil? && defined?(::SassC)) || @style_format == :scss
69
+ template 'style.scss.erb', "app/components/#{file_path}/style.scss"
70
+ elsif @style_format == :sass
71
+ template 'style.sass.erb', "app/components/#{file_path}/style.sass"
72
+ else
73
+ template 'style.css.erb', "app/components/#{file_path}/style.css"
74
+ end
75
+ end
24
76
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fileutils'
4
+ require_relative 'amber_component_generator'
5
+
6
+ # A Rails generator which creates a new Amber component.
7
+ class ComponentGenerator < AmberComponentGenerator
8
+ source_root ::File.expand_path('templates', __dir__)
9
+ end
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class <%= class_name %> < ::ApplicationComponent
4
- # Your code goes here
4
+ # Props that your component accepts
5
+ prop :description, default: -> { 'Default Description' }
5
6
 
6
7
  after_initialize do
8
+ # some initialization
7
9
  @time = ::Time.now
8
10
  end
9
11
  end
@@ -2,8 +2,16 @@
2
2
 
3
3
  require 'test_helper'
4
4
 
5
- class <%= class_name %>Test < ::ActiveSupport::TestCase
6
- # test 'the truth' do
7
- # assert true
5
+ class <%= class_name %>Test < ::ApplicationComponentTestCase
6
+ # For a full list of available assertions see
7
+ # https://rubydoc.info/github/jnicklas/capybara/Capybara/Node/Matchers
8
+
9
+ # test 'returns correct html' do
10
+ # render do
11
+ # <%= class_name %>.call
12
+ # end
13
+
14
+ # assert_text 'Hello from <%= class_name %>'
15
+ # assert_selector "div.<%= singular_table_name %> p", text: 'Default Description'
8
16
  # end
9
17
  end
@@ -1,3 +1,3 @@
1
- .<%= singular_table_name %> {
1
+ .<%= singular_table_name %> h1 {
2
2
  color: blue;
3
3
  }
@@ -0,0 +1,3 @@
1
+ .<%= singular_table_name %>
2
+ h1
3
+ color: blue
@@ -0,0 +1,5 @@
1
+ .<%= singular_table_name %> {
2
+ h1 {
3
+ color: blue;
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ .<%= singular_table_name %>
2
+ %h1
3
+ Hello from
4
+ %b
5
+ <%= class_name %>
6
+ , initialized at:
7
+ = @time
8
+ %p
9
+ = description
@@ -0,0 +1,8 @@
1
+ <div class='<%= singular_table_name %>'>
2
+ <h1>
3
+ Hello from <b><%= class_name %></b>, initialized at: <%%= @time %>
4
+ </h1>
5
+ <p>
6
+ <%%= description %>
7
+ </p>
8
+ </div>
@@ -0,0 +1,6 @@
1
+ div.<%= singular_table_name %>
2
+ h1
3
+ | Hello from
4
+ b <%= class_name %>
5
+ | , initialized at: #{@time}
6
+ p = description
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amber_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruby-Amber
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-09-25 00:00:00.000000000 Z
13
+ date: 2022-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionview
@@ -107,34 +107,6 @@ files:
107
107
  - Rakefile
108
108
  - amber_component.gemspec
109
109
  - banner.png
110
- - docs/.bundle/config
111
- - docs/.gitignore
112
- - docs/404.html
113
- - docs/Gemfile
114
- - docs/Gemfile.lock
115
- - docs/README.md
116
- - docs/_config.yml
117
- - docs/_data/amber_component.yml
118
- - docs/_sass/_variables.scss
119
- - docs/_sass/color_schemes/amber_component.scss
120
- - docs/_sass/custom/custom.scss
121
- - docs/api/index.md
122
- - docs/assets/images/logo_wide.png
123
- - docs/changelog/index.md
124
- - docs/favicon.ico
125
- - docs/getting_started/index.md
126
- - docs/getting_started/installation.md
127
- - docs/getting_started/ruby_support.md
128
- - docs/getting_started/wireframes.md
129
- - docs/index.md
130
- - docs/introduction/basic_usage.md
131
- - docs/introduction/index.md
132
- - docs/introduction/why_amber_component.md
133
- - docs/resources/index.md
134
- - docs/styles/index.md
135
- - docs/styles/usage.md
136
- - docs/views/index.md
137
- - docs/views/usage.md
138
110
  - icon.png
139
111
  - lib/amber_component.rb
140
112
  - lib/amber_component/assets.rb
@@ -143,22 +115,30 @@ files:
143
115
  - lib/amber_component/helpers/class_helper.rb
144
116
  - lib/amber_component/helpers/component_helper.rb
145
117
  - lib/amber_component/helpers/css_helper.rb
118
+ - lib/amber_component/minitest_test_case.rb
146
119
  - lib/amber_component/prop_definition.rb
147
120
  - lib/amber_component/props.rb
148
121
  - lib/amber_component/railtie.rb
149
122
  - lib/amber_component/rendering.rb
150
123
  - lib/amber_component/template_handler.rb
151
124
  - lib/amber_component/template_handler/erb.rb
125
+ - lib/amber_component/test_helper.rb
152
126
  - lib/amber_component/typed_content.rb
153
127
  - lib/amber_component/version.rb
154
128
  - lib/amber_component/views.rb
155
129
  - lib/generators/amber_component/install_generator.rb
156
130
  - lib/generators/amber_component/templates/application_component.rb
131
+ - lib/generators/amber_component/templates/application_component_test_case.rb
157
132
  - lib/generators/amber_component_generator.rb
133
+ - lib/generators/component_generator.rb
158
134
  - lib/generators/templates/component.rb.erb
159
135
  - lib/generators/templates/component_test.rb.erb
160
136
  - lib/generators/templates/style.css.erb
161
- - lib/generators/templates/view.html.erb
137
+ - lib/generators/templates/style.sass.erb
138
+ - lib/generators/templates/style.scss.erb
139
+ - lib/generators/templates/view.haml.erb
140
+ - lib/generators/templates/view.html.erb.erb
141
+ - lib/generators/templates/view.slim.erb
162
142
  homepage: https://github.com/amber-ruby/amber_component
163
143
  licenses:
164
144
  - MIT
data/docs/.bundle/config DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_BUILD__EVENTMACHINE: "--with-cppflags=-I/opt/homebrew/opt/openssl@3/include"
data/docs/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- _site/
2
- .sass-cache
3
- .jekyll-cache
4
- .jekyll-metadata
5
- vendor
data/docs/404.html DELETED
@@ -1,25 +0,0 @@
1
- ---
2
- permalink: /404.html
3
- layout: default
4
- ---
5
-
6
- <style type="text/css" media="screen">
7
- .container {
8
- margin: 10px auto;
9
- max-width: 600px;
10
- text-align: center;
11
- }
12
- h1 {
13
- margin: 30px 0;
14
- font-size: 4em;
15
- line-height: 1;
16
- letter-spacing: -1px;
17
- }
18
- </style>
19
-
20
- <div class="container">
21
- <h1>404</h1>
22
-
23
- <p><strong>Page not found :(</strong></p>
24
- <p>The requested page could not be found.</p>
25
- </div>
data/docs/Gemfile DELETED
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- # Hello! This is where you manage which Jekyll version is used to run.
5
- # When you want to use a different version, change it below, save the
6
- # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
7
- #
8
- # bundle exec jekyll serve
9
- #
10
- # This will help ensure the proper Jekyll version is running.
11
- # Happy Jekylling!
12
- gem 'jekyll', '~> 4.2.2'
13
- gem 'just-the-docs' # Theme for Jekyll docs.
14
- gem 'webrick'
15
- # This is the default theme for new Jekyll sites. You may change this to anything you like.
16
- gem 'minima', '~> 2.5'
17
- # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
18
- # uncomment the line below. To upgrade, run `bundle update github-pages`.
19
- # gem "github-pages", group: :jekyll_plugins
20
- # If you have any plugins, put them here!
21
- group :jekyll_plugins do
22
- gem 'jekyll-feed', '~> 0.12'
23
- end
24
-
25
- # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
26
- # and associated library.
27
- platforms :mingw, :x64_mingw, :mswin, :jruby do
28
- gem 'tzinfo', '~> 1.2'
29
- gem 'tzinfo-data'
30
- end
31
-
32
- # Performance-booster for watching directories on Windows
33
- gem 'wdm', '~> 0.1.1', platforms: %i[mingw x64_mingw mswin]
34
-
35
- # Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
36
- # do not have a Java counterpart.
37
- gem 'http_parser.rb', '~> 0.6.0', platforms: [:jruby]
data/docs/Gemfile.lock DELETED
@@ -1,89 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.8.0)
5
- public_suffix (>= 2.0.2, < 5.0)
6
- colorator (1.1.0)
7
- concurrent-ruby (1.1.10)
8
- em-websocket (0.5.3)
9
- eventmachine (>= 0.12.9)
10
- http_parser.rb (~> 0)
11
- eventmachine (1.2.7)
12
- ffi (1.15.5)
13
- forwardable-extended (2.6.0)
14
- http_parser.rb (0.8.0)
15
- i18n (1.12.0)
16
- concurrent-ruby (~> 1.0)
17
- jekyll (4.2.2)
18
- addressable (~> 2.4)
19
- colorator (~> 1.0)
20
- em-websocket (~> 0.5)
21
- i18n (~> 1.0)
22
- jekyll-sass-converter (~> 2.0)
23
- jekyll-watch (~> 2.0)
24
- kramdown (~> 2.3)
25
- kramdown-parser-gfm (~> 1.0)
26
- liquid (~> 4.0)
27
- mercenary (~> 0.4.0)
28
- pathutil (~> 0.9)
29
- rouge (~> 3.0)
30
- safe_yaml (~> 1.0)
31
- terminal-table (~> 2.0)
32
- jekyll-feed (0.16.0)
33
- jekyll (>= 3.7, < 5.0)
34
- jekyll-sass-converter (2.2.0)
35
- sassc (> 2.0.1, < 3.0)
36
- jekyll-seo-tag (2.8.0)
37
- jekyll (>= 3.8, < 5.0)
38
- jekyll-watch (2.2.1)
39
- listen (~> 3.0)
40
- just-the-docs (0.3.3)
41
- jekyll (>= 3.8.5)
42
- jekyll-seo-tag (~> 2.0)
43
- rake (>= 12.3.1, < 13.1.0)
44
- kramdown (2.4.0)
45
- rexml
46
- kramdown-parser-gfm (1.1.0)
47
- kramdown (~> 2.0)
48
- liquid (4.0.3)
49
- listen (3.7.1)
50
- rb-fsevent (~> 0.10, >= 0.10.3)
51
- rb-inotify (~> 0.9, >= 0.9.10)
52
- mercenary (0.4.0)
53
- minima (2.5.1)
54
- jekyll (>= 3.5, < 5.0)
55
- jekyll-feed (~> 0.9)
56
- jekyll-seo-tag (~> 2.1)
57
- pathutil (0.16.2)
58
- forwardable-extended (~> 2.6)
59
- public_suffix (4.0.7)
60
- rake (13.0.6)
61
- rb-fsevent (0.11.1)
62
- rb-inotify (0.10.1)
63
- ffi (~> 1.0)
64
- rexml (3.2.5)
65
- rouge (3.29.0)
66
- safe_yaml (1.0.5)
67
- sassc (2.4.0)
68
- ffi (~> 1.9)
69
- terminal-table (2.0.0)
70
- unicode-display_width (~> 1.1, >= 1.1.1)
71
- unicode-display_width (1.8.0)
72
- webrick (1.7.0)
73
-
74
- PLATFORMS
75
- ruby
76
-
77
- DEPENDENCIES
78
- http_parser.rb (~> 0.6.0)
79
- jekyll (~> 4.2.2)
80
- jekyll-feed (~> 0.12)
81
- just-the-docs
82
- minima (~> 2.5)
83
- tzinfo (~> 1.2)
84
- tzinfo-data
85
- wdm (~> 0.1.1)
86
- webrick
87
-
88
- BUNDLED WITH
89
- 2.3.14
data/docs/README.md DELETED
@@ -1,19 +0,0 @@
1
- ![Amber Components](../banner.png "Amber Components")
2
-
3
- # Docs
4
-
5
- > Based on jekyll gem [https://jekyllrb.com/](https://jekyllrb.com/)
6
-
7
- ## install
8
-
9
- 1. `bundle install`
10
-
11
- ## run:development
12
-
13
- 1. `jekyll serve`
14
- 2. `http://127.0.0.1:4000/`
15
-
16
- ## build for production
17
-
18
- 1. `jekyll build`
19
- 2. `check`
data/docs/_config.yml DELETED
@@ -1,148 +0,0 @@
1
- # Welcome to Jekyll!
2
- #
3
- # This config file is meant for settings that affect your whole site, values
4
- # which you are expected to set up once and rarely edit after that. If you find
5
- # yourself editing these this file very often, consider using Jekyll's data files
6
- # feature for the data you need to update frequently.
7
- #
8
- # For technical reasons, this file is *NOT* reloaded automatically when you use
9
- # 'jekyll serve'. If you change this file, please restart the server process.
10
-
11
- # Site settings
12
- # These are used to personalize your new site. If you look in the HTML files,
13
- # you will see them accessed via {{ site.title }}, {{ site.github_repo }}, and so on.
14
- # You can create any custom variable you would like, and they will be accessible
15
- # in the templates via {{ site.myvariable }}.
16
- title: Amber Component
17
- baseurl: '/amber-doc-test' # the subpath of your site, e.g. /blog
18
- # url: https://ambercomponent.com # the base hostname & protocol for your site, e.g. http://example.com
19
- url: https://garbusbeach.com/ # the base hostname & protocol for your site, e.g. http://example.com
20
-
21
- theme: just-the-docs
22
- # Color scheme currently only supports "dark", "light"/nil (default), or a custom scheme that you define
23
- # color_scheme: "dark"
24
- color_scheme: "amber_component"
25
-
26
- permalink: pretty
27
- exclude: [
28
- "node_modules/",
29
- "*.gemspec",
30
- "*.gem",
31
- "Gemfile",
32
- "Gemfile.lock",
33
- "package.json",
34
- "package-lock.json",
35
- "script/",
36
- "LICENSE.txt",
37
- "lib/",
38
- "bin/",
39
- "README.md",
40
- "Rakefile" ,
41
- "docs/tests/"
42
- ]
43
-
44
- # Regression tests
45
- # By default, the pages in /docs/tests are excluded when the ste is built.
46
- # To include them, comment-out the relevant line above.
47
- # Uncommenting the following line doesn't work - see https://github.com/jekyll/jekyll/issues/4791
48
- # include: ["docs/tests/"]
49
-
50
- # Set a path/url to a logo that will be displayed instead of the title
51
- logo: /assets/images/logo_wide.png
52
-
53
- # Enable or disable the site search
54
- # Supports true (default) or false
55
- search_enabled: true
56
- search:
57
- # Split pages into sections that can be searched individually
58
- # Supports 1 - 6, default: 2
59
- heading_level: 2
60
- # Maximum amount of previews per search result
61
- # Default: 3
62
- previews: 2
63
- # Maximum amount of words to display before a matched word in the preview
64
- # Default: 5
65
- preview_words_before: 3
66
- # Maximum amount of words to display after a matched word in the preview
67
- # Default: 10
68
- preview_words_after: 3
69
- # Set the search token separator
70
- # Default: /[\s\-/]+/
71
- # Example: enable support for hyphenated search words
72
- tokenizer_separator: /[\s/]+/
73
- # Display the relative url in search results
74
- # Supports true (default) or false
75
- rel_url: true
76
- # Enable or disable the search button that appears in the bottom right corner of every page
77
- # Supports true or false (default)
78
- button: false
79
-
80
- # Enable or disable heading anchors
81
- heading_anchors: true
82
-
83
- # Aux links for the upper right navigation
84
- aux_links:
85
- AmberComponent on GitHub:
86
- - https://github.com/amber-ruby/amber_component
87
-
88
- # Makes Aux links open in a new tab. Default is false
89
- aux_links_new_tab: true
90
-
91
- # Sort order for navigation links
92
- # nav_sort: case_insensitive # default, equivalent to nil
93
- nav_sort: case_sensitive # Capital letters sorted before lowercase
94
-
95
- # Footer content
96
- # appears at the bottom of every page's main content
97
-
98
- # Back to top link
99
- back_to_top: true
100
- back_to_top_text: "Back to top"
101
-
102
- footer_content: >-
103
- Copyright &copy;
104
- <script type="text/javascript">
105
- document.write(new Date().getFullYear());
106
- </script>
107
- <a class="personal-link" href="{{ site.data.amber_component.garbus_beach_url }}">Garbus Beach</a>,
108
- <a class="personal-link" href="{{ site.data.amber_component.mateusz_drewniak_url }}">Mateusz Drewniak</a>.
109
- Made with ❤️ for ruby.
110
-
111
- # Footer last edited timestamp
112
- last_edit_timestamp: false # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
113
- last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
114
-
115
-
116
-
117
- # Footer "Edit this page on GitHub" link text
118
- gh_edit_link: false # show or hide edit this page link
119
- # gh_edit_link_text: "Edit this page on GitHub"
120
- # gh_edit_repository: "https://github.com/just-the-docs/just-the-docs" # the github URL for your repo
121
- # gh_edit_branch: "main" # the branch that your docs is served from
122
- # gh_edit_source: docs # the source that your files originate from
123
- # gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
124
-
125
- # Google Analytics Tracking (optional)
126
- # e.g, UA-1234567-89
127
-
128
- # TODO:
129
- # ga_tracking: UA-2709176-10
130
- # ga_tracking_anonymize_ip: false # Use GDPR compliant Google Analytics settings (true/nil by default)
131
-
132
- plugins:
133
- - jekyll-seo-tag
134
-
135
- kramdown:
136
- syntax_highlighter_opts:
137
- block:
138
- line_numbers: false
139
-
140
- compress_html:
141
- clippings: all
142
- comments: all
143
- endings: all
144
- startings: []
145
- blanklines: false
146
- profile: false
147
- # ignore:
148
- # envs: all
@@ -1,3 +0,0 @@
1
- version: 1.0.0
2
- garbus_beach_url: https://garbusbeach.com
3
- mateusz_drewniak_url: https://mateuszdrewniak.it
@@ -1,2 +0,0 @@
1
- $amber_color: #FF9500;
2
- $amber_black: #402E32;
@@ -1,11 +0,0 @@
1
- @import url(https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css);
2
-
3
- @import './color_schemes/dark.scss';
4
- @import './../variables.scss';
5
-
6
- $link-color: $amber_color;
7
- $btn-primary-color: $amber_color;
8
- $body-font-family: 'Fira Code', Menlo, Consolas, Monospace;
9
- $mono-font-family: $body-font-family;
10
- // $body-background-color: $amber_black;
11
- // $sidebar-color: $amber_black;
@@ -1,60 +0,0 @@
1
- @import './../variables.scss';
2
-
3
- .site-footer {
4
- display: none;
5
- }
6
-
7
- .search {
8
- input.search-input {
9
- color: white;
10
- }
11
- }
12
-
13
- .btn {
14
- &:focus,
15
- &:focus:hover,
16
- &.selected:focus {
17
- box-shadow: 0 0 0 3px rgba($amber_color, 0.25);
18
- }
19
- }
20
-
21
- footer {
22
- a.personal-link {
23
- color: #5c5962;
24
- text-decoration: underline;
25
-
26
- &:hover {
27
- color: $amber_color;
28
- }
29
- }
30
- }
31
-
32
- .site-header {
33
- a.site-title {
34
- &:hover {
35
- background-image: none;
36
- }
37
- }
38
- }
39
-
40
- .nav-list {
41
- .nav-list-item {
42
- a.nav-list-link {
43
- color: rgba(255, 255, 255, 0.8);
44
- }
45
-
46
- &.active {
47
- // margin: 0 16px;
48
- border-radius: 2px;
49
- background-color: rgba($amber_color, 0.3);
50
-
51
- a.nav-list-link {
52
- &.active {
53
- // padding-left: 18px;
54
- color: $amber_color;
55
- background-image: none;
56
- }
57
- }
58
- }
59
- }
60
- }
data/docs/api/index.md DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: API
4
- nav_order: 5
5
- has_children: true
6
- ---
7
-
8
- # Api
Binary file
@@ -1,8 +0,0 @@
1
- ---
2
- layout: default
3
- title: Changelog
4
- nav_order: 6
5
- has_children: false
6
- ---
7
-
8
- # Changelog