Comments (8)
Why would we go for one-wiki-one-folder structure?
- It boils things down to just a single one-liner for your new wiki (when #55 will be done):
mycorrhiza cool-wiki
- Now there's no confusion between a default configuration and a non-existent configuration—it's either there (and that's good) or it's not (and we just populate it using a setup wizard).
- It's a foundation for supporting different storages. Now we can have
wiki.git
,wiki.db
or something else right inside the wiki directory.
How could we go about it?
@bouncepaw suggested a nice file structure, and with my suggestion applied it becomes this:
cool-wiki/
|- wiki.git/ # Git repository
|- config.ini
|- registered-users.json
|- fixed-users.json
|- cache/
|- tokens.json
|- rendered-hyphae/
|- resized-media/
Why is this good?
- Now we can run multiple wikis from the same user, and they'll not conflict with each other.
- This structure makes it much easier to manage the wiki for administrators. All files are placed inside this folder and not scattered across your home directory.
Why is this bad?
I dunno, can't think of anything.
from mycorrhiza.
I've written https://github.com/bouncepaw/mycorrhiza/blob/f61a4c1168375a364834c5c4644bfc9655a94277/files/Structure.md for developers' pleasure
from mycorrhiza.
@bouncepaw cool ideas, i just want to remind about plugins that can be changed without recompiling and that can depend on wiki. Such as js-only plugins
from mycorrhiza.
It's a foundation for supporting different storages.
That's where dynamic hyphae will be stored, cool. wiki.dynamic
or something.
Why is this bad?
The only downside is that it's a breaking change. Good news: full compatibility between versions was never really promised!
So, what do others think?
from mycorrhiza.
So, what do others think?
I don't very like such folder-in-folder structure, even in my programming projects. But this is not an objective reason :) Pros looks tasty. Also, maybe mycorrhiza can use sqlite db for cache (tokens, pre-renders etc)
from mycorrhiza.
maybe mycorrhiza can use sqlite db for cache (tokens, pre-renders etc)
It can and it may happen like that one day. Not anytime soon though...
from mycorrhiza.
cool
from mycorrhiza.
Implemented in 1.2
from mycorrhiza.
Related Issues (20)
- `silentGitsh` ignores environment variables HOT 1
- Changing passwords HOT 10
- Make a new category auto-complete based on JavaScript
- Category descriptions
- Mycorrhiza 1.15 HOT 2
- Categories is not available HOT 8
- Make -create-admin more known HOT 1
- Rename hypha renames git repo instead HOT 5
- custom.css file HOT 6
- Caching static resources HOT 2
- Replace default static files HOT 5
- naming hypha 'wiki' results in unexpected behavior HOT 1
- A proper admin creation
- Language should be picked in settings by admins, not on client
- External links with a globe icon should always be on the same line HOT 7
- Add local time buttons in the editor
- Interwiki transclusion
- Can't remove media file from hypha HOT 4
- Math/LaTeX support in markup HOT 2
- Decrease tab-size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mycorrhiza.