156

Two days ago, I deployed the official wiki for lemmy.dbzer0.com. It's using django-wiki as a software, which other than being markdown-based and therefore helping lemmings easily migrate documentation over, provides python hooks for doing some really cool stuff.

For example my current version is tied to my lemmy instance. This means that while everyone can read the wiki, only registered users of my instance can edit articles. This helps prevents the usual problem of open wikis, which is drive-by spam articles, and ensures that only people with interest in the wiki can use it.

I plan to extend this integration in the future. I am thinking things like minimum account age to edit all or some pages, profile pages which enable even tighter integrations, being able to specify "trusted instances" which would allow edits from their users as well, and so on.

But that's not all, the same approach I used, can also be used to integrate with any fediverse software, like mastodon. This means each instance could theoretically have its own wiki to extend the information adjacent to it.

I'll soon (I hope) will provide an ansible playbook that anyone can use to deploy it which will also provide my custom code to integrate with lemmy.

all 15 comments
sorted by: hot top controversial new old
[-] maegul@lemmy.ml 16 points 1 year ago

Ummm … fuck yes that’s awesome!!

[-] tal@kbin.social 12 points 1 year ago* (last edited 1 year ago)

Reddit had the ability to have a per-subreddit wiki. I never dug into it on the moderator side, but it was useful for some things like setting up pages with subreddit rules and the like. I think that moderators had some level of control over it, at least to allow non-moderator edits or not, maybe on a per-page basis.

That could be a useful option for communities; I think that in general, there is more utility for per-community than per-instance wiki spaces, though I know that you admin a server with one major community which you also moderate, so in your case, there may not be much difference.

I don't know how amenable django-wiki is to partitioning things up like that, though.

EDIT: https://www.reddit.com/wiki/wiki/ has a brief summary.

[-] poVoq@slrpnk.net 2 points 1 year ago

Indeed that is also what I had in mind regarding linking up a Wiki to Lemmy.

It should be possible I guess to link community membership to wiki groups and those groups each have their own name-space that looks like a seperate wiki more or less.

[-] poVoq@slrpnk.net 7 points 1 year ago

Hmm, I am working on a similar Dokuwiki integration. Have not gotten very far with it though. Maybe I should give this a look instead 🤔

[-] db0@lemmy.dbzer0.com 7 points 1 year ago

While I love Dokuwiki as well, the fact that it has a slightly different markup language would be a stumbling block for users moving info over. Also, django-wiki is python, which I know and can extend, while Dokuwiki is php, which I don't. :)

[-] Blizzard@lemmy.zip 2 points 1 year ago

Dookuwiki

Have not gotten very far with it though.

Master Kenobi, you disappoint me. Yoda holds you in such high esteem. Surely you can do better!

[-] palitu@aussie.zone 5 points 1 year ago

Cool work! Love the idea of hooking into the fediverse toolset

This is extremely cool, thank you for your work! Would you consider supporting a container deployment alongside existing container hosted Lemmy instances? No worries if that breaks to far from your workflow.

[-] db0@lemmy.dbzer0.com 2 points 1 year ago

Sadly there's no container for django-wiki atm. The existing implementation is 3 years old and unmaintained so it's fallen very far behind. My deployment is pure ansible, so I plan to post a public version of it, but if you want it in container form to sit alongside lemmy, someone else has to dockerize it and ensure it's up to date

Ah, if that's the case then I'll work on making my own container image based on your ansible implementation. Don't worry about it, you're already doing more than I can. Looking forward to the release!

[-] Dave@lemmy.nz 4 points 1 year ago

Is there a reason you went with this approach of claiming accounts (as opposed to say the system for Fediseer, where it messages you on Lemmy to claim it, or the lemmy Oauth system)?

[-] db0@lemmy.dbzer0.com 10 points 1 year ago

Yes, there's no current hooks provided by django-wiki for user registration etc. I have opened requests to add them and I'm planning to adjust the procedure further then. I could also extend the django-wiki myself, but I have my hands full already with my other projects.

Ultimately the best would indeed be some sort of lemmy oauth system to register. I'm hoping this might be possible at some point in the future. This kind of thing requires more developers jumping in and this is partly why I make these posts as well.

[-] feminalpanda@lemmings.world 3 points 1 year ago

That would be great, I have been looking at alternatives for the trans surgery wiki on Reddit in case they go the way of Tumblr.

this post was submitted on 02 Oct 2023
156 points (97.6% liked)

Selfhosted

40153 readers
221 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS