From e771fe940dca665bcbe195eb59f3cdaa011c541f Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Fri, 22 Jul 2011 17:49:01 -0400 Subject: [PATCH] updated and reorganized docs --- Rakefile | 3 +- source/_includes/head.html | 7 +- source/_posts | 1 - .../2011-07-22-octopress-20-surfaces.markdown | 15 ++++ source/docs/blogging/code/index.markdown | 85 ++----------------- source/docs/blogging/index.markdown | 40 +++++---- source/docs/blogging/plugins/index.markdown | 19 ++++- source/docs/index.markdown | 48 +++++------ .../index.markdown} | 0 .../index.markdown} | 0 source/docs/plugins/codeblock.markdown | 8 -- source/docs/plugins/codeblock/index.markdown | 48 +++++++++++ source/docs/plugins/compass_compiler.markdown | 8 -- .../index.markdown} | 0 source/docs/plugins/gist-tag/index.markdown | 26 ++++++ source/docs/plugins/gist_tag.markdown | 8 -- source/docs/plugins/haml_converter.markdown | 8 -- .../docs/plugins/include-code/index.markdown | 29 +++++++ source/docs/plugins/include_code.markdown | 8 -- .../index.markdown} | 0 .../index.markdown} | 0 source/docs/plugins/pygments_cache.markdown | 8 -- .../index.markdown} | 0 source/docs/plugins/sitemap.markdown | 8 -- source/docs/plugins/titlecase.markdown | 8 -- 25 files changed, 192 insertions(+), 193 deletions(-) delete mode 120000 source/_posts create mode 100644 source/_posts/2011-07-22-octopress-20-surfaces.markdown rename source/docs/plugins/{blockquote.markdown => blockquote/index.markdown} (100%) rename source/docs/plugins/{category_generator.markdown => category-generator/index.markdown} (100%) delete mode 100644 source/docs/plugins/codeblock.markdown create mode 100644 source/docs/plugins/codeblock/index.markdown delete mode 100644 source/docs/plugins/compass_compiler.markdown rename source/docs/plugins/{figure_tag.markdown => figure-tag/index.markdown} (100%) create mode 100644 source/docs/plugins/gist-tag/index.markdown delete mode 100644 source/docs/plugins/gist_tag.markdown delete mode 100644 source/docs/plugins/haml_converter.markdown create mode 100644 source/docs/plugins/include-code/index.markdown delete mode 100644 source/docs/plugins/include_code.markdown rename source/docs/plugins/{filters.markdown => octopress-filters/index.markdown} (100%) rename source/docs/plugins/{pullquote.markdown => pullquote/index.markdown} (100%) delete mode 100644 source/docs/plugins/pygments_cache.markdown rename source/docs/plugins/{render_partial.markdown => render-partial/index.markdown} (100%) delete mode 100644 source/docs/plugins/sitemap.markdown delete mode 100644 source/docs/plugins/titlecase.markdown diff --git a/Rakefile b/Rakefile index c1abfdf..061b705 100644 --- a/Rakefile +++ b/Rakefile @@ -59,12 +59,13 @@ end desc "Begin a new post in #{source_dir}/#{posts_dir}" task :new_post, :title do |t, args| require './plugins/titlecase.rb' + mkdir_p "#{source_dir}/#{posts_dir}" args.with_defaults(:title => 'new-post') title = args.title filename = "#{source_dir}/#{posts_dir}/#{Time.now.strftime('%Y-%m-%d')}-#{title.downcase.gsub(/&/,'and').gsub(/[,'":\?!\(\)\[\]]/,'').gsub(/[\W\.]/, '-').gsub(/-+$/,'')}.#{new_post_ext}" puts "Creating new post: #{filename}" open(filename, 'w') do |post| - system "mkdir -p #{source_dir}/#{posts_dir}"; + system "mkdir -p #{source_dir}/#{posts_dir}/"; post.puts "---" post.puts "layout: post" post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\"" diff --git a/source/_includes/head.html b/source/_includes/head.html index 34fb222..1b04754 100644 --- a/source/_includes/head.html +++ b/source/_includes/head.html @@ -22,10 +22,11 @@ - + + - - + + {% include google_analytics.html %} {% include google_plus_one.html %} diff --git a/source/_posts b/source/_posts deleted file mode 120000 index 6719156..0000000 --- a/source/_posts +++ /dev/null @@ -1 +0,0 @@ -/Users/bmathis/Dropbox/octopress/_assets/source/_posts \ No newline at end of file diff --git a/source/_posts/2011-07-22-octopress-20-surfaces.markdown b/source/_posts/2011-07-22-octopress-20-surfaces.markdown new file mode 100644 index 0000000..116033b --- /dev/null +++ b/source/_posts/2011-07-22-octopress-20-surfaces.markdown @@ -0,0 +1,15 @@ +--- +layout: post +title: "Octopress 2.0 Surfaces" +date: 2011-07-22 14:44 +comments: true +categories: release +--- + +Octopress is a framework designed for Jekyll, the static blogging engine powering Github Pages. So what is Jekyll? + +{% blockquote Jekyll Wiki https://github.com/mojombo/jekyll/wiki/Usage %} +Jekyll at its core is a text transformation engine. The concept behind the system is this: you give it text written in your favorite markup language, be that Markdown, Textile, or just plain HTML, and it churns that through a layout or series of layout files. Throughout that process you can tweak how you want the site URLs to look, what data gets displayed on the layout and more. +{% endblockquote %} + + diff --git a/source/docs/blogging/code/index.markdown b/source/docs/blogging/code/index.markdown index 0166cec..7c99583 100644 --- a/source/docs/blogging/code/index.markdown +++ b/source/docs/blogging/code/index.markdown @@ -28,86 +28,11 @@ them to the Vim rendered versions. Check out the [test page](/docs/blogging/code/test) to see the results. -## Gist Code embedding -All you need is the gist's id and you can easily embed it in your page. This actually downloads a cache of the gist and embeds it in a `