Skip to content

Commit cf972b4

Browse files
committed
started a todo list and added a style so I can easily see what chapters I havent done yet
1 parent ec27d50 commit cf972b4

File tree

3 files changed

+20
-77
lines changed

3 files changed

+20
-77
lines changed

TODO.markdown

+12-72
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,20 @@
1-
=Maint Tasks
1+
# Maint Tasks #
22

33
* pre-processors:
44
- linkgit:(command)
5-
6-
* Generate HTML only output - one page per chapter
5+
- gitcasts links working (stripped from pdf)
6+
7+
* link pdf to html page for downloading
8+
- generate cover page for pdf
79

810

9-
=Content
11+
## Content To-Do ##
1012

11-
===Introduction
12-
13-
* Git Object DB Basics (Git vs SVN, what is a DAG)
14-
* The Git Index
15-
* Git directory and working directory
16-
17-
===First Time
13+
* Clean up the intro (blobs, etc)
14+
* Link gitcasts everywhere
1815

16+
* Terms Page
17+
* Git Directory and Working Directory
1918
* Installing Git
20-
* Setup and Initialization
21-
22-
===Basic Usage
23-
24-
* Normal Workflow
25-
* Basic Branching and Merging
26-
* Reviewing History – Git Log
27-
* Comparing Commits – Git Diff
28-
* Distributed Workflows – clone, fetch, push
29-
* Git Tag
30-
31-
===Intermediate Usage
32-
33-
* Rebasing
34-
* Interactive Rebasing
35-
* Interactive Adding
36-
* Stashing
37-
* Git Treeishes
38-
* Tracking Branches
39-
* Finding in Git – git grep
40-
* Advanced Git Log
41-
* Re-doing – git reset and revert
42-
* Maintaining Git – gc and prune, fsck
43-
* Setting up a Public Repo – git, http/s, ssh, gitosis
44-
* Git Workflows
45-
46-
===Advanced Git
47-
48-
* Creating New Empty Branches
49-
* Advanced Branching and Merging
50-
* Finding Issues – Git Bisect
51-
* Finding Issues – Git Blame
52-
* Git and Email – git-am, git-format-patch
53-
* Customizing Git – git config
54-
* Git Hooks
55-
* Git Recovery – corrupted blob objects
56-
* Advanced Merging – multiway, merge subtree
57-
58-
===Working With Git
59-
60-
* Git on Windows
61-
* Stacked Git – stgit, guilt
62-
* Capistrano and Git
63-
* Subversion Integration
64-
* Subversion Migration
65-
* Graphical Git – gitgui
66-
* Hosting Git – Gitorious, GitHub
67-
* Alternative Uses of Git – TicGit
68-
* Alternative Uses of Git – Content Distribution
69-
* Ruby and Git – grit, gruby, Ruby/Git
70-
* Git and Editors (Textmate, Eclipse, etc)
71-
72-
===Internals and Plumbing
73-
74-
* How Git Stores Objects (loose and packed)
75-
* Browsing Git Objects - cat-file, ls-tree, gitk
76-
* Git References - update-ref
77-
* The Git Index – ls-files
78-
* Working with Packfiles unpack, listing pack contents
79-
* Raw Git git read-tree, write-tree
80-
19+
* More on Diff
20+
*

assets/stylesheets/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ img.book { border: 1px solid #666; }
5454
#new-to-git h3 small { color: #eee; font-weight: normal; font-size: 70%;}
5555

5656
a.chapter-link { font-size: 120%; }
57+
a.todo { color: #888 !important; }
5758

5859
table tr td { vertical-align: top;}
5960

script/html.rb

+7-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
puts "\t" + chtitle.strip
5555
filename = count.to_s + '_' + chtitle.strip.downcase.gsub(' ', '_') + '.html'
5656
body = "<h2>#{chtitle}</h2>" + chapter
57-
chlinks << [chtitle.strip, filename]
57+
chlinks << [chtitle.strip, filename, body.size]
5858
chapter_files << [chtitle.strip, filename, body]
5959
end
6060
links << [title.strip, chlinks]
@@ -85,9 +85,10 @@
8585
links[0,4].each do |section_title, section_array|
8686
toc.h3(:class => 'title') { toc << section_title }
8787
toc.table do
88-
section_array.each do |chapter_title, chapter_file|
88+
section_array.each do |chapter_title, chapter_file, chsize|
8989
toc.tr { toc.td {
90-
toc.a(:href => chapter_file, :class => 'chapter-link') << chapter_title
90+
(chsize > 300) ? extra = 'done' : extra = 'todo'
91+
toc.a(:href => chapter_file, :class => "chapter-link #{extra}") << chapter_title
9192
}}
9293
end
9394
end
@@ -97,9 +98,10 @@
9798
links[4,3].each do |section_title, section_array|
9899
toc.h3(:class => 'title') { toc << section_title }
99100
toc.table do
100-
section_array.each do |chapter_title, chapter_file|
101+
section_array.each do |chapter_title, chapter_file, chsize|
101102
toc.tr { toc.td {
102-
toc.a(:href => chapter_file, :class => 'chapter-link') << chapter_title
103+
(chsize > 300) ? extra = 'done' : extra = 'todo'
104+
toc.a(:href => chapter_file, :class => "chapter-link #{extra}") << chapter_title
103105
}}
104106
end
105107
end

0 commit comments

Comments
 (0)