Soks 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +5 -4
- data/bin/soks-create-wiki.rb +153 -19
- data/contrib/easyprompt.rb +58 -0
- data/contrib/easyprompt_licence.txt +504 -0
- data/contrib/redcloth-2.0.11.rb +3 -1
- data/lib/authenticators.rb +18 -2
- data/lib/soks-helpers.rb +207 -157
- data/lib/soks-model.rb +131 -114
- data/lib/soks-servlet.rb +54 -35
- data/lib/soks-storage.rb +134 -0
- data/lib/soks-upgrade-0.0.2.rb +70 -0
- data/lib/soks-utils.rb +129 -19
- data/lib/soks-view.rb +136 -62
- data/lib/soks.rb +3 -1
- data/{template → templates/default}/attachment/logo.png +0 -0
- data/templates/default/attachment/logo.tiff +0 -0
- data/templates/default/attachment/newpage.js +41 -0
- data/templates/default/attachment/print_stylesheet.css +7 -0
- data/templates/default/attachment/rss.png +0 -0
- data/{template → templates/default}/attachment/stylesheet.css +44 -17
- data/templates/default/banned_titles.txt +31 -0
- data/templates/default/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%20sometimes%20not%20linked.textile +10 -0
- data/templates/default/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in%20html.textile +3 -0
- data/templates/default/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +3 -0
- data/templates/default/content/How%20to%20administrate%20this%20wiki.textile +62 -0
- data/templates/default/content/How%20to%20change%20the%20way%20this%20wiki%20looks.textile +30 -0
- data/templates/default/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +60 -0
- data/{template → templates/default}/content/How%20to%20hack%20soks.textile +3 -2
- data/{template → templates/default}/content/How%20to%20import%20a%20site%20from%20instiki.textile +1 -1
- data/templates/default/content/How%20to%20use%20this%20wiki.textile +27 -0
- data/templates/default/content/List%20of%20changes.textile +35 -0
- data/{template → templates/default}/content/Picture%20of%20a%20pair%20of%20soks.textile +0 -0
- data/{template → templates/default}/content/Soks%20Licence.textile +0 -0
- data/templates/default/content/home%20page.textile +17 -0
- data/templates/default/start.rb +94 -0
- data/templates/default/version.txt +1 -0
- data/{template → templates/default}/views/Page_content.rhtml +0 -0
- data/templates/default/views/Page_edit.rhtml +61 -0
- data/templates/default/views/Page_meta.rhtml +40 -0
- data/templates/default/views/Page_print.rhtml +6 -0
- data/templates/default/views/Page_revisions.rhtml +19 -0
- data/templates/default/views/Page_rss.rhtml +55 -0
- data/{template → templates/default}/views/Page_search_results.rhtml +1 -1
- data/templates/default/views/Page_view.rhtml +4 -0
- data/templates/default/views/UploadPage_edit.rhtml +38 -0
- data/templates/default/views/frame.rhtml +41 -0
- data/templates/default/views/messages.yaml +6 -0
- data/templates/instiki/attachment/header_backdrop.png +0 -0
- data/templates/instiki/attachment/instiki_style_sheet.css +199 -0
- data/templates/instiki/attachment/logo.tiff +0 -0
- data/templates/instiki/attachment/logotext.png +0 -0
- data/templates/instiki/attachment/newpage.js +41 -0
- data/templates/instiki/attachment/rss.png +0 -0
- data/templates/instiki/banned_titles.txt +31 -0
- data/templates/instiki/content/AutomaticSummary.textile +24 -0
- data/templates/instiki/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +60 -0
- data/templates/instiki/content/How%20to%20hack%20soks.textile +61 -0
- data/templates/instiki/content/How%20to%20import%20a%20site%20from%20instiki.textile +13 -0
- data/{template → templates/instiki}/content/Improving%20the%20style%20of%20this%20wiki.textile +2 -2
- data/templates/instiki/content/Known%20bugs.textile +8 -0
- data/templates/instiki/content/List%20of%20changes.textile +34 -0
- data/templates/instiki/content/Picture%20of%20a%20pair%20of%20soks.textile +1 -0
- data/templates/instiki/content/Pointers%20on%20adjusting%20the%20settings.textile +62 -0
- data/templates/instiki/content/Pointers%20on%20how%20to%20use%20this%20wiki.textile +27 -0
- data/templates/instiki/content/Recent%20Blog%20Entries.textile +3 -0
- data/templates/instiki/content/Recent%20Changes%20to%20This%20Site.textile +48 -0
- data/templates/instiki/content/Site%20Index.textile +16 -0
- data/templates/instiki/content/Soks%20Licence.textile +64 -0
- data/{template → templates/instiki}/content/home%20page.textile +9 -4
- data/templates/instiki/start.rb +85 -0
- data/templates/instiki/version.txt +1 -0
- data/templates/instiki/views/Page_content.rhtml +1 -0
- data/templates/instiki/views/Page_edit.rhtml +8 -0
- data/templates/instiki/views/Page_meta.rhtml +34 -0
- data/templates/instiki/views/Page_print.rhtml +6 -0
- data/templates/instiki/views/Page_revisions.rhtml +17 -0
- data/templates/instiki/views/Page_rss.rhtml +55 -0
- data/templates/instiki/views/Page_search_results.rhtml +18 -0
- data/templates/instiki/views/Page_view.rhtml +2 -0
- data/templates/instiki/views/UploadPage_edit.rhtml +16 -0
- data/templates/instiki/views/frame.rhtml +90 -0
- data/templates/instiki/views/messages.yaml +6 -0
- data/templates/rails/attachment/2colheader.css +77 -0
- data/templates/rails/attachment/basics.css +98 -0
- data/templates/rails/attachment/header_backdrop.png +0 -0
- data/templates/rails/attachment/logo.tiff +0 -0
- data/templates/rails/attachment/logotext.png +0 -0
- data/templates/rails/attachment/newpage.js +41 -0
- data/templates/rails/attachment/rss.png +0 -0
- data/templates/rails/banned_titles.txt +31 -0
- data/templates/rails/content/AutomaticSummary.textile +24 -0
- data/templates/rails/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +60 -0
- data/templates/rails/content/How%20to%20hack%20soks.textile +61 -0
- data/templates/rails/content/How%20to%20import%20a%20site%20from%20instiki.textile +13 -0
- data/templates/rails/content/Improving%20the%20style%20of%20this%20wiki.textile +30 -0
- data/templates/rails/content/Known%20bugs.textile +8 -0
- data/templates/rails/content/List%20of%20changes.textile +34 -0
- data/templates/rails/content/Picture%20of%20a%20pair%20of%20soks.textile +1 -0
- data/templates/rails/content/Pointers%20on%20adjusting%20the%20settings.textile +62 -0
- data/templates/rails/content/Pointers%20on%20how%20to%20use%20this%20wiki.textile +27 -0
- data/templates/rails/content/Recent%20Blog%20Entries.textile +3 -0
- data/templates/rails/content/Recent%20Changes%20to%20This%20Site.textile +48 -0
- data/templates/rails/content/Site%20Index.textile +16 -0
- data/templates/rails/content/Soks%20Licence.textile +64 -0
- data/templates/rails/content/home%20page.textile +23 -0
- data/templates/rails/start.rb +85 -0
- data/templates/rails/version.txt +1 -0
- data/templates/rails/views/Page_content.rhtml +1 -0
- data/templates/rails/views/Page_edit.rhtml +61 -0
- data/templates/rails/views/Page_meta.rhtml +38 -0
- data/templates/rails/views/Page_print.rhtml +6 -0
- data/templates/rails/views/Page_revisions.rhtml +19 -0
- data/templates/rails/views/Page_rss.rhtml +55 -0
- data/templates/rails/views/Page_search_results.rhtml +19 -0
- data/templates/rails/views/Page_view.rhtml +3 -0
- data/templates/rails/views/UploadPage_edit.rhtml +38 -0
- data/templates/rails/views/frame.rhtml +60 -0
- data/templates/rails/views/messages.yaml +6 -0
- metadata +122 -28
- data/template/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +0 -5
- data/template/content/Pointers%20on%20adjusting%20the%20settings.textile +0 -39
- data/template/content/Pointers%20on%20how%20to%20use%20this%20wiki.textile +0 -21
- data/template/content/Recent%20Changes%20to%20This%20Site.textile +0 -203
- data/template/start.rb +0 -74
- data/template/views/AttachmentPage_edit.rhtml +0 -36
- data/template/views/ImagePage_edit.rhtml +0 -36
- data/template/views/Page_edit.rhtml +0 -34
- data/template/views/Page_print.rhtml +0 -5
- data/template/views/Page_revisions.rhtml +0 -18
- data/template/views/Page_rss.rhtml +0 -34
- data/template/views/Page_view.rhtml +0 -3
- data/template/views/frame.rhtml +0 -34
@@ -0,0 +1,38 @@
|
|
1
|
+
<span class='pagename'><a href='/<%= pagename %>'><%= pagename %></a> <%= page.deleted? ? "(Deleted)" : '' %></span>
|
2
|
+
|
3
|
+
<h1><%= pagename %></h1>
|
4
|
+
|
5
|
+
<p>This page was created on <%= page.created_on %> by <%= page.revisions.first.author %>. It was last updated on <%= page.revised_on %> by <%= page.author %>. It has been changed <%= page.revisions.size %> time(s) (roughly once every <%= (((Time.now-page.created_on)/page.revisions.size)/(60*60*24)).to_i %> days).</p>
|
6
|
+
|
7
|
+
<div class='metacolumn' >
|
8
|
+
<h2>Wiki links from this page</h2>
|
9
|
+
|
10
|
+
<ul>
|
11
|
+
<% page.links_from.each do |linkedpage| %>
|
12
|
+
<li><a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a></li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class='metacolumn' >
|
19
|
+
<h2>Wiki links to this page</h2>
|
20
|
+
|
21
|
+
<ul>
|
22
|
+
<% page.links_to.each do |linkedpage| %>
|
23
|
+
<li><a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a></li>
|
24
|
+
<% end %>
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class='metacolumn' >
|
30
|
+
<h2>Authors</h2>
|
31
|
+
|
32
|
+
<ol>
|
33
|
+
<% page.revisions.each do |revision| %>
|
34
|
+
<li><a href='/<%= revision.author %>'><%= revision.author %></a></li>
|
35
|
+
<% end %>
|
36
|
+
</ol>
|
37
|
+
|
38
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<span class='pagename'><%= pagename %></span>
|
2
|
+
<div class="undochange">
|
3
|
+
<% page.revisions.reverse_each do |revision| %>
|
4
|
+
<p><%= revision.created_on %> by <a href='/<%= revision.author %>'><%= revision.author %></a> <a href='/rollback/<%= pagename %>?revision=<%= revision.number-1 %>' >(undo)</a>:</p>
|
5
|
+
<p>
|
6
|
+
<% revision.changes.each do |change_group| %>
|
7
|
+
<% change_group.each do |change|
|
8
|
+
case change[0]
|
9
|
+
when "-" %>
|
10
|
+
<del><%= change[1] %>. <%= change[2] %></del><br />
|
11
|
+
<% when "+" %>
|
12
|
+
<%= change[1] %>. <%= change[2] %><br />
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
</p>
|
17
|
+
<% end %>
|
18
|
+
<br />(<a href='/edit/<%= pagename %>' accesskey="R" >Return to editing</a>)
|
19
|
+
</div>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<%=
|
2
|
+
require "rss/maker"
|
3
|
+
|
4
|
+
RSS::Maker.make("2.0") do |maker|
|
5
|
+
|
6
|
+
maker.channel.title = "#{$SETTINGS[:name]} #{pagename}"
|
7
|
+
maker.channel.description = $SETTINGS[:description]
|
8
|
+
maker.channel.link = $SETTINGS[:url]
|
9
|
+
|
10
|
+
maker.image.title = "#{$SETTINGS[:name]}"
|
11
|
+
maker.image.url = "#{$SETTINGS[:url]}/attachment/logo.png"
|
12
|
+
|
13
|
+
maker.textinput.title = "Search"
|
14
|
+
maker.textinput.description = "Search #{$SETTINGS[:name]}'s text"
|
15
|
+
maker.textinput.name = "regex"
|
16
|
+
maker.textinput.link = "#{$SETTINGS[:url]}/find/searchpage"
|
17
|
+
|
18
|
+
maker.items.do_sort = true
|
19
|
+
|
20
|
+
count = 0
|
21
|
+
for revision in page.revisions
|
22
|
+
break if (count +=1) == 15
|
23
|
+
item = maker.items.new_item
|
24
|
+
item.link = "#{$SETTINGS[:url]}/#{pagename}"
|
25
|
+
# Get the first change that makes an addition and use as the title
|
26
|
+
title = nil
|
27
|
+
revision.changes.each do |group|
|
28
|
+
group.each do |type,line,text|
|
29
|
+
if type == '+' && text != ''
|
30
|
+
title = text.gsub(/<.*?>/,'')
|
31
|
+
end
|
32
|
+
break if title
|
33
|
+
end
|
34
|
+
break if title
|
35
|
+
end
|
36
|
+
# If change found, take just the changed text and remove tags.
|
37
|
+
# If no change found, then must be because only deleted stuff so give that message
|
38
|
+
item.title = title || $MESSAGES[:some_content_has_been_deleted] # Default
|
39
|
+
item.date = revision.created_on
|
40
|
+
item.author = revision.author
|
41
|
+
item.description = ""
|
42
|
+
content_deleted = false
|
43
|
+
revision.changes.each do |change_group|
|
44
|
+
change_group.each do |change|
|
45
|
+
case change[0]
|
46
|
+
when "-"; content_deleted = true
|
47
|
+
when "+"; item.description << "#{change[2]}<br />"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
item.description << "…<br />"
|
51
|
+
end
|
52
|
+
item.description << "Content was also deleted" if content_deleted
|
53
|
+
end
|
54
|
+
end
|
55
|
+
%>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<span class='pagename'><%= pagename %></span>
|
2
|
+
<h1>Results of Search for “<%= pagename %>”</h1>
|
3
|
+
<% unless title_results.empty? %>
|
4
|
+
<h2>Matches in the titles of pages</h2>
|
5
|
+
<ul>
|
6
|
+
<% title_results.each do |name, page| %>
|
7
|
+
<li><a href='/<%= name %>' ><%= name %></a></li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
<% end %>
|
11
|
+
<% unless text_results.empty? %>
|
12
|
+
<h2>Matches in the text of pages</h2>
|
13
|
+
<ul>
|
14
|
+
<% text_results.each do |name, page| %>
|
15
|
+
<li><a href='/<%= name %>' ><%= name %></a></li>
|
16
|
+
<% end %>
|
17
|
+
</ul>
|
18
|
+
<% end %>
|
19
|
+
<div class='command'>(<a href='/edit/<%= pagename %>' accesskey="E" >Create a page titled “<%= pagename %>”</a>)</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<span class='pagename'><%= pagename %><%= page.deleted? ? "(Deleted)" : '' %></span>
|
2
|
+
|
3
|
+
<form action='/upload/<%= pagename %>' method=post enctype=multipart/form-data >
|
4
|
+
<table>
|
5
|
+
<tr><td>Title:</td><td>
|
6
|
+
<% if page.is_a? ImagePage %>
|
7
|
+
<input type=hidden name='titleprefix' value='Picture of ' />
|
8
|
+
Picture of <input name='newtitle' size = '51' value='<%= pagename[ 10..-1].strip %>'
|
9
|
+
<% else %>
|
10
|
+
<input type=hidden name='titleprefix' value='Attached ' />
|
11
|
+
Attached <input name='newtitle' size = '52' value='<%= pagename[ 9..-1].strip %>'
|
12
|
+
<% end %>
|
13
|
+
onClick="this.value == 'Type a title here' ? this.value = '' : true"/></td></tr>
|
14
|
+
<tr><td valign='top'>File:</td><td><input name='file' type=file /></td></tr>
|
15
|
+
<tr><td>Author:</td><td><a href='/<%= person %>'><%= person %></a> Quit browser to log out.</td>
|
16
|
+
<tr><td></td><td><input name=action value='Save' type=submit accesskey="S"> <a href='/<%= pagename %>' accesskey="C" >(Cancel)</a> or <a href='/delete/<%= pagename %>' accesskey='D'>(Delete)</a> this page.</td></tr>
|
17
|
+
</table>
|
18
|
+
</form>
|
19
|
+
<hr />
|
20
|
+
<% unless page.empty? %>
|
21
|
+
<p>The most recent change was made by <a href='/<%= page.author %>'><%= page.author %></a> who changed:</p>
|
22
|
+
<%
|
23
|
+
page.changes.each do |change_group|
|
24
|
+
change_group.each do |change|
|
25
|
+
case change[0]
|
26
|
+
when "-" %>
|
27
|
+
<del><%= change[1] %>. <%= change[2] %></del><br />
|
28
|
+
<% when "+" %>
|
29
|
+
<%= change[1] %>. <%= change[2] %><br />
|
30
|
+
<%
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
%>
|
35
|
+
<p>
|
36
|
+
<a href='/rollback/<%= pagename %>?revision=<%= page.number - 1 %>' accesskey="U" >(Undo this change)</a> or <a href='/revisions/<%= pagename %>' accesskey="A" >(Show All changes)</a>
|
37
|
+
</p>
|
38
|
+
<% end %>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%= pagename %></title>
|
5
|
+
<meta name="description" content="<%= $SETTINGS[:description] %>" />
|
6
|
+
<meta name="keywords" content="Soks, <%= $SETTINGS[:name] %>" />
|
7
|
+
<link href="/attachment/basics.css" rel="stylesheet" type="text/css" />
|
8
|
+
<link href="/attachment/2colheader.css" rel="stylesheet" type="text/css" />
|
9
|
+
<script src="/attachment/newpage.js" language="JavaScript" type="text/javascript" />
|
10
|
+
|
11
|
+
<body onkeypress="hotkey(event);">
|
12
|
+
<div id="header">
|
13
|
+
<div id="logo"><a href='/Home Page' ><img height='140' src='/attachment/logo.tiff' alt='<%= @wikiname %>' border='0' /></a></div>
|
14
|
+
<h1>Soks</h1>
|
15
|
+
<p id="navMain">
|
16
|
+
<a href='/view/home page' accesskey="H" >Home Page</a>
|
17
|
+
<a href='/view/site index' accesskey="I" >Index</a>
|
18
|
+
<a href='/view/upcoming events' accesskey="U" >Events</a>
|
19
|
+
<a href='/view/recent blog entries' accesskey="B" >Blog</a>
|
20
|
+
<a href='/view/recent changes to this site' accesskey="R" >Recent Changes</a>
|
21
|
+
<a href=''> </a>
|
22
|
+
<p>
|
23
|
+
</div> <!-- #header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
<%= content_of_page %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="sidebar">
|
30
|
+
<h2>Search <%= $SETTINGS[:name] %></h2>
|
31
|
+
<form method=GET action='/find/<%= pagename %>' >
|
32
|
+
<input name='regex' value='Search' size=15 onClick="this.value == 'Search' ? this.value = '' : true" />
|
33
|
+
<input name='action' value='search' type=submit>
|
34
|
+
</form>
|
35
|
+
|
36
|
+
<h2>Links to this page</h2>
|
37
|
+
<% if page %>
|
38
|
+
<% page.links_to.each do |linkedpage| %>
|
39
|
+
<a href='/<%= linkedpage.name %>'><%= linkedpage.name %></a>
|
40
|
+
<% end %>
|
41
|
+
<% end %>
|
42
|
+
<br />
|
43
|
+
<h2>Create a new page</h2>
|
44
|
+
<a href='/edit/Type a title here'>Add a new page</a>
|
45
|
+
<a href='/edit/Picture of Type a title here'>Upload a new picture</a>
|
46
|
+
<a href='/edit/Attached Type a title here'>Upload a new file</a>
|
47
|
+
<br />
|
48
|
+
<h2>Edit this page</h2>
|
49
|
+
<a href='/edit/<%= pagename %>' accesskey='E'>Edit this page</a>
|
50
|
+
<br />
|
51
|
+
<a style='display:inline;align:right;' href='/rss/<%= pagename %>'><img src='/attachment/rss.png' alt='rss feed' /></a>
|
52
|
+
<br />
|
53
|
+
<i>Powered by <a style='display:inline;' href='http://soks.rubyforge.org'>Soks</a></i>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
</body>
|
60
|
+
</html>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
:some_content_has_been_deleted : "Some content has been deleted"
|
2
|
+
:Type_what_you_want_here_and_click_save : "Type what you want here and click save"
|
3
|
+
:Create : "Create"
|
4
|
+
:page_deleted : "page deleted"
|
5
|
+
:content_moved_to : "content moved to"
|
6
|
+
:content_moved_from : "content moved from"
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: Soks
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2005-01-
|
6
|
+
version: 0.0.3
|
7
|
+
date: 2005-01-25
|
8
8
|
summary: Yet another wiki.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -31,6 +31,8 @@ files:
|
|
31
31
|
- bin/soks-create-wiki.rb
|
32
32
|
- contrib/diff
|
33
33
|
- contrib/diff_licence.txt
|
34
|
+
- contrib/easyprompt.rb
|
35
|
+
- contrib/easyprompt_licence.txt
|
34
36
|
- contrib/redcloth-2.0.11.rb
|
35
37
|
- contrib/redcloth-3.0.1.rb
|
36
38
|
- contrib/redcloth_license.txt
|
@@ -47,35 +49,127 @@ files:
|
|
47
49
|
- lib/soks-helpers.rb
|
48
50
|
- lib/soks-model.rb
|
49
51
|
- lib/soks-servlet.rb
|
52
|
+
- lib/soks-storage.rb
|
53
|
+
- lib/soks-upgrade-0.0.2.rb
|
50
54
|
- lib/soks-utils.rb
|
51
55
|
- lib/soks-view.rb
|
52
56
|
- lib/soks.rb
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
57
|
+
- templates/default
|
58
|
+
- templates/instiki
|
59
|
+
- templates/rails
|
60
|
+
- templates/default/attachment
|
61
|
+
- templates/default/banned_titles.txt
|
62
|
+
- templates/default/content
|
63
|
+
- templates/default/start.rb
|
64
|
+
- templates/default/version.txt
|
65
|
+
- templates/default/views
|
66
|
+
- templates/default/attachment/logo.png
|
67
|
+
- templates/default/attachment/logo.tiff
|
68
|
+
- templates/default/attachment/newpage.js
|
69
|
+
- templates/default/attachment/print_stylesheet.css
|
70
|
+
- templates/default/attachment/rss.png
|
71
|
+
- templates/default/attachment/stylesheet.css
|
72
|
+
- templates/default/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%20sometimes%20not%20linked.textile
|
73
|
+
- templates/default/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in%20html.textile
|
74
|
+
- templates/default/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile
|
75
|
+
- templates/default/content/home%20page.textile
|
76
|
+
- templates/default/content/How%20to%20administrate%20this%20wiki.textile
|
77
|
+
- templates/default/content/How%20to%20change%20the%20way%20this%20wiki%20looks.textile
|
78
|
+
- templates/default/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile
|
79
|
+
- templates/default/content/How%20to%20hack%20soks.textile
|
80
|
+
- templates/default/content/How%20to%20import%20a%20site%20from%20instiki.textile
|
81
|
+
- templates/default/content/How%20to%20use%20this%20wiki.textile
|
82
|
+
- templates/default/content/List%20of%20changes.textile
|
83
|
+
- templates/default/content/Picture%20of%20a%20pair%20of%20soks.textile
|
84
|
+
- templates/default/content/Soks%20Licence.textile
|
85
|
+
- templates/default/views/frame.rhtml
|
86
|
+
- templates/default/views/messages.yaml
|
87
|
+
- templates/default/views/Page_content.rhtml
|
88
|
+
- templates/default/views/Page_edit.rhtml
|
89
|
+
- templates/default/views/Page_meta.rhtml
|
90
|
+
- templates/default/views/Page_print.rhtml
|
91
|
+
- templates/default/views/Page_revisions.rhtml
|
92
|
+
- templates/default/views/Page_rss.rhtml
|
93
|
+
- templates/default/views/Page_search_results.rhtml
|
94
|
+
- templates/default/views/Page_view.rhtml
|
95
|
+
- templates/default/views/UploadPage_edit.rhtml
|
96
|
+
- templates/instiki/attachment
|
97
|
+
- templates/instiki/banned_titles.txt
|
98
|
+
- templates/instiki/content
|
99
|
+
- templates/instiki/start.rb
|
100
|
+
- templates/instiki/version.txt
|
101
|
+
- templates/instiki/views
|
102
|
+
- templates/instiki/attachment/header_backdrop.png
|
103
|
+
- templates/instiki/attachment/instiki_style_sheet.css
|
104
|
+
- templates/instiki/attachment/logo.tiff
|
105
|
+
- templates/instiki/attachment/logotext.png
|
106
|
+
- templates/instiki/attachment/newpage.js
|
107
|
+
- templates/instiki/attachment/rss.png
|
108
|
+
- templates/instiki/content/AutomaticSummary.textile
|
109
|
+
- templates/instiki/content/home%20page.textile
|
110
|
+
- templates/instiki/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile
|
111
|
+
- templates/instiki/content/How%20to%20hack%20soks.textile
|
112
|
+
- templates/instiki/content/How%20to%20import%20a%20site%20from%20instiki.textile
|
113
|
+
- templates/instiki/content/Improving%20the%20style%20of%20this%20wiki.textile
|
114
|
+
- templates/instiki/content/Known%20bugs.textile
|
115
|
+
- templates/instiki/content/List%20of%20changes.textile
|
116
|
+
- templates/instiki/content/Picture%20of%20a%20pair%20of%20soks.textile
|
117
|
+
- templates/instiki/content/Pointers%20on%20adjusting%20the%20settings.textile
|
118
|
+
- templates/instiki/content/Pointers%20on%20how%20to%20use%20this%20wiki.textile
|
119
|
+
- templates/instiki/content/Recent%20Blog%20Entries.textile
|
120
|
+
- templates/instiki/content/Recent%20Changes%20to%20This%20Site.textile
|
121
|
+
- templates/instiki/content/Site%20Index.textile
|
122
|
+
- templates/instiki/content/Soks%20Licence.textile
|
123
|
+
- templates/instiki/views/frame.rhtml
|
124
|
+
- templates/instiki/views/messages.yaml
|
125
|
+
- templates/instiki/views/Page_content.rhtml
|
126
|
+
- templates/instiki/views/Page_edit.rhtml
|
127
|
+
- templates/instiki/views/Page_meta.rhtml
|
128
|
+
- templates/instiki/views/Page_print.rhtml
|
129
|
+
- templates/instiki/views/Page_revisions.rhtml
|
130
|
+
- templates/instiki/views/Page_rss.rhtml
|
131
|
+
- templates/instiki/views/Page_search_results.rhtml
|
132
|
+
- templates/instiki/views/Page_view.rhtml
|
133
|
+
- templates/instiki/views/UploadPage_edit.rhtml
|
134
|
+
- templates/rails/attachment
|
135
|
+
- templates/rails/banned_titles.txt
|
136
|
+
- templates/rails/content
|
137
|
+
- templates/rails/start.rb
|
138
|
+
- templates/rails/version.txt
|
139
|
+
- templates/rails/views
|
140
|
+
- templates/rails/attachment/2colheader.css
|
141
|
+
- templates/rails/attachment/basics.css
|
142
|
+
- templates/rails/attachment/header_backdrop.png
|
143
|
+
- templates/rails/attachment/logo.tiff
|
144
|
+
- templates/rails/attachment/logotext.png
|
145
|
+
- templates/rails/attachment/newpage.js
|
146
|
+
- templates/rails/attachment/rss.png
|
147
|
+
- templates/rails/content/AutomaticSummary.textile
|
148
|
+
- templates/rails/content/home%20page.textile
|
149
|
+
- templates/rails/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile
|
150
|
+
- templates/rails/content/How%20to%20hack%20soks.textile
|
151
|
+
- templates/rails/content/How%20to%20import%20a%20site%20from%20instiki.textile
|
152
|
+
- templates/rails/content/Improving%20the%20style%20of%20this%20wiki.textile
|
153
|
+
- templates/rails/content/Known%20bugs.textile
|
154
|
+
- templates/rails/content/List%20of%20changes.textile
|
155
|
+
- templates/rails/content/Picture%20of%20a%20pair%20of%20soks.textile
|
156
|
+
- templates/rails/content/Pointers%20on%20adjusting%20the%20settings.textile
|
157
|
+
- templates/rails/content/Pointers%20on%20how%20to%20use%20this%20wiki.textile
|
158
|
+
- templates/rails/content/Recent%20Blog%20Entries.textile
|
159
|
+
- templates/rails/content/Recent%20Changes%20to%20This%20Site.textile
|
160
|
+
- templates/rails/content/Site%20Index.textile
|
161
|
+
- templates/rails/content/Soks%20Licence.textile
|
162
|
+
- templates/rails/views/frame.rhtml
|
163
|
+
- templates/rails/views/messages.yaml
|
164
|
+
- templates/rails/views/Page_content.rhtml
|
165
|
+
- templates/rails/views/Page_edit.rhtml
|
166
|
+
- templates/rails/views/Page_meta.rhtml
|
167
|
+
- templates/rails/views/Page_print.rhtml
|
168
|
+
- templates/rails/views/Page_revisions.rhtml
|
169
|
+
- templates/rails/views/Page_rss.rhtml
|
170
|
+
- templates/rails/views/Page_search_results.rhtml
|
171
|
+
- templates/rails/views/Page_view.rhtml
|
172
|
+
- templates/rails/views/UploadPage_edit.rhtml
|
79
173
|
- LICENSE.txt
|
80
174
|
- README.txt
|
81
175
|
test_files: []
|
@@ -1,5 +0,0 @@
|
|
1
|
-
h1. How to export a site from this wiki
|
2
|
-
|
3
|
-
The contents of this site are stored in flat files in the 'contents' folder of this wiki (soks-wiki/contents by default). They are the ones with the .textile ending. Should be pretty easy to transfer them to wherever you need.
|
4
|
-
|
5
|
-
The authors, and change history of each page are stored in the same folder with a .marshal extension. These are marshalled arrays of Revision objects. These are harder to export, but the general approach would be to go to the contents folder, launch irb, require 'soks-model', Marshal.load each page and do whatever conversion you need.
|
@@ -1,39 +0,0 @@
|
|
1
|
-
h1. Adjusting the settings
|
2
|
-
|
3
|
-
Take a look at the start.rb file in your wiki folder. This can be used to change the settings such as port and url of this site, and to enable more advanced features such as calendars and automatic summaries.
|
4
|
-
|
5
|
-
h2. To restart your wiki
|
6
|
-
|
7
|
-
The soks-create-wiki.rb script will have created a folder in the directory in which you ran it (by default the folder is 'soks-wiki'). In that folder is a script 'start.rb' run it.
|
8
|
-
<code>
|
9
|
-
cd soks-wiki
|
10
|
-
ruby start.rb
|
11
|
-
</code>
|
12
|
-
|
13
|
-
h2. To make your site accessible beyond localhost
|
14
|
-
|
15
|
-
Open start.rb in your directory. Un-comment the lines
|
16
|
-
<code>
|
17
|
-
# :url => 'http://localhost:8000',
|
18
|
-
# :port => 8000,
|
19
|
-
</code>
|
20
|
-
and replace them with the url and port you wish the wiki to run on.
|
21
|
-
|
22
|
-
h2. To password protect your site.
|
23
|
-
|
24
|
-
Open start.rb in your wiki directory. Un-comment one of:
|
25
|
-
<code>
|
26
|
-
# :authenticator => WEBrick::HTTPAuth::NotAuthentication.new( 'No password, just enter a name'), # Doesn't require a passwrod
|
27
|
-
# :authenticator => WEBrick::HTTPAuth::OnePasswordAuthentication.new( 'password', 'Enter the site wide password (password by default!)' ), # One group wide password
|
28
|
-
# :authenticator => WEBrick::HTTPAuth::BasicAuth.new( :UserDB => htpasswd, :Realm => realm ) # See webrick documentation
|
29
|
-
# :authenticator => WEBrick::HTTPAuth::DigestAuth.new( :UserDB => htpdigest, :Realm => realm )
|
30
|
-
</code>
|
31
|
-
|
32
|
-
You may also wish to uncomment
|
33
|
-
<code># :dont_authenticate => [], # Require authentication for reading as well as editing</code>
|
34
|
-
|
35
|
-
Note a big bug is that viewing attached images and files is NOT password protected. If someone knows how to make WEBrick::HTTPServlet::FileHandler use an authenticator, please let me know.
|
36
|
-
|
37
|
-
h2. To edit the default site settings used by soks-create-wiki.rb
|
38
|
-
|
39
|
-
Edit template/start.rb in the directory where soks was installed.
|