Browse code

updated readme to explain configuration, usage, and customization

B Mathis authored on 01/11/2009 at 05:17:17
Showing 3 changed files
... ...
@@ -1,6 +1,11 @@
1 1
 # What is Octopress?
2 2
 Octopress gives developers a well designed starting point for a Jekyll blog. It's easy to configure and easy to deploy. Sweet huh?
3 3
 
4
+#### Octopress comes with
5
+1. A nice easy to configure theme that focuses on readability.
6
+2. Built in support for Twitter, Delicious, and Disqus Comments.
7
+3. Rake tasks that make development fast, and deployment easy.
8
+
4 9
 ## Why?
5 10
 1. Building a Jekyll blog from scratch is a lot of work.
6 11
 2. Jekyll doesn't have default layouts or themes.
... ...
@@ -8,10 +13,10 @@ Octopress gives developers a well designed starting point for a Jekyll blog. It'
8 8
 
9 9
 ## Octopress is made of
10 10
 - [Jekyll](http://github.com/henrik/jekyll) a blog aware static site generator (Henrik's fork adds [HAML](http://haml-lang.com) support)
11
-- [Compass](http://compass-style.org) an awesome [SASS](http://sass-lang.com) framework.
12
-- [FSSM](http://github.com/ttilley/fssm/tree/master) + a rake task, automatically regenerates the blog as you work.
11
+- [Compass](http://compass-style.org) an awesome [SASS](http://sass-lang.com) framework
12
+- [FSSM](http://github.com/ttilley/fssm/tree/master) + a rake task, automatically regenerates the blog as you work
13 13
 - [Serve](http://github.com/jlong/serve) for live previews of the site while in development
14
-- [Rsync](http://samba.anu.edu.au/rsync/) for easy deployment.
14
+- [Rsync](http://samba.anu.edu.au/rsync/) for easy deployment
15 15
 
16 16
 ## Setup
17 17
 #### First, clone Octopress locally.
... ...
@@ -24,18 +29,43 @@ Octopress gives developers a well designed starting point for a Jekyll blog. It'
24 24
 
25 25
 #### Third
26 26
 1. Edit the top of the Rakefile settings to match your web hosting info.
27
-2. Edit the top of the atom.haml and _layout/default.haml
27
+2. Edit the top of the atom.haml and _layout/default.haml.
28 28
 
29 29
 ## Usage
30 30
 You should really read over the [Jekyll wiki](http://wiki.github.com/mojombo/jekyll) because most of your work will be using Jekyll. Beyond that Octopress is mostly some rake tasks, HAML, and SASS/Compass that has been meticulously crafted for ease of use and modification.
31 31
 
32
-### Rake tasks
33
-rake preview: Generates the site, starts the local web server, and opens your browser to show the generated site.
32
+### Common Rake tasks
33
+**rake preview**: Generates the site, starts the local web server, and opens your browser to show the generated site.
34
+
35
+**rake watch**: Watches the source for changes and regenerates the site every time you save a file. You'll forget your working with a static site.
36
+
37
+**rake deploy**: Generates the site and then uses rsync (based on your configurations in the Rakefile) to synchronize with your web host. In order to use rsync you'll need shell access to your host, and you'll probably want to use your public key for authentication.
38
+
39
+**rake stop_serve**: Kills the local web server process.
40
+
41
+*There are more but these are the ones you'll use the most. Read the Rakefile if you want to learn more*
42
+
43
+## Style Configuration
44
+### What you need to know
45
+Octopress's stylesheets are written in [SASS](http://sass-lang.com). If you haven't learned SASS, you should. It's the future. Octopress also uses [Compass](http://compass-style.org) which is a framework for SASS and contains a great library of SASS mixins which make it trivial to write complicated CSS. This is also the future.
46
+
47
+### Customizing the default theme
48
+The default theme is comprised of Layout, Typography, Theme, and Partials. Octopress also has a library of mixins that act like SASS helpers for styling tasks.
49
+
50
+#### Layout
51
+Edit the variables at the top of /stylesheets/_layout.sass to configure the primary structural dimensions, including the header, footer, main content, and sidebar.
52
+
53
+#### Typography
54
+Octopress puts a strong focus on readability and borrows some concepts from the [better web readability project](http://code.google.com/p/better-web-readability-project/). As a result the base font size is 16px. Don't worry though, if you don't like that, you can simply change the variable !base\_font\_size at the top of /stylesheets/_typography.sass and all of the other typographic math (heading sizes, line-heights, margins, etc) will be resized to suit automatically.
55
+
56
+If you want to add or modify site-wide typography, this is the file to do it in. If your changes are specific to a small section or feature of your site, you should probably add that under *Partials*.
34 57
 
35
-rake watch: Watches the source for changes and regenerates the site every time you save a file. You'll forget your working with a static site.
58
+Octopress ships with a typography test page /test/typography.html that lets you preview the default typographic styles, and see how your changes affect them.
36 59
 
37
-rake deploy: Generates the site and then uses rsync (based on your configurations in the Rakefile) to synchronize with your web host. In order to use rsync you'll need shell access to your host, and you'll probably want to use your public key for authentication.
60
+#### Theme
61
+Every color used in Octopress is assigned to a variable in _theme.sass, so you can change them to suit your tastes without having to dig through a bunch of files to find the color your looking for. Also the colors variables are grouped by their location in the site layout to make them easier to find.
38 62
 
39
-rake stop_serve: Kills the local web server process.
63
+#### Partials
64
+These are the styles for subsections of the site. They're located in /stylesheets/partials and each subsection has it's own file. Here you'll find styles for the sidebar, blog posts, syntax highlighting, and specific page elements that don't belong in the base layout files.
40 65
 
41
-*There are more but these are the ones you'll use the most. Read the Rakefile if you want to learn more*
42 66
\ No newline at end of file
67
+Octopress ships with a syntax highlighting test page /test/syntax.html that lets you preview the default syntax highlighting styles, and see how your changes affect them.
43 68
\ No newline at end of file
44 69
deleted file mode 100644
... ...
@@ -1,116 +0,0 @@
1
-layout: default
2
-title: Typography Debug
3
-
4
-%h1 Level 01 Heading
5
-%h2 Level 02 Heading
6
-%h3 Level 03 Heading
7
-%h4 Level 04 Heading
8
-%h5 Level 05 Heading
9
-%h6 Level 06 Heading
10
-
11
-%p
12
-  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce sodales ligula sed urna. Aliquam posuere arcu
13
-  viverra erat. Pellentesque et enim dapibus ante facilisis bibendum. Nam congue dapibus urna. Vestibulum consequat
14
-  arcu at magna. Nunc faucibus mollis lacus. Nulla tempor luctus tellus. Donec blandit lobortis pede. Vestibulum
15
-  vel pede ut urna eleifend lacinia.
16
-%p
17
-  Maecenas ligula nibh, imperdiet at, interdum eget, sagittis eu, enim. Vivamus vel urna. Donec fringilla
18
-  ullamcorper sem. In risus arcu, pellentesque cursus, faucibus cursus, consequat quis, est. Aliquam id erat.
19
-  Aliquam arcu. Phasellus vulputate. Integer sem diam, mattis vel, viverra ullamcorper, ultricies quis, nisl. Sed
20
-  sollicitudin quam ut nisi. Vivamus velit sapien, volutpat eu, faucibus id, nonummy id, urna.
21
-%p
22
-  Take it<sub>2</sub> to the power of<sup>3</sup>
23
-  Praesent iaculis pellentesque est. Nulla facilisi. Etiam fringilla vehicula orci. Aliquam fermentum ipsum id
24
-  nulla. Aliquam interdum laoreet leo. Cras accumsan. Nam pharetra diam id nunc. Integer blandit tellus vulputate
25
-  felis. Cras aliquam, eros in euismod aliquam, enim nisl mollis metus, quis fringilla ipsum diam ut pede. Mauris a
26
-  libero ac velit interdum pulvinar. Nunc ipsum mauris, semper rhoncus, feugiat ut, egestas id, diam. Nullam
27
-  porttitor condimentum risus. Vivamus nec enim eget nisi commodo euismod. Ut turpis. Nullam malesuada rutrum
28
-  neque. Nam sodales porta elit. Mauris mollis nisl vel augue.
29
-
30
-%p
31
-  And we were like <q>Woah</q>, and he was like <q>Woah</q>, and they were like <q>WOAH!</q>
32
-
33
-%p
34
-  %abbr(title="For The Win!") FTW!
35
-%p
36
-  
37
-%h3 Unordered lists
38
-%ul
39
-  %li Lorem ipsum dolor sit amet
40
-  %li Consectetur adipisicing elit
41
-  %li Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
42
-  %li Ut enim ad minim veniam
43
-
44
-%h3 Ordered lists
45
-%ol
46
-  %li Consectetur adipisicing elit
47
-  %li Sed do eiusmod tempor incididunt ut labore
48
-  %li Et dolore magna aliqua
49
-  
50
-%h3 Blockquotes
51
-%blockquote
52
-  %p
53
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
54
-    magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
55
-    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
56
-    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
57
-
58
-%h3 Tables
59
-%table
60
-  %caption
61
-    Jimi Hendrix - albums
62
-    %thead
63
-      %tr
64
-        %th Album
65
-        %th Year
66
-        %th Price
67
-    %tfoot
68
-      %tr
69
-        %td Album
70
-        %td Year
71
-        %td Price
72
-    %tbody
73
-      %tr
74
-        %td Are You Experienced
75
-        %td 1967
76
-        %td $10.00
77
-      %tr
78
-        %td Axis: Bold as Love
79
-        %td 1967
80
-        %td $12.00
81
-      %tr
82
-        %td Electric Ladyland
83
-        %td 1968
84
-        %td $10.00
85
-      %tr
86
-        %td Band of Gypsys
87
-        %td 1970
88
-        %td $12.00
89
-%p
90
-  %a(href="#")Link
91
-  %br/
92
-  %strong &lt;strong&gt;
93
-  %br/
94
-  %del &lt;del&gt; deleted
95
-  %br/
96
-  %dfn &lt;dfn&gt; dfn
97
-  %br/
98
-  %em &lt;em&gt; emphasis
99
-  %br/
100
-
101
-%pre
102
-  %code
103
-    &lt;html&gt;
104
-    &lt;head&gt;
105
-    &lt;/head&gt;
106
-    &lt;body&gt;
107
-    &lt;div class = "main"&gt; &lt;div&gt;
108
-    &lt;/body&gt;
109
-    &lt;/html&gt;
110
-
111
-%tt
112
-  &lt;tt&gt;
113
-  Pellentesque tempor, dui ut ultrices viverra, neque urna blandit nisi, id accumsan dolor est vitae risus.
114
-%hr
115 1
\ No newline at end of file
116 2
new file mode 100644
... ...
@@ -0,0 +1,116 @@
0
+---
1
+layout: default
2
+title: Typography Debug
3
+---
4
+
5
+%h1 Level 01 Heading
6
+%h2 Level 02 Heading
7
+%h3 Level 03 Heading
8
+%h4 Level 04 Heading
9
+%h5 Level 05 Heading
10
+%h6 Level 06 Heading
11
+
12
+%p
13
+  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce sodales ligula sed urna. Aliquam posuere arcu
14
+  viverra erat. Pellentesque et enim dapibus ante facilisis bibendum. Nam congue dapibus urna. Vestibulum consequat
15
+  arcu at magna. Nunc faucibus mollis lacus. Nulla tempor luctus tellus. Donec blandit lobortis pede. Vestibulum
16
+  vel pede ut urna eleifend lacinia.
17
+%p
18
+  Maecenas ligula nibh, imperdiet at, interdum eget, sagittis eu, enim. Vivamus vel urna. Donec fringilla
19
+  ullamcorper sem. In risus arcu, pellentesque cursus, faucibus cursus, consequat quis, est. Aliquam id erat.
20
+  Aliquam arcu. Phasellus vulputate. Integer sem diam, mattis vel, viverra ullamcorper, ultricies quis, nisl. Sed
21
+  sollicitudin quam ut nisi. Vivamus velit sapien, volutpat eu, faucibus id, nonummy id, urna.
22
+%p
23
+  Take it<sub>2</sub> to the power of<sup>3</sup>
24
+  Praesent iaculis pellentesque est. Nulla facilisi. Etiam fringilla vehicula orci. Aliquam fermentum ipsum id
25
+  nulla. Aliquam interdum laoreet leo. Cras accumsan. Nam pharetra diam id nunc. Integer blandit tellus vulputate
26
+  felis. Cras aliquam, eros in euismod aliquam, enim nisl mollis metus, quis fringilla ipsum diam ut pede. Mauris a
27
+  libero ac velit interdum pulvinar. Nunc ipsum mauris, semper rhoncus, feugiat ut, egestas id, diam. Nullam
28
+  porttitor condimentum risus. Vivamus nec enim eget nisi commodo euismod. Ut turpis. Nullam malesuada rutrum
29
+  neque. Nam sodales porta elit. Mauris mollis nisl vel augue.
30
+
31
+%p
32
+  And we were like <q>Woah</q>, and he was like <q>Woah</q>, and they were like <q>WOAH!</q>
33
+
34
+%p
35
+  %abbr(title="For The Win!") FTW!
36
+%p
37
+  
38
+%h3 Unordered lists
39
+%ul
40
+  %li Lorem ipsum dolor sit amet
41
+  %li Consectetur adipisicing elit
42
+  %li Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
43
+  %li Ut enim ad minim veniam
44
+
45
+%h3 Ordered lists
46
+%ol
47
+  %li Consectetur adipisicing elit
48
+  %li Sed do eiusmod tempor incididunt ut labore
49
+  %li Et dolore magna aliqua
50
+  
51
+%h3 Blockquotes
52
+%blockquote
53
+  %p
54
+    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
55
+    magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
56
+    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
57
+    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
58
+
59
+%h3 Tables
60
+%table
61
+  %caption
62
+    Jimi Hendrix - albums
63
+    %thead
64
+      %tr
65
+        %th Album
66
+        %th Year
67
+        %th Price
68
+    %tfoot
69
+      %tr
70
+        %td Album
71
+        %td Year
72
+        %td Price
73
+    %tbody
74
+      %tr
75
+        %td Are You Experienced
76
+        %td 1967
77
+        %td $10.00
78
+      %tr
79
+        %td Axis: Bold as Love
80
+        %td 1967
81
+        %td $12.00
82
+      %tr
83
+        %td Electric Ladyland
84
+        %td 1968
85
+        %td $10.00
86
+      %tr
87
+        %td Band of Gypsys
88
+        %td 1970
89
+        %td $12.00
90
+%p
91
+  %a(href="#")Link
92
+  %br/
93
+  %strong &lt;strong&gt;
94
+  %br/
95
+  %del &lt;del&gt; deleted
96
+  %br/
97
+  %dfn &lt;dfn&gt; dfn
98
+  %br/
99
+  %em &lt;em&gt; emphasis
100
+  %br/
101
+
102
+%pre
103
+  %code
104
+    &lt;html&gt;
105
+    &lt;head&gt;
106
+    &lt;/head&gt;
107
+    &lt;body&gt;
108
+    &lt;div class = "main"&gt; &lt;div&gt;
109
+    &lt;/body&gt;
110
+    &lt;/html&gt;
111
+
112
+%tt
113
+  &lt;tt&gt;
114
+  Pellentesque tempor, dui ut ultrices viverra, neque urna blandit nisi, id accumsan dolor est vitae risus.
115
+%hr
0 116
\ No newline at end of file