mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:57:36 -05:00
Abstracting the template from main project. #164
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bamieh on GitHub (Aug 25, 2017).
Originally assigned to: @NGPixel on GitHub.
I use python notebooks (jupyter) with pelican for my blog, and they have a great feature of the ability to extend the template or override it by having a src file in the root file of the running wiki.
This way the template can be abstracted from the main project, and allow the community to contribute in extra templates and endless features.
Basically a wiki project look into the folders of the project for a template directory, if its there one, it will use what is there. lets say i want to edit the css of the project, i will have something like
You can check jupyter projects or pelican themes for jupyter for example: https://github.com/getpelican/pelican-themes
@NGPixel commented on GitHub (Aug 28, 2017):
Interesting idea. Something similar could be implemented in 2.0 however it will likely not be disk based as your example. Users could instead enter their template / css / js code via the UI.
@Bamieh commented on GitHub (Aug 28, 2017):
@NGPixel i can start working on it, but can you clarify by what you mean exactly that they enter their code via the UI?
Here are some thoughts i have:
config.yml.@NGPixel commented on GitHub (Aug 28, 2017):
The main case for entering template code via the UI is to save it to the database + not having to restart the app on every change.
The issues with disk based templates are 1) If you run multiple instances (distributed on multiple servers), you'd have to copy your templates to every server as well. 2) Very difficult to use disk based templates in containers like docker or heroku. You'd have to clone a repo, make the changes and redeploy the container every single time.
That being said, having both options is totally possible.
@Bamieh commented on GitHub (Aug 29, 2017):
sounds good, its easy to implement both options i believe. i'll start working on it this weekend
@NGPixel commented on GitHub (Oct 21, 2017):
Added base theme structure in dev branch:
https://github.com/Requarks/wiki/tree/dev/themes/default