claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Ability to serve multiple wikis #66

Open simonzack opened 9 years ago

simonzack commented 9 years ago

Can you consider allowing multiple wikis to be served? I have some projects hosted locally, and each needs a separate wiki. It's rather tedious to start a new instance for each wiki when switching between projects. I imagine this could be done with some sort of "central" page with a list of wikis, and the wikis themselves being served on subdirectories. IMO this is a major shortcoming of gollum.

claudioc commented 9 years ago

Interesting feature. I am not sure how to make it work so to accomodate most use cases, though. You could have different wiki as different repos in different directories or different wikis on the same repo but in different directories. Maybe jingo could start in "multi-wiki" mode, so that in the configuration you could provide an array of repositories. But they would need to share the authentication and a lot of other things, anyway (or it would be really too complicated).

Something like:

wikis:
   - Cats
      repository: xxxx
   - Dogs
      repository: yyyy
   - Whales
      repository: zzzz

At that point the wikis will be served with urls like /wiki/Cats/my-beloved-one and so on.

It sounds like a nice feature but at the moment I can't see all the implications.

almereyda commented 9 years ago

The smallest federated wiki has a farm mode, if that pleases your request.

And since we undoubtedly share several requirements with the Federated Wiki, you may even want to see if our user stories couldn't be written partly together.

I am willing to provide further details upon FedWiki's farm mode in a new thread within the support category of the newly started community initiative federated.wiki, for example.