Merge branch 'master' of ssh://git.ikiwiki.info

master
Joey Hess 2014-02-21 11:19:41 -04:00
commit 72e92f8003
5 changed files with 67 additions and 1 deletions

View File

@ -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]]

View File

@ -14,6 +14,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

View File

@ -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
========================

View File

@ -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?`

View File

@ -0,0 +1,3 @@
Räksmörgåstest.
ハッカー