Matthieu Gautier
58f0a716a6
Correctly return 404 if asked skin is not existing.
...
Fix #83
8 years ago
Matthieu Gautier
a2324b5e8b
Use a structure `RequestContext` to pass all the context of a request.
...
This simplifies the code and avoid to pass a lot of arguments to
each function.
8 years ago
Matthieu Gautier
c2ac40d4f5
Merge pull request #82 from kiwix/multi_thread
...
Make kiwix-server multi-threaded.
8 years ago
Matthieu Gautier
4534b51f5e
Use printf instead of cout.
...
`std::cout` stream is not thread safe at all.
Printing from different threads can lead to corrupted stream (and no
output working).
Using `printf` may still lead to interleaved output but nothing will broke.
8 years ago
Matthieu Gautier
0364951f75
Make kiwix-server multi-threaded.
8 years ago
Matthieu Gautier
a2627e81c4
Merge pull request #78 from kiwix/patch-1
...
Look for renamed kiwix-compile-resources script as well
8 years ago
Kunal Mehta
cd72a2d73c
Look for renamed kiwix-compile-resources script as well
...
See https://github.com/kiwix/kiwix-lib/pull/76
8 years ago
Matthieu Gautier
fa3f33d3c7
Use sudo to install pip dependencies in travis
8 years ago
Matthieu Gautier
a210cb3a4b
Merge pull request #68 from kiwix/css_taskbar
...
Css taskbar
8 years ago
Matthieu Gautier
63cb47247b
Serve the taskbar css as separated file.
...
For firefox, the file encoding must be specified in the first 1024 bytes.
If it is not, firefox will reload the page when it founds it.
By inserting the taskbar's css directly in the html, we are "moving" down
the encoding of the page, and the encoding is not inside the first 1024
bytes.
This also improve a bit the performance as the browser can cache the css
file and it's avoid us to send the css in earch html file.
8 years ago
Matthieu Gautier
3220ee1276
Move <link> tag in <head> tag.
...
In html, the link tag should be in head tag, not in the body tag.
8 years ago
Matthieu Gautier
4a1b9cbfa9
Merge pull request #67 from kiwix/no_globalsearch_on_zim
...
Do not do globalSearch if the zim file has no full text index.
8 years ago
Matthieu Gautier
f2b5904221
Do not do globalSearch if the zim file has no full text index.
...
Global search is made only on the global task bar.
Task bar display in the article should provide full text search only
if the zim file has associated full text index.
This is done by having a `NULL` searcher. However, commit `558a0375`
return the globalSearcher if no searcher is associated to a zim.
This commit associate a `NULL` searcher to the zim, so we will not use
the globalSearcher.
8 years ago
Matthieu Gautier
f44722fbbc
Merge pull request #64 from kiwix/fix_protocol
...
Correctly set ProtocolPrefix and SearchProtocolPrefix for searcher.
8 years ago
Matthieu Gautier
0cfcc59437
Update to new kiwix-lib API about Searcher instantiation.
...
`kiwix-lib` remove `setContentHumanReadableId` method in favour of
specifying directly it in the constructor.
8 years ago
Matthieu Gautier
7776eafbfc
Correctly set ProtocolPrefix and SearchProtocolPrefix for searcher.
...
Default `protocolPrefix` for the kiwix-lib searcher is `zim:://`.
We have to change it to `/` for all searcher we create else the search's
results will have a `zim://...` url, which will obviously won't work.
8 years ago
Matthieu Gautier
5989146931
Merge pull request #49 from kiwix/globalSearch
...
Global search
8 years ago
Matthieu Gautier
ea088b21a4
Introduce a global taskbar on the welcomeHTML page to allow global search.
...
Global search is a search on all zims.
8 years ago
Matthieu Gautier
558a0375b0
Use a globalSearcher to do multi search on all zims.
8 years ago
Matthieu Gautier
5f0a05e8d8
Add a global_taskbar.html.part file to be use as taskbar in library home.
...
This is a simplified version of taskbar.html.part without the buttons
(specific to the current read zim)
8 years ago
Matthieu Gautier
4b9dc39c49
Use only one lock to acces zim library.
...
Search can now use reader. So there is no need to have to different locks.
8 years ago
Matthieu Gautier
08f2373360
Merge pull request #48 from kiwix/no_use_of_tree_h
...
Remove use of tree.h
8 years ago
Matthieu Gautier
82fb6bc4d0
Remove use of tree.h
...
All code using tree.h where commented.
As tree.h where install by kiwix-lib and we removed it there, let's remove
its use here.
8 years ago
Matthieu Gautier
17eceeff5b
Merge pull request #46 from kiwix/format_code
...
Format code
8 years ago
Matthieu Gautier
aef20d6c96
Move to C++11.
...
Code and kiwix-lib are C++11. So compile using C++11.
8 years ago
Matthieu Gautier
4e3ff03059
Format all the code using clang-format.
...
Add a script `format_code.sh` to easily format the code.
8 years ago
Matthieu Gautier
856bfc675a
Bump-up the version to 0.2.
...
Time to make a new release.
8 years ago
Kelson
7850e79eab
Merge pull request #44 from kiwix/custom_welcome_css
...
custom welcome page css
9 years ago
Emmanuel Engelhart
62769aed57
custom welcome page css
9 years ago
Kelson
29e281209d
Merge pull request #43 from Skylsmoi/335/rewrite_welcome_page
...
rewrite welcome page (fixed histo)
9 years ago
Skylsmoi
0f480d9fb8
fixed boxes size with ellipsis + moved style tag to template + reduced margin/padding
9 years ago
Skylsmoi
1aeeaa2c3b
rewrite welcome page
9 years ago
Matthieu Gautier
2fe1a9443c
Merge pull request #39 from kiwix/t38
...
Add --nolibrarybutton option refs #38
9 years ago
Emmanuel Engelhart
569b4d946e
Add --nolibrarybutton option
9 years ago
Matthieu Gautier
e51539d161
Merge pull request #36 from kiwix/new_api
...
Adapt to new kiwix-lib search API.
9 years ago
Matthieu Gautier
f12a731939
Adapt to new kiwix-lib search API.
9 years ago
Matthieu Gautier
d94423964e
Merge pull request #34 from kiwix/full_html_document
...
ZIM/libzim/libkiwix should provide full HTML DOM
9 years ago
Emmanuel Engelhart
af10b665a9
ZIM/libzim/libkiwix should provide full HTML DOM
9 years ago
Kelson
c2d29376d9
Merge pull request #32 from Skylsmoi/336/fix_display_taskbar_save
...
336/fix display taskbar save
9 years ago
Skylsmoi
fd9c63c76a
Merge branch '336/fix_display_taskbar_save' of github.com:Skylsmoi/kiwix-tools into 336/fix_display_taskbar_save
9 years ago
Skylsmoi
4cc46685f7
fix breakpoint for cybook
9 years ago
Kelson
e30da0c0cd
Merge pull request #29 from Skylsmoi/336/fix_display_taskbar_save
...
css rules for taskbar are now more strict
9 years ago
Kelson
70a652e020
Merge branch 'master' into 336/fix_display_taskbar_save
9 years ago
Skylsmoi
97f0c8ec5b
added important rules to set the taskbar design
9 years ago
Matthieu Gautier
da83027710
Merge pull request #26 from kiwix/no_ssh_key
...
Get dependencies from http server, not from ssh.
9 years ago
Matthieu Gautier
ef9b48682b
Get dependencies from http server, not from ssh.
...
`kiwix-build` now publish intermediate dependencies archives in a
http accessible location.
Let's use this location instead of `scp` the archives.
9 years ago
Kelson
e26244687d
Merge pull request #24 from Skylsmoi/336/fix_display_taskbar_save
...
336/fix display taskbar save
9 years ago
Skylsmoi
2634167f41
fix taskbar design for iOS
9 years ago
Skylsmoi
7edc49c4eb
Merge branch 'master' of github.com:kiwix/kiwix-tools into 336/fix_display_taskbar_save
9 years ago
Skylsmoi
36225207c0
force custom design to override rules from libraries
9 years ago