Closed rgaudin closed 1 year ago
@kelson42 - I'd be happy to work on this if there's need and no one else is tackling it. I've been considering updating kiwix-serve to do something like this regardless.
@thavelick Yes, you are welcome to work on this ticket.
we could, at least have a \ tag pointing to a separate endpoint with a static list of contents.
We don't have this static list now (except raw xml catalog opds feed)
Somehow related to #716, if we don't have js support, we probably want to have this list to point to the "nojs viewer" (raw content) of the zim. Don't know where/when to handle this, but to keep in mind.
@thavelick Any news?
I guess, @thavelick has abandonned the idea to propose an alternative here. We should really define what we want to build exactly.
We don't have this static list now (except raw xml catalog opds feed) Don't know where/when to handle this, but to keep in mind.
I now have something in mind 🙂
The current frontpage is a js page which does specific request to opds catalog, parse the xml result and render the what is parsed dynamically.
We could simply render the catalog "odps" feed with hmtl.
The opds catalog is rendered to xml using OpdsDumper
which is using mustache templates to generate xml.
If we use different templates, we should be able to generate html/css content without too much trouble on our side.
User would simply directly browse the (user friendly view of the) catalog.
We may loose some features (as the list of categories) but it should mostly works.
<form>
to allow user to do a search on catalogWe could simply render the catalog "odps" feed with hmtl.
@mgautierfr If I read that sentence literally, I think that hardly there is anyone who can do it at all :wink:
I'm not sure where everywhere there is javascript. But could we maybe first implement #750 in C++ (instead of the js we have currently) first? This would be better from a UX as well.
Following mgautierfr's words above, I was able to get the same design of tiles without JS (injecting details using mustache in html file):
Haven't looked into how language/category filtering concretely for this. But maybe a <a>
link for every language/category filtered catalog? Needs discussion here
Current draft: #897
Bravo @juuz0 !
Yay, finally! :confetti_ball:
The new kiwix-serve UI is more practical but it's now impossible to use kiwix-serve without JS enabled.
There are many ways to solve this but if we consider no-js to be an edge case, we could, at least have a
<noscript />
tag pointing to a separate endpoint with a static list of contents.