diff options
Diffstat (limited to 'ikiwiki')
-rw-r--r-- | ikiwiki/directive/index.html | 186 | ||||
-rw-r--r-- | ikiwiki/formatting/index.html | 221 | ||||
-rw-r--r-- | ikiwiki/ikiwiki.js | 54 | ||||
-rw-r--r-- | ikiwiki/index.html | 138 | ||||
-rw-r--r-- | ikiwiki/markdown/index.html | 136 | ||||
-rw-r--r-- | ikiwiki/openid/index.html | 142 | ||||
-rw-r--r-- | ikiwiki/pagespec/attachment/index.html | 153 | ||||
-rw-r--r-- | ikiwiki/pagespec/index.html | 226 | ||||
-rw-r--r-- | ikiwiki/pagespec/po/index.html | 140 | ||||
-rw-r--r-- | ikiwiki/pagespec/sorting/index.html | 138 | ||||
-rw-r--r-- | ikiwiki/relativedate.js | 75 | ||||
-rw-r--r-- | ikiwiki/searching/index.html | 143 | ||||
-rw-r--r-- | ikiwiki/subpage/index.html | 141 | ||||
-rw-r--r-- | ikiwiki/subpage/linkingrules/index.html | 160 | ||||
-rw-r--r-- | ikiwiki/toggle.js | 29 | ||||
-rw-r--r-- | ikiwiki/wikilink/index.html | 164 |
16 files changed, 2246 insertions, 0 deletions
diff --git a/ikiwiki/directive/index.html b/ikiwiki/directive/index.html new file mode 100644 index 0000000..8dabb09 --- /dev/null +++ b/ikiwiki/directive/index.html @@ -0,0 +1,186 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>directive</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>directive</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/directive.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + directive + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sex 13 Mai 2011 13:06:00 BRT</span></strong> + </p> + <p>Directives are similar to a <a href="../wikilink/">WikiLink</a> in form, except they +begin with <code>!</code> and may contain parameters. The general form is:</p> + +<pre><code>[[!directive param="value" param="value"]] +</code></pre> + +<p>This gets expanded before the rest of the page is processed, and can be used +to transform the page in various ways.</p> + +<p>The quotes around values can be omitted if the value is a simple word. +Also, some directives may use parameters without values, for example:</p> + +<pre><code>[[!tag foo]] +</code></pre> + +<p>A directive does not need to all be on one line, it can be +wrapped to multiple lines if you like:</p> + +<pre><code>[[!directive foo="baldersnatch" +bar="supercalifragilisticexpialidocious" baz=11]] +</code></pre> + +<p>Also, multiple lines of <em>quoted</em> text can be used for a value. +To allow quote marks inside the quoted text, delimit the block +of text with triple-double-quotes or triple-single-quotes:</p> + +<pre><code>[[!directive text=""" +1. "foo" +2. "bar" +3. "baz" +""" othertext=''' +1. 'quux' +2. "foo" +''']] +</code></pre> + +<p>If you want to put text with triple quotes into a parameter value, you can +use perl-style here-doc syntax, even nesting it like this:</p> + +<pre><code>[[!directive text=<<OUTER +[[!otherdirective <<INNER +inner text +INNER]] +outer text +OUTER]] +</code></pre> + +<p>ikiwiki also has an older syntax for directives, which requires a space in +directives to distinguish them from <a href="../wikilink/">wikilinks</a>. This +syntax has several disadvantages: it requires a space after directives with +no parameters (such as <code>[[pagecount ]]</code>), and it prohibits spaces in +<a href="../wikilink/">wikilinks</a>. ikiwiki now provides the <code>!</code>-prefixed +syntax shown above as default. However, ikiwiki still supports wikis using +the older syntax, if the <code>prefix_directives</code> option is disabled.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../formatting/">formatting</a> + + <a href="../">ikiwiki</a> + + <a href="../markdown/">markdown</a> + + <a href="../pagespec/sorting/">pagespec/sorting</a> + + <a href="../../shortcuts/">shortcuts</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sex 13 Mai 2011 13:06:00 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/formatting/index.html b/ikiwiki/formatting/index.html new file mode 100644 index 0000000..bce7005 --- /dev/null +++ b/ikiwiki/formatting/index.html @@ -0,0 +1,221 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Formatting wiki pages</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>Formatting wiki pages</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/formatting.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + Formatting wiki pages + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Qua 26 Ago 2009 14:05:29 BRT</span></strong> + </p> + <p>Text on this wiki is, by default, written in a form very close to how you +might write text for an email message. This style of text formatting is +called <a href="../markdown/">MarkDown</a>, and it works like this:</p> + +<p>Leave blank lines between paragraphs.</p> + +<p>You can <em>*emphasise*</em> or <strong>**strongly emphasise**</strong> text by placing it +in single or double asterisks.</p> + +<p>To create a list, start each line with an asterisk:</p> + +<ul> +<li>"* this is my list"</li> +<li>"* another item"</li> +</ul> + + +<p>To make a numbered list, start each line with a number (any number will +do) followed by a period:</p> + +<ol> +<li>"1. first line"</li> +<li>"2. second line"</li> +<li>"2. third line"</li> +</ol> + + +<p>To create a header, start a line with one or more <code>#</code> characters followed +by a space and the header text. The number of <code>#</code> characters controls the +size of the header:</p> + +<h1># h1</h1> + +<h2>## h2</h2> + +<h3>### h3</h3> + +<h4>#### h4</h4> + +<h5>##### h5</h5> + +<h6>###### h6</h6> + +<p>To create a horizontal rule, just write three or more dashes or stars on +their own line:</p> + +<hr /> + +<p>To quote someone, prefix the quote with ">":</p> + +<blockquote><p>To be or not to be, +that is the question.</p></blockquote> + +<p>To write a code block, indent each line with a tab or 4 spaces:</p> + +<pre><code>10 PRINT "Hello, world!" +20 GOTO 10 +</code></pre> + +<p>To link to an url or email address, you can just put the +url in angle brackets: <<a href="http://ikiwiki.info">http://ikiwiki.info</a>>, or you can use the +form [link text](url)</p> + +<hr /> + +<p>In addition to basic html formatting using <a href="../markdown/">MarkDown</a>, this wiki lets +you use the following additional features:</p> + +<ul> +<li><p>To link to another page on the wiki, place the page's name inside double +square brackets. So you would use <code>[[WikiLink]]</code> to link to <a href="../wikilink/">WikiLink</a>.</p></li> +<li><p>Insert <a href="../../smileys/">smileys</a> and some other useful symbols. <img src="../../smileys/smile.png" alt=":-)" /></p></li> +<li><p>Use <a href="../../shortcuts/">shortcuts</a> to link to common resources.</p> + +<p> [[!wikipedia War_of_1812]]</p></li> +<li><p>Create and fill out <a href="../../templates/">templates</a> for repeated chunks of +parameterized wiki text.</p></li> +<li><p>Insert various <a href="../directive/">directives</a> onto a page to perform useful +actions. +For example, you can:</p> + +<ul> +<li><p>Add a table of contents to a page:</p> + +<p>[[!toc ]]</p></li> +<li><p>Change the title of a page:</p> + +<p>[[!meta title="full page title"]]</p></li> +<li><p>Create a blog by inlining a set of pages:</p> + +<p>[[!inline pages="blog/*"]]</p></li> +</ul> +</li> +</ul> + + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">ikiwiki</a> + + <a href="../markdown/">markdown</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Qua 26 Ago 2009 14:05:29 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/ikiwiki.js b/ikiwiki/ikiwiki.js new file mode 100644 index 0000000..aebc5cf --- /dev/null +++ b/ikiwiki/ikiwiki.js @@ -0,0 +1,54 @@ +// ikiwiki's javascript utility function library + +var hooks; + +// Run onload as soon as the DOM is ready, if possible. +// gecko, opera 9 +if (document.addEventListener) { + document.addEventListener("DOMContentLoaded", run_hooks_onload, false); +} +// other browsers +window.onload = run_hooks_onload; + +var onload_done = 0; + +function run_hooks_onload() { + // avoid firing twice + if (onload_done) + return; + onload_done = true; + + run_hooks("onload"); +} + +function run_hooks(name) { + if (typeof(hooks) != "undefined") { + for (var i = 0; i < hooks.length; i++) { + if (hooks[i].name == name) { + hooks[i].call(); + } + } + } +} + +function hook(name, call) { + if (typeof(hooks) == "undefined") + hooks = new Array; + hooks.push({name: name, call: call}); +} + +function getElementsByClass(cls, node, tag) { + if (document.getElementsByClass) + return document.getElementsByClass(cls, node, tag); + if (! node) node = document; + if (! tag) tag = '*'; + var ret = new Array(); + var pattern = new RegExp("(^|\\s)"+cls+"(\\s|$)"); + var els = node.getElementsByTagName(tag); + for (i = 0; i < els.length; i++) { + if ( pattern.test(els[i].className) ) { + ret.push(els[i]); + } + } + return ret; +} diff --git a/ikiwiki/index.html b/ikiwiki/index.html new file mode 100644 index 0000000..eecb26b --- /dev/null +++ b/ikiwiki/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>ikiwiki</title> + +<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li>ikiwiki</li> + <li><span class="divider">|</span> <a href="../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + ikiwiki + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sáb 24 Abr 2010 01:43:45 BRT</span></strong> + </p> + <p>This wiki is powered by <a href="http://ikiwiki.info/">ikiwiki</a>.</p> + +<p>Some documentation on using ikiwiki:</p> + +<ul> +<li><a href="./formatting/">formatting</a></li> +<li><a href="./wikilink/">wikilink</a></li> +<li><a href="./subpage/">subpage</a></li> +<li><a href="./pagespec/">pagespec</a></li> +<li><a href="./directive/">directive</a></li> +<li><a href="./markdown/">markdown</a></li> +<li><a href="./openid/">openid</a></li> +<li><a href="./searching/">searching</a></li> +<li><a href="../templates/">templates</a></li> +</ul> + + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../templates/">templates</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sáb 24 Abr 2010 01:43:45 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/markdown/index.html b/ikiwiki/markdown/index.html new file mode 100644 index 0000000..a14a748 --- /dev/null +++ b/ikiwiki/markdown/index.html @@ -0,0 +1,136 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>markdown</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>markdown</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/markdown.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + markdown + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Seg 10 Nov 2008 20:40:03 BRST</span></strong> + </p> + <p><a href="http://daringfireball.net/projects/markdown/">Markdown</a> +is a minimal markup language that resembles plain text as used in +email messages. It is the markup language used by this wiki by default.</p> + +<p>For documentation about the markdown syntax, see <a href="../formatting/">formatting</a> and +<a href="http://daringfireball.net/projects/markdown/syntax">Markdown: syntax</a>.</p> + +<p>Note that <a href="../wikilink/">WikiLinks</a> and <a href="../directive/">directives</a> are not part +of the markdown syntax, and are the only bit of markup that this wiki +handles internally.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../formatting/">formatting</a> + + <a href="../">ikiwiki</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Seg 10 Nov 2008 20:40:03 BRST</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/openid/index.html b/ikiwiki/openid/index.html new file mode 100644 index 0000000..9e77d25 --- /dev/null +++ b/ikiwiki/openid/index.html @@ -0,0 +1,142 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>OpenID</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>OpenID</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/openid.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + OpenID + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sex 07 Mai 2010 23:30:42 BRT</span></strong> + </p> + <p>This wiki has OpenID <strong>disabled</strong>.</p> + +<p><a href="http://openid.net">OpenID</a> is a decentralized authentication mechanism +that allows you to have one login that you can use on a growing number of +websites.</p> + +<p>If you have an account with some of the larger web service providers, +you might already have an OpenID. +<a href="http://openiddirectory.com/openid-providers-c-1.html">Directory of OpenID providers</a></p> + +<hr /> + +<p>It's also possible to make a page in the wiki usable as an OpenID url, +by delegating it to an openid server. Here's an example of how to do that:</p> + +<pre><code>[[!meta openid="http://yourid.myopenid.com/" + server="http://www.myopenid.com/server"]] +</code></pre> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">ikiwiki</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sex 07 Mai 2010 23:30:42 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/pagespec/attachment/index.html b/ikiwiki/pagespec/attachment/index.html new file mode 100644 index 0000000..10c0529 --- /dev/null +++ b/ikiwiki/pagespec/attachment/index.html @@ -0,0 +1,153 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>attachment</title> + +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li> + + <li><a href="../">pagespec</a> <span class="divider">/</span> </li> + + <li>attachment</li> + <li><span class="divider">|</span> <a href="../../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/pagespec/attachment.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + attachment + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sex 23 Abr 2010 18:36:07 BRT</span></strong> + </p> + <p>This wiki has attachments <strong>disabled</strong>.</p> + +<p>If attachments are enabled, the wiki admin can control what types of +attachments will be accepted, via the <code>allowed_attachments</code> +configuration setting.</p> + +<p>For example, to limit most users to uploading small images, and nothing else, +while allowing larger mp3 files to be uploaded by joey into a specific +directory, and check all attachments for viruses, something like this could be +used:</p> + +<pre><code>virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (mimetype(image/*) and maxsize(50kb))) +</code></pre> + +<p>The regular <a href="../">PageSpec</a> syntax is expanded with the following +additional tests:</p> + +<ul> +<li><p>"<code>maxsize(size)</code>" - tests whether the attachment is no larger than the +specified size. The size defaults to being in bytes, but "kb", "mb", "gb" +etc can be used to specify the units.</p></li> +<li><p>"<code>minsize(size)</code>" - tests whether the attachment is no smaller than the +specified size.</p></li> +<li><p>"<code>ispage()</code>" - tests whether the attachment will be treated by ikiwiki as a +wiki page. (Ie, if it has an extension of ".mdwn", or of any other enabled +page format).</p> + +<p>So, if you don't want to allow wiki pages to be uploaded as attachments, +use <code>!ispage()</code> ; if you only want to allow wiki pages to be uploaded +as attachments, use <code>ispage()</code>.</p></li> +<li><p>"<code>mimetype(foo/bar)</code>" - checks the MIME type of the attachment. You can +include a glob in the type, for example <code>mimetype(image/*)</code>.</p></li> +<li><p>"<code>virusfree()</code>" - checks the attachment with an antiviral program.</p></li> +</ul> + + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sex 23 Abr 2010 18:36:07 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/pagespec/index.html b/ikiwiki/pagespec/index.html new file mode 100644 index 0000000..18608a6 --- /dev/null +++ b/ikiwiki/pagespec/index.html @@ -0,0 +1,226 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>pagespec</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>pagespec</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/pagespec.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + pagespec + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Qua 20 Out 2010 20:53:50 BRST</span></strong> + </p> + <p>To select a set of pages, such as pages that are locked, pages +whose commit emails you want subscribe to, or pages to combine into a +blog, the wiki uses a PageSpec. This is an expression that matches +a set of pages.</p> + +<p>The simplest PageSpec is a simple list of pages. For example, this matches +any of the three listed pages:</p> + +<pre><code>foo or bar or baz +</code></pre> + +<p>More often you will want to match any pages that have a particular thing in +their name. You can do this using a glob pattern. "<code>*</code>" stands for any part +of a page name, and "<code>?</code>" for any single letter of a page name. So this +matches all pages about music, and any <a href="../subpage/">SubPage</a>s of the SandBox, but does +not match the SandBox itself:</p> + +<pre><code>*music* or SandBox/* +</code></pre> + +<p>You can also prefix an item with "<code>!</code>" to skip pages that match it. So to +match all pages except for Discussion pages and the SandBox:</p> + +<pre><code>* and !SandBox and !*/Discussion +</code></pre> + +<p>Some more elaborate limits can be added to what matches using these functions:</p> + +<ul> +<li>"<code>glob(someglob)</code>" - matches pages and other files that match the given glob. +Just writing the glob by itself is actually a shorthand for this function.</li> +<li>"<code>page(glob)</code>" - like <code>glob()</code>, but only matches pages, not other files</li> +<li>"<code>link(page)</code>" - matches only pages that link to a given page (or glob)</li> +<li>"<code>tagged(tag)</code>" - matches pages that are tagged or link to the given tag (or +tags matched by a glob)</li> +<li>"<code>backlink(page)</code>" - matches only pages that a given page links to</li> +<li>"<code>creation_month(month)</code>" - matches only files created on the given month +number</li> +<li>"<code>creation_day(mday)</code>" - or day of the month</li> +<li>"<code>creation_year(year)</code>" - or year</li> +<li>"<code>created_after(page)</code>" - matches only files created after the given page +was created</li> +<li>"<code>created_before(page)</code>" - matches only files created before the given page +was created</li> +<li>"<code>internal(glob)</code>" - like <code>glob()</code>, but matches even internal-use +pages that globs do not usually match.</li> +<li>"<code>title(glob)</code>", "<code>author(glob)</code>", "<code>authorurl(glob)</code>", +"<code>license(glob)</code>", "<code>copyright(glob)</code>", "<code>guid(glob)</code>" + +<ul> +<li>match pages that have the given metadata, matching the specified glob.</li> +</ul> +</li> +<li>"<code>user(username)</code>" - tests whether a modification is being made by a +user with the specified username. If openid is enabled, an openid can also +be put here. Glob patterns can be used in the username. For example, +to match all openid users, use <code>user(*://*)</code></li> +<li>"<code>admin()</code>" - tests whether a modification is being made by one of the +wiki admins.</li> +<li>"<code>ip(address)</code>" - tests whether a modification is being made from the +specified IP address.</li> +<li>"<code>comment(glob)</code>" - matches comments to a page matching the glob.</li> +<li>"<code>comment_pending(glob)</code>" - matches unmoderated, pending comments.</li> +<li>"<code>postcomment(glob)</code>" - matches only when comments are being +posted to a page matching the specified glob</li> +</ul> + + +<p>For example, to match all pages in a blog that link to the page about music +and were written in 2005:</p> + +<pre><code>blog/* and link(music) and creation_year(2005) +</code></pre> + +<p>Note the use of "and" in the above example, that means that only pages that +match each of the three expressions match the whole. Use "and" when you +want to combine expression like that; "or" when it's enough for a page to +match one expression. Note that it doesn't make sense to say "index and +SandBox", since no page can match both expressions.</p> + +<p>More complex expressions can also be created, by using parentheses for +grouping. For example, to match pages in a blog that are tagged with either +of two tags, use:</p> + +<pre><code>blog/* and (tagged(foo) or tagged(bar)) +</code></pre> + +<p>Note that page names in PageSpecs are matched against the absolute +filenames of the pages in the wiki, so a pagespec "foo" used on page +"a/b" will not match a page named "a/foo" or "a/b/foo". To match +relative to the directory of the page containing the pagespec, you can +use "./". For example, "./foo" on page "a/b" matches page "a/foo".</p> + +<p>To indicate the name of the page the PageSpec is used in, you can +use a single dot. For example, <code>link(.)</code> matches all the pages +linking to the page containing the PageSpec.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">ikiwiki</a> + + <a href="./attachment/">pagespec/attachment</a> + + <a href="./po/">pagespec/po</a> + + <a href="./sorting/">pagespec/sorting</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Qua 20 Out 2010 20:53:50 BRST</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/pagespec/po/index.html b/ikiwiki/pagespec/po/index.html new file mode 100644 index 0000000..919d6b8 --- /dev/null +++ b/ikiwiki/pagespec/po/index.html @@ -0,0 +1,140 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>po</title> + +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li> + + <li><a href="../">pagespec</a> <span class="divider">/</span> </li> + + <li>po</li> + <li><span class="divider">|</span> <a href="../../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/pagespec/po.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + po + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Seg 12 Jul 2010 16:42:30 BRT</span></strong> + </p> + <p>This wiki has po support <strong>disabled</strong>.</p> + +<p>If the <a href="http://ikiwiki.info/plugins/po/">po</a> plugin is enabled, the regular +<a href="../">PageSpec</a> syntax is expanded with the following additional +tests that can be used to improve user navigation in a multi-lingual +wiki:</p> + +<ul> +<li>"<code>lang(LL)</code>" - tests whether a page is written in the language +specified as a ISO639-1 (two-letter) language code.</li> +<li>"<code>currentlang()</code>" - tests whether a page is written in the same +language as the current page.</li> +<li>"<code>needstranslation()</code>" - tests whether a page needs translation +work. Only slave pages match this PageSpec. A minimum target +translation percentage can optionally be passed as an integer +parameter: "<code>needstranslation(50)</code>" matches only pages less than 50% +translated.</li> +</ul> + + +<p>Note that every non-po page is considered to be written in +<code>po_master_language</code>, as specified in <code>ikiwiki.setup</code>.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Seg 12 Jul 2010 16:42:30 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/pagespec/sorting/index.html b/ikiwiki/pagespec/sorting/index.html new file mode 100644 index 0000000..fbdd48e --- /dev/null +++ b/ikiwiki/pagespec/sorting/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>sorting</title> + +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li> + + <li><a href="../">pagespec</a> <span class="divider">/</span> </li> + + <li>sorting</li> + <li><span class="divider">|</span> <a href="../../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/pagespec/sorting.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + sorting + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sáb 12 Nov 2011 14:02:20 BRST</span></strong> + </p> + <p>Some <a href="../../directive/">directives</a> that use +<a href="../">PageSpecs</a> allow +specifying the order that matching pages are shown in. The following sort +orders can be specified.</p> + +<ul> +<li><p><code>age</code> - List pages from the most recently created to the oldest.</p></li> +<li><p><code>mtime</code> - List pages with the most recently modified first.</p></li> +<li><p><code>title</code> - Order by title (page name), e.g. "z/a a/b a/c"</p></li> +<li><p><code>path</code> - Order by page name including parents, e.g. "a/b a/c z/a"</p></li> +<li><p><code>meta(title)</code> - Order according to the <code>[[!meta title="foo" sortas="bar"]]</code> +or <code>[[!meta title="foo"]]</code> <a href="../../directive/">directive</a>, or the page name if no +full title was set. <code>meta(author)</code>, <code>meta(date)</code>, <code>meta(updated)</code>, etc. +also work.</p></li> +</ul> + + +<p>In addition, you can combine several sort orders and/or reverse the order of +sorting, with a string like <code>age -title</code> (which would sort by age, then by +title in reverse order if two pages have the same age).</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sáb 12 Nov 2011 14:02:20 BRST</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/relativedate.js b/ikiwiki/relativedate.js new file mode 100644 index 0000000..2a270d6 --- /dev/null +++ b/ikiwiki/relativedate.js @@ -0,0 +1,75 @@ +// Causes html elements in the 'relativedate' class to be displayed +// as relative dates. The date is parsed from the title attribute, or from +// the element content. + +var dateElements; + +hook("onload", getDates); + +function getDates() { + dateElements = getElementsByClass('relativedate'); + for (var i = 0; i < dateElements.length; i++) { + var elt = dateElements[i]; + var title = elt.attributes.title; + var d = new Date(title ? title.value : elt.innerHTML); + if (! isNaN(d)) { + dateElements[i].date=d; + elt.title=elt.innerHTML; + } + } + + showDates(); +} + +function showDates() { + for (var i = 0; i < dateElements.length; i++) { + var elt = dateElements[i]; + var d = elt.date; + if (! isNaN(d)) { + elt.innerHTML=relativeDate(d); + } + } + setTimeout(showDates,30000); // keep updating every 30s +} + +var timeUnits = [ + { unit: 'year', seconds: 60 * 60 * 24 * 364 }, + { unit: 'month', seconds: 60 * 60 * 24 * 30 }, + { unit: 'day', seconds: 60 * 60 * 24 }, + { unit: 'hour', seconds: 60 * 60 }, + { unit: 'minute', seconds: 60 }, +]; + +function relativeDate(date) { + var now = new Date(); + var offset = date.getTime() - now.getTime(); + var seconds = Math.round(Math.abs(offset) / 1000); + + // hack to avoid reading just in the future if there is a minor + // amount of clock slip + if (offset >= 0 && seconds < 30 * 60 * 60) { + return "just now"; + } + + var ret = ""; + var shown = 0; + for (i = 0; i < timeUnits.length; i++) { + if (seconds >= timeUnits[i].seconds) { + var num = Math.floor(seconds / timeUnits[i].seconds); + seconds -= num * timeUnits[i].seconds; + if (ret) + ret += "and "; + ret += num + " " + timeUnits[i].unit + (num > 1 ? "s" : "") + " "; + + if (++shown == 2) + break; + } + else if (shown) + break; + } + + if (! ret) + ret = "less than a minute " + + return ret + (offset < 0 ? "ago" : "from now"); +} diff --git a/ikiwiki/searching/index.html b/ikiwiki/searching/index.html new file mode 100644 index 0000000..f977a66 --- /dev/null +++ b/ikiwiki/searching/index.html @@ -0,0 +1,143 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>searching</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>searching</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/searching.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + searching + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Qua 26 Ago 2009 14:05:46 BRT</span></strong> + </p> + <p>This wiki has searching <strong>disabled</strong>.</p> + +<p>If searching is enabled, you can enter search terms in the search field, +as you'd expect. There are a few special things you can do to construct +more powerful searches.</p> + +<ul> +<li>To match a phrase, enclose it in double quotes.</li> +<li><code>AND</code> can be used to search for documents containing two expressions.</li> +<li><code>OR</code> can be used to search for documents containing either one of +two expressions.</li> +<li>Parentheses can be used to build up complicated search expressions. For +example, "(foo AND bar) OR (me AND you)"</li> +<li>Prefix a search term with "-" to avoid it from appearing in the results. +For example, "-discussion" will omit "discussion".</li> +<li>To search for a page with a given title, use "title:foo".</li> +<li>To search for pages that contain a "bar" link, use "link:bar".</li> +</ul> + + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">ikiwiki</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Qua 26 Ago 2009 14:05:46 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/subpage/index.html b/ikiwiki/subpage/index.html new file mode 100644 index 0000000..b40786c --- /dev/null +++ b/ikiwiki/subpage/index.html @@ -0,0 +1,141 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>subpage</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>subpage</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/subpage.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + subpage + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sáb 24 Abr 2010 01:55:09 BRT</span></strong> + </p> + <p>ikiwiki supports placing pages in a directory hierarchy. For example, +this page, <span class="selflink">SubPage</span> has some related pages placed under it, like +<a href="./linkingrules/">LinkingRules</a>. This is a useful way to add some order to your +wiki rather than just having a great big directory full of pages.</p> + +<p>To add a SubPage, just make a subdirectory and put pages in it. For +example, this page is subpage.mdwn in this wiki's source, and there is also +a subpage subdirectory, which contains subpage/linkingrules.mdwn. Subpages +can be nested as deeply as you'd like.</p> + +<p>Linking to and from a SubPage is explained in <a href="./linkingrules/">LinkingRules</a>.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">ikiwiki</a> + + <a href="../pagespec/">pagespec</a> + + <a href="./linkingrules/">subpage/linkingrules</a> + + <a href="../wikilink/">wikilink</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sáb 24 Abr 2010 01:55:09 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/subpage/linkingrules/index.html b/ikiwiki/subpage/linkingrules/index.html new file mode 100644 index 0000000..112e4f2 --- /dev/null +++ b/ikiwiki/subpage/linkingrules/index.html @@ -0,0 +1,160 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>linkingrules</title> + +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../../">ikiwiki</a> <span class="divider">/</span> </li> + + <li><a href="../">subpage</a> <span class="divider">/</span> </li> + + <li>linkingrules</li> + <li><span class="divider">|</span> <a href="../../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/subpage/linkingrules.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + linkingrules + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Sáb 04 Out 2008 11:11:08 BRT</span></strong> + </p> + <p>To link to or from a <a href="../">SubPage</a>, you can normally use a regular +<a href="../../wikilink/">WikiLink</a> that does not contain the name of the parent directory of +the <a href="../">SubPage</a>. Ikiwiki descends the directory hierarchy looking for a +page that matches your link.</p> + +<p>For example, if FooBar/SubPage links to "OtherPage", ikiwiki will first +prefer pointing the link to FooBar/SubPage/OtherPage if it exists, next +to FooBar/OtherPage and finally to OtherPage in the root of the wiki.</p> + +<p>Note that this means that if a link on FooBar/SomePage to "OtherPage" +currently links to OtherPage, in the root of the wiki, and FooBar/OtherPage +is created, the link will <em>change</em> to point to FooBar/OtherPage. On the +other hand, a link from BazBar to "OtherPage" would be unchanged by this +creation of a <a href="../">SubPage</a> of FooBar.</p> + +<p>You can also specify a link that contains a directory name, like +"FooBar/OtherPage" to more exactly specify what page to link to. This is +the only way to link to an unrelated <a href="../">SubPage</a>.</p> + +<p>You can use this to, for example, to link from BazBar to "FooBar/SubPage", +or from BazBar/SubPage to "FooBar/SubPage".</p> + +<p>You can also use "/" at the start of a link, to specify exactly which page +to link to, when there are multiple pages with similar names and the link +goes to the wrong page by default. For example, linking from +"FooBar/SubPage" to "/OtherPage" will link to the "OtherPage" in the root +of the wiki, even if there is a "FooBar/OtherPage".</p> + +<p>Also, if the wiki is configured with a userdir, you can link to pages +within the userdir without specifying a path to them. This is to allow for +easy linking to a user's page in the userdir, to sign a comment. These +links are checked for last of all.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../">subpage</a> + + <a href="../../wikilink/">wikilink</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Sáb 04 Out 2008 11:11:08 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> diff --git a/ikiwiki/toggle.js b/ikiwiki/toggle.js new file mode 100644 index 0000000..d190b73 --- /dev/null +++ b/ikiwiki/toggle.js @@ -0,0 +1,29 @@ +// Uses CSS to hide toggleables, to avoid any flashing on page load. The +// CSS is only emitted after it tests that it's going to be able +// to show the toggleables. +if (document.getElementById && document.getElementsByTagName && document.createTextNode) { + document.write('<style type="text/css">div.toggleable { display: none; }</style>'); + hook("onload", inittoggle); +} + +function inittoggle() { + var as = getElementsByClass('toggle'); + for (var i = 0; i < as.length; i++) { + var id = as[i].href.match(/#(\w.+)/)[1]; + if (document.getElementById(id).className == "toggleable") + document.getElementById(id).style.display="none"; + as[i].onclick = function() { + toggle(this); + return false; + } + } +} + +function toggle(s) { + var id = s.href.match(/#(\w.+)/)[1]; + style = document.getElementById(id).style; + if (style.display == "none") + style.display = "block"; + else + style.display = "none"; +} diff --git a/ikiwiki/wikilink/index.html b/ikiwiki/wikilink/index.html new file mode 100644 index 0000000..3e79500 --- /dev/null +++ b/ikiwiki/wikilink/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>wikilink</title> + +<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" /> +<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" /> + +<link rel="stylesheet" href="../../local.css" type="text/css" /> + + + + +<meta name="robots" content="noindex, follow" /> +<style type="text/css"> +@media (max-width: 979px) { + .navbar-fixed-top { + position: fixed; + margin-left: 0px; + margin-right: 0px; + } +} +</style> +</head> +<body> + +<div class="container"> + + <div class="row-fluid"> + <div class="span12"> + <h1></h1> + + <ul class="breadcrumb"> + + <li><a href="../../">Cache Saravento</a> <span class="divider">/</span> </li> + + <li><a href="../">ikiwiki</a> <span class="divider">/</span> </li> + + <li>wikilink</li> + <li><span class="divider">|</span> <a href="../../tarefas">Tarefas</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=history;f=ikiwiki/wikilink.mdwn">Histórico</a></li> + <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=cache.git;a=atom">Feed</a></li> + </ul> + </div> + </div> + + <div class="page row-fluid"> + + <div> + <div class="pageheader"> + <div class="header"> + <h1> + wikilink + + </h1> + + </div> + + </div> + + <div id="pagebody"> + + <div id="content"> + <p class="pagedate"> + <strong>Posted <span class="date">Qua 23 Jun 2010 15:23:09 BRT</span></strong> + </p> + <p>WikiLinks provide easy linking between pages of the wiki. To create a +<span class="selflink">WikiLink</span>, just put the name of the page to link to in double brackets. +For example <code>[[WikiLink]]</code>.</p> + +<p>If you ever need to write something like <code>[[WikiLink]]</code> without creating a +wikilink, just prefix it with a <code>\</code>, like <code>\[[WikiLink]]</code>.</p> + +<p>There are some special <a href="../subpage/linkingrules/">LinkingRules</a> that come into play when +linking between <a href="../subpage/">SubPages</a>.</p> + +<p>WikiLinks are matched with page names in a case-insensitive manner, so you +don't need to worry about getting the case the same, and can capitalise +links at the start of a sentence, and so on.</p> + +<p>It's also possible to write a WikiLink that uses something other than the page +name as the link text. For example <code>[[foo_bar|SandBox]]</code> links to the SandBox +page, but the link will appear like this: <a href="../../sandbox/">foo bar</a>.</p> + +<p>To link to an anchor inside a page, you can use something like +<code>[[WikiLink#foo]]</code> .</p> + +<p>If the file linked to by a WikiLink looks like an image, it will +be displayed inline on the page.</p> + +<hr /> + +<p>You can also put an url in a WikiLink, to link to an external page. +Email addresses can also be used to generate a mailto link.</p> + + </div> + + <hr /> + + + + + + </div> + + <div id="footer" class="pagefooter"> + + <div id="pageinfo"> + + + + + <div id="backlinks"> + Links: + + <a href="../directive/">directive</a> + + <a href="../formatting/">formatting</a> + + <a href="../">ikiwiki</a> + + <a href="../markdown/">markdown</a> + + <a href="../../sandbox/">sandbox</a> + + <a href="../../smileys/">smileys</a> + + <a href="../subpage/linkingrules/">subpage/linkingrules</a> + + + </div> + + + + + + + <!--<div class="pagedate"> + Last edited <span class="date">Qua 23 Jun 2010 15:23:09 BRT</span> + </div> --> + + </div> + + + <!-- from Cache Saravento --> + </div> + + </div> + + <div class="span4"> + + + + </div> + + </div> +</div> + +</body> +</html> |