aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-02-21 11:19:41 -0400
committerJoey Hess <joey@kitenet.net>2014-02-21 11:19:41 -0400
commit72e92f8003424196ca24f79182100477f973e786 (patch)
tree026f117613c48c178ceb3f4dd66e033cf0136d9c
parentd81d20e52cf34c2238b452dd2f4a2f5bd1410467 (diff)
parent020af308a2d2aeff642f9d191feb2a46d34fc669 (diff)
downloadikiwiki-72e92f8003424196ca24f79182100477f973e786.tar
ikiwiki-72e92f8003424196ca24f79182100477f973e786.tar.gz
Merge branch 'master' of ssh://git.ikiwiki.info
-rw-r--r--doc/forum/How_can_I_invert_the_banned__95__user_check__63__.mdwn33
-rw-r--r--doc/forum/formating:_how_to_align_text_to_the_right.mdwn24
-rw-r--r--doc/ikiwikiusers.mdwn2
-rw-r--r--doc/sandbox.mdwn6
-rw-r--r--doc/sandbox/New_blog_entry.mdwn3
5 files changed, 67 insertions, 1 deletions
diff --git a/doc/forum/How_can_I_invert_the_banned__95__user_check__63__.mdwn b/doc/forum/How_can_I_invert_the_banned__95__user_check__63__.mdwn
new file mode 100644
index 000000000..2436b2e56
--- /dev/null
+++ b/doc/forum/How_can_I_invert_the_banned__95__user_check__63__.mdwn
@@ -0,0 +1,33 @@
+Trying to lockdown a wiki so that it can only be edited by certain users and figured I'd just set
+
+ banned_users:
+ - !user(myadmin)
+
+in my config but it doesn't work. I'm sure I must be doing something daft?
+
+PS: the user is authenticated via 'httpauth', would that make a difference?
+
+> That's not how `banned_users` works. Make yourself an admin:
+>
+> adminuser:
+> - myadmin
+>
+> and disallow editing by non-admins:
+>
+> locked_pages: '*'
+>
+> You can enable the `opendiscussion` and/or `anonok` plugins if you want
+> unprivileged users, perhaps logging in with an OpenID, to be able to
+> edit discussion pages (if enabled via `discussion`) or post comments.
+>
+> You can also relax the `locked_pages` setting if you want unprivileged
+> users to be able to edit certain areas of the site.
+>
+> --[[smcv]]
+
+>> That was my initial setup but it wasn't working and I got caught-up on the `banned_user` idea. It would seem I was getting tricked by some credential-caching-weirdness. Fired up another browser and `locked_pages` works perfectly. Thanks. -- fergus
+
+>>> Browsers generally remember HTTP auth credentials until they're closed
+>>> or get a 401 error, and don't generally have a way to "log out".
+>>> As far as I'm aware, there's nothing that [[plugins/httpauth]] can
+>>> do about that. --[[smcv]]
diff --git a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
index 2eaa29d02..e01eccb92 100644
--- a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
+++ b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
@@ -15,6 +15,30 @@ As in title, how to align text to the right?
>> Thanks!
-----
+<div class="notebox">
+[[!format mdwn """
+This is my text with [a markdown link](#).
+
+Here's a *second* paragraph.
+"""]]
+</div>
+
+> There is more than one way to do it. If [[plugins/format]] is enabled, then this:
+>
+> <div class="notebox">
+> \[[!format mdwn """
+> This is my text with [a markdown link](#).
+>
+> Here's a *second* paragraph.
+> """]]
+> </div>
+>
+> is rendered like the box in this page.
+>
+> (I'm using the `notebox` class used by the `note` template here, but you could
+> use any class.) --[[smcv]]
+
+-----
> Doing this myself and noted that [[ikiwiki/markdown]] down does not allow the enclosure of block level elements directly; and thus we cannot switch the `span` suggested above for `div` in changing block level elements (not if you wish to include markdown, anyway). For example, I want to create a paragraph (with markdown text) which is right aligned, and so add the following
>> <span class="right_align">
diff --git a/doc/ikiwikiusers.mdwn b/doc/ikiwikiusers.mdwn
index 70d5042b7..4c5eb96e0 100644
--- a/doc/ikiwikiusers.mdwn
+++ b/doc/ikiwikiusers.mdwn
@@ -50,7 +50,6 @@ Projects & Organizations
* [Public Domain collection of Debian related tips & tricks](http://dabase.com/tips/) - please add any tips too
* [Finnish Debian community](http://debian.fi)
* [dist-bugs](http://dist-bugs.kitenet.net/)
-* [Chaos Computer Club Düsseldorf](https://www.chaosdorf.de)
* [monkeysphere](http://web.monkeysphere.info/)
* [Cosin Homepage](http://cosin.ch) uses an Ikiwiki with a subversion repository.
* [Bosco Free Orienteering Software](http://bosco.durcheinandertal.ch)
@@ -89,6 +88,7 @@ Projects & Organizations
* [[Nos oignons|http://nos-oignons.net]] - Tor exit nodes funded by the community.
* [[CAS Libres|http://cas-libres.poivron.org]] - A French feminist radio program.
* [[Les Barricades|http://barricades.int.eu.org]] - A French socialist choir (CSS has been adapted from the one of [[Grésille|http://www.gresille.org]]).
+* [[DKØTU Amateur Radio Station]](http://www.dk0tu.de), TU Berlin
Personal sites and blogs
========================
diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn
index 158dc3ce5..06c2d7ca7 100644
--- a/doc/sandbox.mdwn
+++ b/doc/sandbox.mdwn
@@ -110,3 +110,9 @@ This is some preformatted text. Each line is proceeded by four spaces.
</test>
...Now why doesn't it work like that on my copy of ikiwiki? :(
+
+Räksmörgås.
+
+`pre?`
+
+
diff --git a/doc/sandbox/New_blog_entry.mdwn b/doc/sandbox/New_blog_entry.mdwn
new file mode 100644
index 000000000..932728561
--- /dev/null
+++ b/doc/sandbox/New_blog_entry.mdwn
@@ -0,0 +1,3 @@
+Räksmörgåstest.
+
+ハッカー