Removed temporary files.

This commit is contained in:
Lukas Pfannschmidt 2016-01-07 18:29:51 +01:00
parent ac22cb54c2
commit 8b7f4c9d33
9 changed files with 13 additions and 263 deletions

0
README.md Normal file → Executable file
View file

2
doku.py Normal file → Executable file
View file

@ -29,5 +29,5 @@ class DokuWiki:
cmd = ['./doku.php', method ] + args
res = subprocess.Popen(cmd, stdin = None, stdout = subprocess.PIPE, stderr = sys.stderr, close_fds = True).communicate()
self.callcache[key] = unicode(res[0].decode('utf-8'))
#print "%s->%s" % (cmd, self.callcache[key])
print "%s->%s" % (cmd, self.callcache[key])
return self.callcache[key]

BIN
doku.pyc

Binary file not shown.

Binary file not shown.

View file

@ -1,238 +0,0 @@
<file>#pragma section-numbers off
#acl All:admin,read,write,delete,revert
#language en</file>
This page tries to use each supported markup element at least once.
<file>'''Index'''
[[TableOfContents(2)]]</file>
**Index**
[[:TableOfContents(2)|TableOfContents(2)]]
====== Headers ======
===== Header 2 =====
==== Header 3 ====
=== Header 4 ===
== Header 5 ==
====== Font styles ======
<file>Normal text, ''emphasized'', '''strong''', __underline__, ,,subscript,,, ^superscript^, `typewriter` and {{{typewriter</file>
.}}}
Normal text, //emphasized//, **strong**, __underline__, <sub>subscript</sub>, <sup>superscript</sup>, ''typewriter'' and ''typewriter''.
===== Syntax Highlighting =====
* <code >
# python code
print code.colorize("abc", 1 + 1)</code>
====== Hyperlinks ======
===== Internal =====
<file> * MoinMoin
* MoinMoin/TextFormatting
* MoinMoin/InstallDocs
* ../InstallDocs
* /SubPage
* Self:InterWiki</file>
* [[:MoinMoin|MoinMoin]]
* [[:MoinMoin:TextFormatting|MoinMoin/TextFormatting]]
* [[:MoinMoin:InstallDocs|MoinMoin/InstallDocs]]
* [[:InstallDocs|../InstallDocs]]
* [[:test:SubPage|/SubPage]]
* [[:InterWiki|InterWiki]]
<file>[#anchorname Anchor Link]</file>
[#anchorname Anchor Link]
===== External =====
<file> * http://moinmoin.wikiwikiweb.de/
* [http://moinmoin.wikiwikiweb.de/]
* [http://moinmoin.wikiwikiweb.de/ MoinMoin Wiki]
* [http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png]
* http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png
* [http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png moinmoin.png]
* MeatBall:InterWiki
* wiki:MeatBall/InterWiki
* [wiki:MeatBall/InterWiki]
* [wiki:MeatBall/InterWiki InterWiki page on MeatBall]
* [file://servername/full/path/to/file/filename%20with%20spaces.txt Click here to read filename with spaces.txt]
* me@privacy.net</file>
* [[http://moinmoin.wikiwikiweb.de/|http://moinmoin.wikiwikiweb.de/]]
* [[[http://moinmoin.wikiwikiweb.de/|http://moinmoin.wikiwikiweb.de/]]]
* [[[http://moinmoin.wikiwikiweb.de/|http://moinmoin.wikiwikiweb.de/]] [[:MoinMoin|MoinMoin]] Wiki]
* [[[http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png|http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png]]]
* [[http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png|http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png]]
* [[[http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png|http://moinmoin.wikiwikiweb.de/wiki/classic/img/moinmoin.png]] moinmoin.png]
* [[MeatBall>InterWiki|InterWiki]]
* wiki:[[:MeatBall:InterWiki|MeatBall/InterWiki]]
* [wiki:[[:MeatBall:InterWiki|MeatBall/InterWiki]]]
* [wiki:[[:MeatBall:InterWiki|MeatBall/InterWiki]] [[:InterWiki|InterWiki]] page on [[:MeatBall|MeatBall]]]
* [[[file://servername/full/path/to/file/filename%20with%20spaces.txt|file://servername/full/path/to/file/filename%20with%20spaces.txt]] Click here to read filename with spaces.txt]
* [[mailto:me@privacy.net|me@privacy.net]]
===== Escaping WikiNames =====
<file>Wiki''''''Name
Wiki``Name</file>
Wiki****Name Wiki''''Name
====== Blockquote ======
<file> This is indented
Even more</file>
* This is indented
* Even more
====== Bullet list ======
<file> * item 1
* item 2, with gap
* item 3
* item 3.1</file>
* item 1
* item 2, with gap
* item 3
* item 3.1
====== Numbered list ======
<file> 1. item 1
i. item 1
i. item 2</file>
- item 1
- item 1
- item 2
<file> 1. item 2
a. item 1
a. item 2</file>
- item 2
- item 1
- item 2
====== Descriptions + Definitions ======
<file> Term:: Description
Label:: Definition</file>
<gloss><label>Term</label><item>Description </item><label>Label</label><item>Definition </item></gloss>
====== Code display ======
* <file>line 1
indented 4 characters</file>
====== Tables ======
===== General table layout and HTML like options =====
<file> ||cell 1||cell2||cell 3||</file>
*
|cell 1|cell2|cell 3|
====== Rules ======
<file>--- (not a rule)
----
-----
------
-------
--------
---------
----------
-------------------------------------------- (not thicker than 10)</file>
--- (not a rule)
-
--
---
----
----
----
----
(not thicker than 10)
====== Macros ======
<file>[[Anchor(anchorname)]]
'''[[PageCount]]''' pages</file>
[[:Anchor(anchorname)|Anchor(anchorname)]] **[[:PageCount|PageCount]]** pages

View file

@ -1,22 +0,0 @@
from MoinMoin.server.standalone import StandaloneConfig, run
import sys
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, 'home/caddy/wikifarm/var/wikifarm/config')
# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use setup.py.
sys.path.insert(0, '/usr/local/lib/python2.4/site-packages')
# Path of the directory where farmconfig.py is located (if different).
sys.path.insert(0, '/home/caddy/wikifarm/var/wikifarm/config')
class Config(StandaloneConfig):
docs = '/home/caddy/wikifarm/var/wikifarm'
user = 'http'
group = 'http'
port = 80
run(Config)

0
syntaxreference.txt Normal file → Executable file
View file

14
text_dokuwiki.py Normal file → Executable file
View file

@ -82,7 +82,7 @@ class Formatter(FormatterBase):
def attachment_link(self, on, url=None, querystr=None, **kw):
if on:
return '{{ %s | }}' % (self.randomID+url)
return '{{ %s | ' % (self.randomID+url)
else:
return ' }}'
@ -138,6 +138,13 @@ class Formatter(FormatterBase):
return ['', '\n'][on]
# generic transclude/include:
def transclusion(self, on, **kw):
return ''
def transclusion_param(self, **kw):
return ''
def listitem(self, on, **kw):
# somewhy blockquote uses "listitem" call
return [(' ' * self.list_depth * 2) + self.list_type + ' ', '\n'][not on]
@ -297,7 +304,10 @@ class Formatter(FormatterBase):
def showAttachedFiles(args):
args = args.split(',')
return '{{ %s | %s }}' % (self.randomID+args[0].strip(), args[1].strip())
if len(args)>1:
return '{{ %s | %s }}' % (self.randomID+args[0].strip(), args[1].strip())
else:
return ''
# function which will just do what parent class would
def inherit(args):

Binary file not shown.