From 44407376a39cd71f292875c4d09214277110d724 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 7 Aug 2011 14:06:10 +0000 Subject: [PATCH] globalized wiki engine svn path=/trunk/; revision=6 --- Wiki.css | 51 -------------------------------------- Wiki.page | 29 +++++++++++++--------- index.cgi | 1 + wikitext.css | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+), 62 deletions(-) create mode 100644 wikitext.css diff --git a/Wiki.css b/Wiki.css index 7d760ef..f519acc 100644 --- a/Wiki.css +++ b/Wiki.css @@ -78,57 +78,6 @@ width: 99%; min-height: 30em; } -.wiki h1 { - text-align: center; - font: normal bold 2em sans-serif; - margin: 0em 0em 0em 0em; - border-style: none none solid none; - border-width: 1px; -} -.wiki h1 + h2{ - margin: .5em 0em .3em 0em; -} -.wiki h2 { - text-align: left; - font: normal bold 1.3em sans-serif; - margin: 1em 0em .3em 0em; - border-style: none none solid none; - border-width: 1px; border-color: #AAF; -} -.wiki h2 + p { margin: 0em; } -.wiki h3 { - text-align: left; - font-size: 1.1em; - margin: .6em 0em .3em 0em; -} -.wiki h3 + p { margin: 0em; } -.wiki h4 { - text-align: left; - font-size: 1em; - margin: .6em 0em .3em 0em; -} -.wiki h4 + p { margin: 0em; } -.wiki p { - margin: .6em 0em; -} -.wiki ul { - text-indent: 0em; - margin: .3em 0em; - padding: 0em 4ex; -} -.wiki ul ol {font-size: .9em; margin: 0em;} -.wiki ol { - text-indent: 0em; - margin: .3em 0em; - padding: 0em 4ex; -} -.wiki ol ul {font-size: .9em; margin: 0em;} -.wiki pre { - background-color: #EEE; - padding: .5em; - border-style: solid; border-width: 1px; - border-color: #AAF; -} .article { float: left; diff --git a/Wiki.page b/Wiki.page index 5effa39..4909663 100755 --- a/Wiki.page +++ b/Wiki.page @@ -25,10 +25,9 @@ if [ -n "$edit" -a -r "Wiki/$edit" ]; then title="$(egrep -x 'title=.+' "Wiki/$edit.meta" |cut -d= -f2- || echo '(Untitled)')" cat < -
Editing $title
- +
@@ -39,6 +38,14 @@ if [ -n "$edit" -a -r "Wiki/$edit" ]; then + WikiEND elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then @@ -81,10 +88,10 @@ elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then
-
+

$title

$(_wiki Wiki/"${info}${rev}") -
+
WikiEND @@ -95,16 +102,16 @@ $LOGIN && cat < Comment:

- + Cancel WikiEND stat -c '' Wiki/${info}.comment.<0000000000-9999999999>_<000-999> && for each in $(ls -c Wiki/${info}.comment.<0000000000-9999999999>_<000-999>); do author=$(grep -m1 '^author=' "$each" |cut -d= -f2-) - echo "

$author wrote:

" - tail -n-1 $each - echo '
' + echo "

$author wrote:

" + tail -n+2 $each |_wiki + echo '
' done echo '' @@ -136,7 +143,7 @@ WikiEND
Description:

- + Cancel @@ -155,7 +162,7 @@ WikiEND

$title

$description

View - $($LOGIN && echo "Change Title") + $($LOGIN && echo "Change Info") WikiEND $LOGIN && cat <Title:
Description:

- + Cancel diff --git a/index.cgi b/index.cgi index 4f3a10f..6710ea3 100755 --- a/index.cgi +++ b/index.cgi @@ -42,6 +42,7 @@ cat <Busy + $([ -r "${page}.css" ] && echo '')