You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: recipes/jekyll/themes.md
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,26 @@ See [Specification](https://ruby-doc.org/stdlib-2.7.0/libdoc/rubygems/rdoc/Gem/S
9
9
10
10
### Gemspec
11
11
12
-
- The `*.gemspec` file is used to package the theme as gem.
13
-
- Here are ways to add required dependencies. These are not actually installed when you install the gem, but the theme will give an error to say they are missing (at least this is the way it works with Remote Theme.
spec.add_dependency 'example' # alias for add_runtime_dependency
20
+
21
+
spec.add_development_dependency 'example'
22
+
```
23
+
- When using the Remote Theme plugin, it will give an error if the listed depenedencies are missing and will **not** install them.
24
+
- But if you add the theme to your site's `Gemfile`, then you can install the theme's dependencies and avoid the error. Even though the theme itself in local gems is not used due to Remote Theme plugin using the remote one on each build.
25
+
- If you use explicity approach approach, then you can make your `Gemfile` lighter and let the theme control the gems.this works for a RubyGems theme like `gem 'minima'` or custom theme on GitHub like `gem 'minima', git: 'https://github.com/MichaelCurrin/minima'`.
26
+
22
27
23
28
### Gemfile
24
29
25
30
- A `Gemfile` is not needed in the theme. If it is included, it is only for testing the project and it is not passed to a downstream project.
26
-
-The`gemspec` command in the `Gemfile` will install dependencies from the `*.gemspec` file.
31
+
- The `gemspec` command in the `Gemfile` will install dependencies from the `*.gemspec` file when running a Bundle install within the theme.
0 commit comments