junebug-wiki 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ = 0.0.20 2006-11-23
2
+
3
+ * Rake task to update local documentation (rake update:help)
4
+ * Documentation updates
5
+ * Version bugfix. Thanks DJ
6
+
1
7
  = 0.0.19 2006-11-22
2
8
 
3
9
  * *BE SURE TO READ THE RELEASE NOTES*
@@ -237,6 +237,12 @@ body {
237
237
  padding: 2px;
238
238
  }
239
239
 
240
+ .content code.clean {
241
+ /* font-family:"Bitstream Vera Sans Mono", "Monaco", "Courier", monospace;*/
242
+ background: #ffffff;
243
+ padding: 2px;
244
+ }
245
+
240
246
  .content pre code{
241
247
  padding: 0px;
242
248
  }
@@ -250,6 +256,14 @@ body {
250
256
  margin: 15px 0px;
251
257
  }
252
258
 
259
+ .content pre.clean {
260
+ display: block;
261
+ background: #ffffff;
262
+ border: 0px;
263
+ padding: 0;
264
+ margin: 0;
265
+ }
266
+
253
267
  /* http://longren.org/2006/09/27/wrapping-text-inside-pre-tags */
254
268
  /* Browser specific (not valid) styles to make preformatted text wrap */
255
269
  .content pre {
@@ -264,8 +278,9 @@ body {
264
278
  }
265
279
 
266
280
  .content th, .content td {
267
- padding: 2px 5px;
281
+ padding: 2px 5px 2px 5px;
268
282
  border: solid #eee;
283
+ vertical-align: top;
269
284
  }
270
285
 
271
286
  .content th {
@@ -1,148 +1,187 @@
1
- ---
2
- - updated_at: 2006-11-07 18:24:43 -08:00
3
- title: JunebugWiki
4
- readonly: true
5
- body: |
6
- h1. Welcome to Junebug!
7
-
8
- To complete setup of you new wiki, here are a few things you should do:
9
-
10
-
11
- h3. 1. Login to your account
12
-
13
- When you created this wiki, the username and password you submitted were used to set up an account for you. Now click the 'sign in' link at the upper right and sign in.
14
-
15
- Once you sign in you will see your username in the upper right corner.
16
-
17
-
18
- h3. 2. Set the start page
19
-
20
- This page will always be the default start page for a new wiki. Probably not what you want, right? Fortunately, it is easy to change. Open the config.yml file (in your wiki directory) with any texteditor, and change the startpage field to the page you want.
21
-
22
- Next, in your wiki directory, run the command:
23
-
24
- ruby wiki restart
25
-
26
- The next time you click on the 'Home' link in the nav bar, you will be taken to your new start page. If the page doesn't already exist, you will first be asked to login, and then you will be presented with an edit form to create the page.
27
-
28
-
29
- h3. 3. Create some pages!
30
-
31
- If you have any trouble, or need some help getting started, click on the 'Help' link in the nav bar. The documentation is pretty sparse right now, but I'm working on it!
32
-
33
- id: 1
34
- version: 1
35
- user_id: 1
36
- created_at: 2006-10-29 16:19:34 -08:00
37
- - updated_at: 2006-11-07 18:24:43 -08:00
38
- title: JunebugHelp
39
- readonly:
40
- body: This is a work in progress
41
- id: 2
42
- version: 1
43
- user_id: 1
44
- created_at: 2006-11-01 00:10:07 -08:00
45
- - updated_at: 2006-11-07 18:24:43 -08:00
46
- title: FormatTest
47
- readonly:
48
- body: |-
49
- See "this page":http://hobix.com/textile/ for the full range of formatting options
50
-
51
- h2. Headers
52
-
53
- h1. Header 1
54
-
55
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
56
-
57
- h2. Header 2
58
-
59
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
60
-
61
- h3. Header 3
62
-
63
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
64
-
65
- h4. Header 4
66
-
67
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
68
-
69
- h5. Header 5
70
-
71
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
72
-
73
- h2. Structural emphasis
74
-
75
- This is _emphasis_ (italic)
76
-
77
- This is *strong* (bold)
78
-
79
- This is @code@
80
-
81
- more code
82
- @difftext = diff( @v1_markup , @v2_markup)
83
-
84
- This is -deleted- text
85
-
86
- This is +inserted+ text
87
-
88
- Arbitrary style: I'm %{color:red}unaware% of most soft drinks.
89
-
90
-
91
- h2. Arbitrary html, pre, and code
92
-
93
- Inserting arbitrary html (pre/code)
94
-
95
- <pre><code>a.gsub!( /</, '' )</code></pre>
96
-
97
- Inserting arbitrary html (pre/code)
98
-
99
- <pre>
100
- <code>a.gsub!( /</, '' )</code>
101
- </pre>
102
-
103
- Arbitrary html (pre)
104
-
105
- <pre>
106
- a.gsub!( /</, '' )
107
- </pre>
108
-
109
- Code by indenting
110
-
111
- more code
112
- @difftext = diff( @v1_markup , @v2_markup)
113
-
114
- h2. Lists
115
-
116
- # A first item
117
- # A second item
118
- # A third
119
-
120
- # Fuel could be:
121
- ## Coal
122
- ## Gasoline
123
- ## Electricity
124
- # Humans need only:
125
- ## Water
126
- ## Protein
127
-
128
- * A first item
129
- * A second item
130
- * A third
131
-
132
- h2. External references
133
-
134
- This is a link: "Google":http://google.com
135
-
136
- Images: !/static/images/feed-icon-14x14.png!
137
-
138
-
139
- h2. Tables
140
-
141
- |_. name |_. age |_. sex |
142
- | joan | 24 | f |
143
- | archie | 29 | m |
144
- | bella | 45 | f |
145
- id: 3
146
- version: 1
147
- user_id: 1
148
- created_at: 2006-11-06 09:40:53 -08:00
1
+ ---
2
+ - updated_at: 2006-11-23 09:39:25 -08:00
3
+ title: JunebugWiki
4
+ readonly: true
5
+ body: |
6
+ h1. Welcome to Junebug!
7
+
8
+ To complete setup of you new wiki, here are a few things you should do:
9
+
10
+
11
+ h3. 1. Login to your account
12
+
13
+ When you created this wiki, the username and password you submitted were used to set up an account for you. Now click the 'sign in' link at the upper right and sign in.
14
+
15
+ Once you sign in you will see your username in the upper right corner.
16
+
17
+
18
+ h3. 2. Set the start page
19
+
20
+ This page will always be the default start page for a new wiki. Probably not what you want, right? Fortunately, it is easy to change. Open the config.yml file (in your wiki directory) with any texteditor, and change the startpage field to the page you want.
21
+
22
+ Next, in your wiki directory, run the command:
23
+
24
+ ruby wiki restart
25
+
26
+ The next time you click on the 'Home' link in the nav bar, you will be taken to your new start page. If the page doesn't already exist, you will first be asked to login, and then you will be presented with an edit form to create the page.
27
+
28
+
29
+ h3. 3. Create some pages!
30
+
31
+ If you have any trouble, or need some help getting started, click on the 'Help' link in the nav bar. The documentation is pretty sparse right now, but I'm working on it!
32
+
33
+ id: 1
34
+ version: 1
35
+ user_id: 1
36
+ created_at: 2006-10-29 16:19:34 -08:00
37
+ - updated_at: 2006-11-23 12:08:56 -08:00
38
+ title: JunebugHelp
39
+ readonly:
40
+ body: |
41
+ h1. Junebug Help
42
+
43
+ h2. Wiki Words
44
+
45
+ Junebug will create a wiki link for any text enclosed in double brackets:
46
+
47
+ <span style="background: #f4f4f4; padding: 2px; font-family: monospace;"><span>[[</span>JunebugWiki]]</span> creates a link to [[JunebugWiki]]
48
+
49
+ You can change the text of the link as follows:
50
+
51
+ <span style="background: #f4f4f4; padding: 2px; font-family: monospace;"><span>[[</span>JunebugWiki|Junebug Wiki Home]]</span> creates a link to [[JunebugWiki| Junebug Wiki Home]]
52
+
53
+ h2. Text Formatting (Textile)
54
+
55
+ This is a work in progress...
56
+
57
+ |_.Structural Formatting |_.You Type |_.You Get |
58
+ | *Paragraphs:*<br>Blank lines create new paragraphs | <pre class="clean">paragraph-1
59
+
60
+ paragraph-2</pre> | paragraph-1<br><br>paragraph-2 |
61
+ | *Headers:* | <pre class="clean">
62
+ h1. Header 1
63
+ h2. Header 2
64
+ h3. Header 3
65
+ </pre> | <h1>Header 1</h1><h2>Header 2</h2><h3>Header 3</h3>|
66
+ |_.Text Formatting |_.You Type |_.You Get |
67
+ | *Bold Text (strength):* | <code class="clean">*Bold*</code> | *Bold* |
68
+ | *Italic Text (emphasis):* | <code class="clean">_Italic_</code> | _Italic_ |
69
+ | *Fixed Font (code):* | <code class="clean">@Fixed Font@</code> | @Fixed Font@ |
70
+ | *Code Block (pre/code):*<br>Text indented with a single space | <pre class="clean">_Code Block
71
+ </pre> | <pre><code>Code Block</code></pre> |
72
+ | *Preformatted Block:*<br>Text enclosed by &lt;pre&gt; tags | <pre class="clean">
73
+ <pre>
74
+ Preformatted Block
75
+ </pre>
76
+ </pre> | <pre>Preformatted Block</pre> |
77
+
78
+ id: 2
79
+ version: 1
80
+ user_id: 1
81
+ created_at: 2006-11-01 00:10:07 -08:00
82
+ - updated_at: 2006-11-23 09:42:05 -08:00
83
+ title: TextileTest
84
+ readonly:
85
+ body: |-
86
+ h1. Textile Syntax Test
87
+
88
+ See "this page":http://hobix.com/textile/ for the full range of formatting options
89
+
90
+ h2. Headers
91
+
92
+ h1. Header 1
93
+
94
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
95
+
96
+ h2. Header 2
97
+
98
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
99
+
100
+ h3. Header 3
101
+
102
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
103
+
104
+ h4. Header 4
105
+
106
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
107
+
108
+ h5. Header 5
109
+
110
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
111
+
112
+ h2. Structural emphasis
113
+
114
+ This is _emphasis_ (italic)
115
+
116
+ This is *strong* (bold)
117
+
118
+ This is @code@
119
+
120
+ more code
121
+ @difftext = diff( @v1_markup , @v2_markup)
122
+
123
+ This is -deleted- text
124
+
125
+ This is +inserted+ text
126
+
127
+ Arbitrary style: I'm %{color:red}unaware% of most soft drinks.
128
+
129
+
130
+ h2. Arbitrary html, pre, and code
131
+
132
+ Inserting arbitrary html (pre/code)
133
+
134
+ <pre><code>a.gsub!( /</, '' )</code></pre>
135
+
136
+ Inserting arbitrary html (pre/code)
137
+
138
+ <pre>
139
+ <code>a.gsub!( /</, '' )</code>
140
+ </pre>
141
+
142
+ Arbitrary html (pre)
143
+
144
+ <pre>
145
+ a.gsub!( /</, '' )
146
+ </pre>
147
+
148
+ Code by indenting
149
+
150
+ more code
151
+ @difftext = diff( @v1_markup , @v2_markup)
152
+
153
+ h2. Lists
154
+
155
+ # A first item
156
+ # A second item
157
+ # A third
158
+
159
+ # Fuel could be:
160
+ ## Coal
161
+ ## Gasoline
162
+ ## Electricity
163
+ # Humans need only:
164
+ ## Water
165
+ ## Protein
166
+
167
+ * A first item
168
+ * A second item
169
+ * A third
170
+
171
+ h2. External references
172
+
173
+ This is a link: "Google":http://google.com
174
+
175
+ Images: !/static/images/feed-icon-14x14.png!
176
+
177
+
178
+ h2. Tables
179
+
180
+ |_. name |_. age |_. sex |
181
+ | joan | 24 | f |
182
+ | archie | 29 | m |
183
+ | bella | 45 | f |
184
+ id: 3
185
+ version: 1
186
+ user_id: 1
187
+ created_at: 2006-11-06 09:40:53 -08:00
@@ -21,7 +21,7 @@ END
21
21
  end
22
22
 
23
23
  if (args[0] == '-v') || (args[0] == '--version')
24
- puts "Junebug v#{Junebug::VERSION}"
24
+ puts "Junebug v#{Junebug::VERSION::STRING}"
25
25
  return
26
26
  end
27
27
 
@@ -26,7 +26,8 @@ module Junebug::Models
26
26
 
27
27
  class Page < Base
28
28
  belongs_to :user
29
- PAGE_LINK = /\[\[([^\]|]*)[|]?([^\]]*)\]\]/
29
+ #PAGE_LINK = /\[\[([^\]|]*)[|]?([^\]]*)\]\]/
30
+ PAGE_LINK = /\[\[([\w ]+)[|]?([^\]]*)\]\]/
30
31
  #before_save { |r| r.title = r.title.underscore }
