]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Fri, 21 Feb 2014 15:19:41 +0000 (11:19 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 21 Feb 2014 15:19:41 +0000 (11:19 -0400)
doc/forum/How_can_I_invert_the_banned__95__user_check__63__.mdwn [new file with mode: 0644]
doc/forum/formating:_how_to_align_text_to_the_right.mdwn
doc/ikiwikiusers.mdwn
doc/sandbox.mdwn
doc/sandbox/New_blog_entry.mdwn [new file with mode: 0644]

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 (file)
index 0000000..2436b2e
--- /dev/null
@@ -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]]
index 2eaa29d02ed57960d21af70359536435e750a0ea..e01eccb92c4f6c98cb5b4687f3978a2cf4760ee1 100644 (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
 
index 70d5042b774e5f2ad1eb0f13c81706a4af1e4704..4c5eb96e00ebd0730b5ac0068630f55db67bb60e 100644 (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
 ========================
index 158dc3ce5c29dbc1413568bebefcb9a33bb38143..06c2d7ca72e01c8f48e81e29a29a02aaff597c78 100644 (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?`
+
+
diff --git a/doc/sandbox/New_blog_entry.mdwn b/doc/sandbox/New_blog_entry.mdwn
new file mode 100644 (file)
index 0000000..9327285
--- /dev/null
@@ -0,0 +1,3 @@
+Räksmörgåstest.
+
+ハッカー