-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve quickstart docs #5689
Improve quickstart docs #5689
Conversation
See #5630 for more details on the update. @jekyll/documentation @DirtyF
|
||
[Installation]: /docs/installation/ | ||
Building the default theme is just the first step. The real magic happens when you start creating blog posts, using the front matter to control templates and layouts, and taking advantage of all the awesome configuration options Jekyll makes available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building a Jekyll site with the default theme…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
The `jekyll new` command now automatically initiates `bundle install` and installs the dependencies required. To skip this, pass `--skip-bundle` option like so `jekyll new myblog --skip-bundle`. | ||
`gem install jekyll bundler` installs the [jekyll](https://rubygems.org/gems/jekyll/) and [bundler](https://rubygems.org/gems/bundler) gems through [RubyGems](https://rubygems.org/). You need only to install the gems one time — not every time you create a new Jekyll project. Here are some additional details: | ||
|
||
* `bundler` is a gem that manages other Ruby gems. It makes sure your gems and gem versions are compatible, and that you have all necessary dependencies each gem requires. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page aims to give a few instructions to get going. Detailed explanations are fine, we could split this in small sections:
## For the impatient
...
## For the curious
or
## About bundler
...
## Jekyll new options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call. i made the updates (using the latter headings).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful additions for the first-timers indeed, but let's keep this page easily scannable.
advantage of all the awesome configuration options Jekyll makes available. | ||
* To install the Jekyll site into the directory you're currently in, run `jekyll new .` If the existing directory isn't empty, you can pass the `--force` option with `jekyll new . --force`. | ||
* `jekyll new` automatically initiates `bundle install` to install the dependencies required. (If you don't want Bundler to install the gems, use `jekyll new myblog --skip-bundle`.) | ||
* By default, Jekyll installs a gem-based theme called [Minima](https://github.com/jekyll/minima). With gem-based themes, some of the theme directories and files are stored in the gem, hidden from view in your Jekyll project. To better understand themes, see [Themes](../themes). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make the link to themes docmentation on gem-based themes
and avoid the last sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- * By default, Jekyll installs a gem-based theme called [Minima](https://github.com/jekyll/minima). With gem-based themes, some of the theme directories and files are stored in the gem, hidden from view in your Jekyll project. To better understand themes, see [Themes](../themes).
+ * By default, the Jekyll site installed by `jekyll new` uses a gem-based theme called [Minima](https://github.com/jekyll/minima).
+ With [gem-based themes](../themes), some of the directories and files are stored in the theme-gem, hidden from your immediate view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated. i think the subheadings and bullets facilitate scanning enough. the code sample is at the top, so users don't have to read beyond that code sample to get things running. but i wouldn't recommend reducing explanations of the code in the goal of making it seem simpler. we run the risk of making the code too cryptic.
if anything, i'd cut the bullets about skipping bundler or forcing jekyll to install in a folder that already has content in it. i don't see much use for those two options, but i think it's okay to have them there.
Made requested updates.
I made the requested updates. Submitting for re-review. |
advantage of all the awesome configuration options Jekyll makes available. | ||
* To install the Jekyll site into the directory you're currently in, run `jekyll new .` If the existing directory isn't empty, you can pass the `--force` option with `jekyll new . --force`. | ||
* `jekyll new` automatically initiates `bundle install` to install the dependencies required. (If you don't want Bundler to install the gems, use `jekyll new myblog --skip-bundle`.) | ||
* By default, the Jekyll site installed by `jekyll new` uses a gem-based theme called [Minima](https://github.com/jekyll/minima). With [gem-based themes](../themes), some of the directories and files are stored in the theme-gem, hidden from your immediate view. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well include a point on jekyll new [PATH] --blank
since we've a section just for options with jekyll new.. 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added info about jekyll new -- help
, but I don't think adding info about the --blank
parameter is useful here. This is a quickstart for newbies. The --blank
parameter is for advanced users who wouldn't be using this documentation in the first place. The --blank
parameter doesn't even create a _config.yml file. I don't really see how --blank
is all that useful.
|
||
* When you run `bundle exec jekyll serve`, Bundler uses the gems and versions as specified in `Gemfile.lock` to ensure your Jekyll site builds with no compatibility or dependency conflicts. | ||
|
||
## Jekyll new options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ## Jekyll new options
+ ## Jekyll-new options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or Options for creating a new site with Jekyll?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks for this. Just one comment. 📝
`gem install jekyll bundler` installs the [jekyll](https://rubygems.org/gems/jekyll/) and [bundler](https://rubygems.org/gems/bundler) gems through [RubyGems](https://rubygems.org/). You need only to install the gems one time — not every time you create a new Jekyll project. Here are some additional details: | ||
|
||
* `bundler` is a gem that manages other Ruby gems. It makes sure your gems and gem versions are compatible, and that you have all necessary dependencies each gem requires. | ||
* The `Gemfile` and `Gemfile.lock` files inform Bundler about the gem requirements in your theme. If your theme doesn't have these Gemfiles, you can omit `bundle exec` and just run `jekyll serve`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the gem requirements in your theme. If your theme doesn't have these Gemfiles, you can omit
bundle exec
and just runjekyll serve
.
I believe this should be site not theme, as we're creating a site in the example above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
* To install the Jekyll site into the directory you're currently in, run `jekyll new .` If the existing directory isn't empty, you can pass the `--force` option with `jekyll new . --force`. | ||
* `jekyll new` automatically initiates `bundle install` to install the dependencies required. (If you don't want Bundler to install the gems, use `jekyll new myblog --skip-bundle`.) | ||
* By default, the Jekyll site installed by `jekyll new` uses a gem-based theme called [Minima](https://github.com/jekyll/minima). With [gem-based themes](../themes), some of the directories and files are stored in the theme-gem, hidden from your immediate view. | ||
* To learn about other parameters you can include with `jekyll new`, type ` jekyll new --help`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the extra space before "jekyll new --help". It causes the backticks to go in plain instead of causing this to become a <code>
segment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
made requested fixes
Made fixes from review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update quickstart.md
instead of permalinks.md
. Thanks!
I must have just updated the wrong doc or branch in the last commit. i hope this fixes it.
i would suggest using |
@DirtyF Tom has mistakenly copied contents of |
…t seem to remove it from the previous commit.
@ashmaroli Sorry about this. I tried using
I'd been just using the Github GUI to switch branches and paste in the changes for a specific page. On my local, I have a running build with comprehensive changes for all branches. I should really probably just be switching around branches on my local and committing that way, but I was trying to simplify things and got into using the GUI. I reverted the permalinks doc to the patch-3 state, which should be unmodified. However, now if this PR gets merged after the permalinks PR, it will screw up the permalinks PR. Any advice? |
The following is for command-line console:
|
on second-thought, leave things as they are.. It looks good to merge now.. |
@jekyllbot: merge +site |
@jekyllbot: merge +site |
See #5630 for more details on the update.
@jekyll/documentation