Changed deprecated command in themes documentation (#7941)
Merge pull request 7941
This commit is contained in:
parent
83238b449a
commit
c814089708
|
@ -50,7 +50,7 @@ For example, if your selected theme has a `page` layout, you can override the th
|
||||||
|
|
||||||
To locate a theme's files on your computer:
|
To locate a theme's files on your computer:
|
||||||
|
|
||||||
1. Run `bundle show` followed by the name of the theme's gem, e.g., `bundle show minima` for Jekyll's default theme.
|
1. Run `bundle info --path` followed by the name of the theme's gem, e.g., `bundle info --path minima` for Jekyll's default theme.
|
||||||
|
|
||||||
This returns the location of the gem-based theme files. For example, the Minima theme's files might be located in `/usr/local/lib/ruby/gems/2.6.0/gems/minima-2.5.1` on macOS.
|
This returns the location of the gem-based theme files. For example, the Minima theme's files might be located in `/usr/local/lib/ruby/gems/2.6.0/gems/minima-2.5.1` on macOS.
|
||||||
|
|
||||||
|
@ -58,19 +58,19 @@ To locate a theme's files on your computer:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# On MacOS
|
# On MacOS
|
||||||
open $(bundle show minima)
|
open $(bundle info --path minima)
|
||||||
|
|
||||||
# On Windows
|
# On Windows
|
||||||
# First get the gem's installation path:
|
# First get the gem's installation path:
|
||||||
#
|
#
|
||||||
# bundle show minima
|
# bundle info --path minima
|
||||||
# => C:/Ruby26-x64/lib/ruby/gems/{{ site.data.ruby.current_version }}/gems/minima-2.5.1
|
# => C:/Ruby26-x64/lib/ruby/gems/{{ site.data.ruby.current_version }}/gems/minima-2.5.1
|
||||||
#
|
#
|
||||||
# then invoke explorer with above path, substituting `/` with `\`
|
# then invoke explorer with above path, substituting `/` with `\`
|
||||||
explorer C:\Ruby26-x64\lib\ruby\gems\{{ site.data.ruby.current_version}}\gems\minima-2.5.1
|
explorer C:\Ruby26-x64\lib\ruby\gems\{{ site.data.ruby.current_version}}\gems\minima-2.5.1
|
||||||
|
|
||||||
# On Linux
|
# On Linux
|
||||||
xdg-open $(bundle show minima)
|
xdg-open $(bundle info --path minima)
|
||||||
```
|
```
|
||||||
|
|
||||||
A Finder or Explorer window opens showing the theme's files and directories. The Minima theme gem contains these files:
|
A Finder or Explorer window opens showing the theme's files and directories. The Minima theme gem contains these files:
|
||||||
|
|
Loading…
Reference in New Issue