public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
Search Repo:
don't always wiki-link to the edit page, and allow [word] as wiki-link 
syntax as well.  better-looking headers within page content area and 
lists.
al3x (author)
Wed Mar 26 11:21:12 -0700 2008
commit  378318561db0c4040dd06ae285a4455e472e6657
tree    223f9b496718985a139108837c47a4c606595659
parent  3e255d9eec73ca85b24a9355fa93fd5c9afb8fb4
...
8
9
10
11
 
 
 
 
 
12
13
14
...
8
9
10
 
11
12
13
14
15
16
17
18
0
@@ -8,7 +8,11 @@ end
0
 
0
 class String
0
   def wiki_linked
0
- self.gsub!(/\b((?:[A-Z]\w+){2,})/) { |m| "<a href=\"/e/#{m}\">#{m}</a>" }
0
+ self.gsub!(/\b((?:[A-Z]\w+){2,})/) { |m| "<a href=\"/#{m}\">#{m}</a>" }
0
+ self.gsub!(/\[(\w+){2,}\]/) { |m|
0
+ m.gsub!(/(\[|\])/, '')
0
+ "<a href=\"/#{m}\">#{m}</a>"
0
+ }
0
     self
0
   end
0
 end
...
48
49
50
51
 
52
53
54
...
68
69
70
 
 
 
 
 
 
 
 
 
71
72
73
...
48
49
50
 
51
52
53
54
...
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
0
@@ -48,7 +48,7 @@ textarea {
0
 
0
 ul {
0
   list-style-type: square;
0
- padding: 0;
0
+ padding: 0 0 0 1.2em;
0
 }
0
 
0
 /* classes */
0
@@ -68,6 +68,15 @@ ul {
0
   padding: 10px 10px 2px 10px;
0
 }
0
 
0
+.content h1, .content h2, .content h3, .content h4 {
0
+ padding: 0 0 0 0;
0
+ margin: 0 0 0 0;
0
+}
0
+.content h1 { font-size: 2.4em; }
0
+.content h2 { font-size: 2.2em; }
0
+.content h3 { font-size: 2em; }
0
+.content h4 { font-size: 1.8em; }
0
+
0
 .delta {
0
   font-size: 1.1em;
0
   padding: 0;

Comments

    No one has commented yet.