Comments (13)
@Losses This has already been addressed in 2.0.
any documentation on this feature? How can this be done?
from wiki.
I was able to edit all of them by just switching between minified and non-minified CSS and editing that way, and views is the same way :3
Tbh, no clue on the second one, but GitHub might be a start, as we run our Discord bot grabbing pages from a pages.md that we've setup
from wiki.
@thomasmiguelthompson Thanks. Yes I thought so too about the CSS, but it would be better to be able to modify the SCSS and generate the CSS since that is more efficient than meddling with the CSS directly.
from wiki.
Yeah, agreed :3
from wiki.
Layout can be edited under ./views
as you found out.`
However, you cannot edit CSS directly. You must clone the Wiki.js github repo directly to get the developer files, which are not included in release packages / npm. SCSS files are found under ./client/scss
and can be compiled by running gulp css-app
.
There's no easy theming functionnality at the moment, but something that could be added in future releases.
from wiki.
@NGPixel thanks, I did this and got it to work. To develop gulp css-app watch
is useful.
from wiki.
Theming functionality would be great. But better think it out well :)
from wiki.
@NGPixel Looks like you removed gulp from the project. How do I compile the css now?
from wiki.
To compile for production:
$ npm run build
To run in dev mode and watch for changes:
$ npm run dev
If you use the dev mode, you must run npm run build
before deploying to generate a production version of the bundle. The dev mode doesn't uglify the bundle and certain libs are set to run in debug mode.
from wiki.
@NGPixel thanks for explaining...
from wiki.
I'm trying to change and recompile the scss
files, but I'm new to node.js
so please bear with me. This is what I did:
- I installed
wiki
in directorywiki.js
. It works fine. - I downloaded
wiki-master
from github (into a zip file). - I extracted the contents of
wiki-master
into the contents ofwiki.js
directory (to match the subdirectories). - I changed the
scss
files.
But when I try to recompile with npm run dev
I get errors. What am I doing wrong?
from wiki.
@NGPixel Is it possible to create two blank files on a specific folder (like userScript.js, userStyle.css), make wiki.js load these file by adding these file to the template HTML.
Anyone want to customize their wiki just need to edit the files and don't need to rebuild anything.
Is this a good idea?
(just a suggestion for further versions)
from wiki.
@Losses This has already been addressed in 2.0.
from wiki.
Related Issues (20)
- Markdown Highlighting Not working in View Mode
- DO NOT CREATE ISSUES, READ FIRST!
- error message when saving Page
- Search HOT 1
- File Manager
- PDF Viewer HOT 1
- Markdown Editor
- WYSIWYG Editor
- Common Editor Features
- Approval Workflow HOT 2
- Audit Log
- Page History HOT 2
- Navigation Sidebar HOT 1
- Authentication
- Database Problem?
- Export as 11ty / nuxt static site
- Use Iconify to load icons HOT 1
- v3 Feature Parity Checklist HOT 13
- Error in Connecting with Postgres database (Some malware runs and kills postgresql) 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 wiki.