From 54d7ac6e33b873cab7b4697d1c9fb05539646712 Mon Sep 17 00:00:00 2001 From: John Piasetzki Date: Sat, 25 May 2013 11:45:30 -0400 Subject: [PATCH 1/5] Combined two features into one --- features/step_definitions/jekyll_steps.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 696ddcb8..ec780d8b 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -31,14 +31,13 @@ Given /^I have an? "(.*)" file that contains "(.*)"$/ do |file, text| end end -Given /^I have a (.*) layout that contains "(.*)"$/ do |layout, text| - File.open(File.join('_layouts', layout + '.html'), 'w') do |f| - f.write(text) +Given /^I have an? (.*) (layout|theme) that contains "([^"]+)"$/ do |name, type, text| + folder = if (type == 'layout') + '_layouts' + else + '_theme' end -end - -Given /^I have a (.*) theme that contains "(.*)"$/ do |layout, text| - File.open(File.join('_theme', layout + '.html'), 'w') do |f| + File.open(File.join(folder, name + '.html'), 'w') do |f| f.write(text) end end From 240bcccd2f705a1a37c6fa4bb12380b4499f8d7a Mon Sep 17 00:00:00 2001 From: John Piasetzki Date: Sat, 25 May 2013 16:32:36 -0400 Subject: [PATCH 2/5] Remove extra parentheses and swapped regex back --- features/step_definitions/jekyll_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index ec780d8b..3ca8088b 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -31,8 +31,8 @@ Given /^I have an? "(.*)" file that contains "(.*)"$/ do |file, text| end end -Given /^I have an? (.*) (layout|theme) that contains "([^"]+)"$/ do |name, type, text| - folder = if (type == 'layout') +Given /^I have an? (.*) (layout|theme) that contains "(.*)"$/ do |name, type, text| + folder = if type == 'layout' '_layouts' else '_theme' From 990d13cb179089359495f6c6d143061b18a546c2 Mon Sep 17 00:00:00 2001 From: Phil Leggetter Date: Fri, 7 Jun 2013 11:54:01 +0100 Subject: [PATCH 3/5] Moving Quick-start guide to own section As a new user to jekyll I wanted to get up and running as quickly as possible. The first thing I did was jump to the docs (missing the example on the homepage - my bad) and look for the quick start guide. Since I couldn't find one I went for the 'Basic Usage' section. I ended up muddling around for about 10 minutes until I hit the home page again to see the simple - and very easy - example of how to get started. So, in this pull request I've moved the Quick-start Guide out to it's own section so that users who really are impatient (like me) can clearly look for and jump to the quick start guide, follow the super-easy steps, and be up and running in a matter of minutes. Interested to hear if this is thought of as being a good idea. --- site/_includes/docs_contents.html | 3 +++ site/_includes/docs_contents_mobile.html | 1 + site/docs/index.md | 18 +----------------- site/docs/installation.md | 2 +- site/docs/quickstart.md | 21 +++++++++++++++++++++ 5 files changed, 27 insertions(+), 18 deletions(-) create mode 100644 site/docs/quickstart.md diff --git a/site/_includes/docs_contents.html b/site/_includes/docs_contents.html index 29c64c78..6654abb4 100644 --- a/site/_includes/docs_contents.html +++ b/site/_includes/docs_contents.html @@ -5,6 +5,9 @@
  • Welcome
  • +
  • + Quick-start guide +
  • Installation
  • diff --git a/site/_includes/docs_contents_mobile.html b/site/_includes/docs_contents_mobile.html index 30446d4d..f2fe6c5b 100644 --- a/site/_includes/docs_contents_mobile.html +++ b/site/_includes/docs_contents_mobile.html @@ -3,6 +3,7 @@ + diff --git a/site/docs/index.md b/site/docs/index.md index 5129643a..56571186 100644 --- a/site/docs/index.md +++ b/site/docs/index.md @@ -1,7 +1,7 @@ --- layout: docs title: Welcome -next_section: installation +next_section: quickstart permalink: /docs/home/ --- @@ -24,22 +24,6 @@ behind [GitHub Pages](http://pages.github.com), which means you can use Jekyll to host your project’s page, blog, or website from GitHub’s servers **for free**. -## Quick-start guide - -For the impatient, here's how to get a boilerplate Jekyll site up and running. - -{% highlight bash %} -~ $ gem install jekyll -~ $ jekyll new myblog -~ $ cd myblog -~/myblog $ jekyll serve -# => Now browse to http://localhost:4000 -{% endhighlight %} - -That's nothing, though. 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. - ## ProTips™, Notes, and Warnings Throughout this guide there are a number of small-but-handy pieces of diff --git a/site/docs/installation.md b/site/docs/installation.md index 1ba2fc3b..e559f330 100644 --- a/site/docs/installation.md +++ b/site/docs/installation.md @@ -1,7 +1,7 @@ --- layout: docs title: Installation -prev_section: home +prev_section: quickstart next_section: usage permalink: /docs/installation/ --- diff --git a/site/docs/quickstart.md b/site/docs/quickstart.md new file mode 100644 index 00000000..f7ee7b4e --- /dev/null +++ b/site/docs/quickstart.md @@ -0,0 +1,21 @@ +--- +layout: docs +title: Quick-start guide +prev_section: home +next_section: installation +permalink: /docs/quickstart/ +--- + +For the impatient, here's how to get a boilerplate Jekyll site up and running. + +{% highlight bash %} +~ $ gem install jekyll +~ $ jekyll new myblog +~ $ cd myblog +~/myblog $ jekyll serve +# => Now browse to http://localhost:4000 +{% endhighlight %} + +That's nothing, though. 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. \ No newline at end of file From 6850aa809465fe60fa9c15972a64684bd78b428f Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Sat, 8 Jun 2013 12:47:34 -0500 Subject: [PATCH 4/5] Update history to reflect merge of #1151 --- History.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/History.markdown b/History.markdown index 4c0298cb..99737666 100644 --- a/History.markdown +++ b/History.markdown @@ -3,6 +3,9 @@ ### Major Enhancements ### Minor Enhancements ### Bug Fixes +### Development Fixes + * Merge the theme and layout cucumber steps into one step (#1151) + ### Site Enhancements * Add "History" page. * Restructured docs sections to include "Meta" section. From 1374a6354290a08167f040d33a0d0b8be0b1a699 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Sat, 8 Jun 2013 12:50:43 -0500 Subject: [PATCH 5/5] Update history to reflect merge of #1191 --- History.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/History.markdown b/History.markdown index 99737666..9a517b62 100644 --- a/History.markdown +++ b/History.markdown @@ -13,6 +13,7 @@ to use Pygments. (#1182) * Update link to the official Maruku repo (#1175) * Add documentation about `paginate_path` to "Templates" page in docs (#1129) + * Give the quick-start guide its own page (#1191) ### Development Fixes