Skip to content

Commit

Permalink
toc
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmachine committed Oct 22, 2014
1 parent 141d941 commit 3b8cc15
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 16 deletions.
13 changes: 9 additions & 4 deletions content/assets/stylesheets/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ input[type=submit] {
color: $main-color-accent;
@include adjust-font-size-to(36px, 1, 60px);
}
a, a:hover, a:visited {
color: white;
span {
color: $main-color-accent;
}
}
}
.subtitle {
@include adjust-font-size-to(20px, 1);
Expand Down Expand Up @@ -130,10 +136,6 @@ code {
}


ol a {
color: #666;
}

.twitter-share-button {
margin-top: 2px;
}
Expand All @@ -154,6 +156,9 @@ ol a {
background: #70b1dc;
@include trailer;
}
ol a {
color: #666;
}
}


Expand Down
41 changes: 41 additions & 0 deletions content/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,25 @@ things:
- It eschews "real-world" examples in favor of more interesting
exercises like "assaulting hobbits" and "tracking glittery vampires"

<a name="toc"></a>

By the end, you'll be able to use Clojure, one of the most exciting
and fun programming languages in existence!

## TOC at a Glance

1. [Building, Running, and The REPL](/getting-started/)
2. [Start Using Emacs](/basic-emacs/)
3. [Using Emacs with Clojure](/using-emacs-with-clojure/)
4. [Do Things](/do-things/)
5. [Core Functions in Depth](/core-functions-in-depth/)
6. [Functional Programming](/functional-programming/)
7. [Organizing Your Project: a Librarian's Tale](/organization/)
8. [Clojure Alchemy: Reading, Evaluation, and Macros](/read-and-eval/)
9. [Writing Macros](/writing-macros/)
10. [Concurrency, Parallelism, and State. And Zombies.](/concurrency/)
11. [Interacting with Java](/java/)

## Part 1: Environment Setup

In order to stay motivated and learn efficiently, you need to be able
Expand Down Expand Up @@ -126,6 +142,12 @@ functional programming mindset.

[Read "Functional Programming"](/functional-programming/)

### Project Organization

This chapter shows you how to use namespaces to organize your code.

[Read "Organizing Your Project: a Librarian's Tale"](/organization/)

### Clojure Alchemy: Reading, Evaluation, and Macros

In this chapter, we'll take a step back and describe how Clojure runs
Expand All @@ -144,3 +166,22 @@ make-believe caps, pretending that we run an online potion store and
using macros to validate customer orders.

[Read "Writing Macros"](/writing-macros/)


## Part 3: Extra-Fun Topics

Here you'll dig learn about Clojure's more advanced topics. They're
super fun!

### Concurrency, Parallelism, and State. And Zombies.

In this chapter you'll learn what concurrency and parallelism are and why they matter. You'll learn about the challenges you'll face when writing parallel programs and about how Clojure's design helps to mitigate them. Finally, you'll learn a big boatload of tools and techniques for writing parallel programs yourself, including: futures, promises, delays, atoms, refs, vars, pmap, and core.reducers. Also, there will be zombies. Onward!

[Read "Concurrency, Parallelism, and State. And Zombies."](/concurrency/)


### Interacting with Java

This chapter is like a cross between a phrasebook and cultural introduction for the Land of Java. It will give you an overview of what the JVM is, how it runs programs, and how to compile programs for it. It will also give you a brief tour of frequently-used Java classes and methods and explain how to interact with them from Clojure. More than that, it will show you how to think about and understand Java so that you can incorporate any Java library into your Clojure program.

[Read "Interacting with Java"](/java/)
21 changes: 9 additions & 12 deletions layouts/default.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
.masthead
.container
.title
CLOJURE
%span> for the
BRAVE
%span> and
TRUE
%a{:href => "/"}
CLOJURE
%span> for the
&nbsp;BRAVE
%span> and
&nbsp;TRUE
.subtitle
%span a practical book for stouthearted beginners
.lambda
Expand Down Expand Up @@ -50,15 +51,13 @@

%a{:href => relative_path_to(i)}
&larr;
%a{:href => "/"} &uarr;
%a{:href => "/#toc"} &uarr;
- if i = @items[index + 1]
%a{:href => relative_path_to(i)}
&rarr;
%li.chapters
%select
- chapters.each do |i|
%option{:selected => (i == @item ? "selected" : nil)}
Chapter X
%form#search{:action => "/search/"}
%input#tipue_search_input{:name => "q", :type => "search", :placeholder => "Search"}
%li
%a.buy{:href => "https://leanpub.com/clojure-for-the-brave-and-true"} buy the ebook!!?!
%li.subscribe
Expand All @@ -73,8 +72,6 @@
.page.container
.chapter-nav
.wrapper
%form#search{:action => "/search/"}
%input#tipue_search_input{:name => "q", :type => "search", :placeholder => "Search"}
%ol
%li
%a{:href => "/organization/#1__Your_Project_as_a_Library"} 1. Your Project as a Library
Expand Down

0 comments on commit 3b8cc15

Please sign in to comment.