31
32
  #PAGE_LINK = /([A-Z][a-z]+[A-Z]\w+)/
32
33
  validates_uniqueness_of :title
@@ -85,7 +86,6 @@ module Junebug::Models
85
86
 
86
87
  # Install some default pages
87
88
  pages_file = File.dirname(__FILE__) + "/../../dump/junebug_pages.yml"
88
- puts pages_file
89
89
  YAML.load_file(pages_file).each {|page_data|Page.create(page_data) } if File.exist?(pages_file)
90
90
  end
91
91
  def self.down
@@ -1,4 +1,4 @@
1
- require 'junebug/config'
1
+ require 'junebug'
2
2
 
3
3
  namespace :update do
4
4
 
@@ -19,8 +19,28 @@ namespace :update do
19
19
  cp File.join(junebug_root, 'deploy', 'Rakefile'), '.'
20
20
  end
21
21
 
22
+ desc "Update help pages"
23
+ task :help do
24
+ Junebug.connect
25
+ pages_file = File.dirname(__FILE__) + "/../../../dump/junebug_pages.yml"
26
+ YAML.load_file(pages_file).each do |page_data|
27
+ # For consistency...
28
+ page_data.delete('id')
29
+ page_data.delete('version')
30
+ page_data.delete('updated_at')
31
+ page_data.delete('created_at')
32
+ page_data['user_id'] = 1
33
+ page = Junebug::Models::Page.find_by_title(page_data['title'])
34
+ if page
35
+ page.update_attributes(page_data)
36
+ else
37
+ Junebug::Models::Page.create(page_data)
38
+ end
39
+ end
40
+ end
41
+
22
42
  desc "Update everything"
23
- task :everything => [:deploydir, :stylesheets, :rakefile] do
43
+ task :everything => [:deploydir, :stylesheets, :rakefile, :help] do
24
44
 
25
45
  end
26
46
 
@@ -2,7 +2,7 @@ module Junebug #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 19
5
+ TINY = 20
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: junebug-wiki
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.19
7
- date: 2006-11-22 00:00:00 -08:00
6
+ version: 0.0.20
7
+ date: 2006-11-23 00:00:00 -08:00
8
8
  summary: Junebug is a minimalist ruby wiki running on Camping.
9
9
  require_paths:
10
10
  - lib