fraina / stm-dokuwiki-template Goto Github PK
View Code? Open in Web Editor NEWAnother simple, clean and responsive theme for dokuwiki.
Home Page: https://www.dokuwiki.org/template:stm
Another simple, clean and responsive theme for dokuwiki.
Home Page: https://www.dokuwiki.org/template:stm
Is it possible to enable TOC for pages using this template ?
Hi there,
Firstly, this is a great looking template, which is why I'm eager to get this issue resolved. Not sure if I'm being a total n00b or not, but how do you create a sidebar? I have a sidebar already created, which has worked with the default and other templates. On using STM, the sidebar disappears, replaced only with the name of the page I'm currently on (which is 'Start'). This makes it impossible to navigate, without having to go to the sitemap and choose the page from there.
Apologies in advance if this is truly stupid.
This is a copy of dokuwiki/dokuwiki#2764 by @a20eac1d.
I have installed the latest version of DokuWiki and created an article. I've uploaded a picture and added it to the article. The picture shows correctly within the article. When I click on the picture, I get redirected to this page:
http://wiki.domain.com/lib/exe/detail.php?id=welcome&media=2019_04_24_11_05_40_Webwood_Lurker_NPC_Classic_DB.png
The page is supposed to show the picture in a bigger format and also some additional information related to the picture.
What happens instead is, the page loads about 5% of the picture and then freezes the browser tab. The browser keeps loading in an endless loop and soon reports that "one tab is freezing your browser". The CPU usage for that core jumps to almost maximum.
As far as I can tell, this only happens with certain PNG images. I have confirmed that the attached three images cause this issue 100% of the time. I hope attaching them here does not change them in any way.
How to reproduce: Create an article, attach one of the pictures and embed it with a link to the detail page, save the article and click on the picture.
Looking into the issue, the browser is stuck when executing a match of regex.
STM-Dokuwiki-Template/script.js
Lines 39 to 40 in ba18e66
I am not sure what that regex is doing, and also not sure why it makes the browser stuck. A easy reproducible JavaScript is:
"56822997-019ab080-6853-11e9-9e46-2d9c1b79fc95.png".match(/^([^:]+[\w]+[^<])+([<].*)/)
First of all let me start with how much I love this theme. Great typography and design. I just started using this and right away one of things that I cannot do is edit a page.
In your screenshots in github, you mobile page seems to have that option. I am wondering if I am not seeing the option to edit a page inline or is it intended to be like this.
The search index is not updated as this template is missing a call to tpl_indexerWebBug()
as reported in the documentation.
In the meantime, I will get the sidebar to call the indexer manually, but it would be better in the template.
Otherwise, thanks for the template, it is nice :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.