Matthieu Gautier
5c6a1870b9
Merge pull request #107 from kiwix/geo_loc
...
Add a small (private) support for geo query.
9 years ago
Matthieu Gautier
4fffaf41b6
Add a small (private) support for geo query.
...
This use the small API of kiwix-lib and so, cannot search a text query
and filter around a geo position in the same time.
There is no way to do a search but than write directly the search url
by hand.
If the request is wrongly formatted, the search is simply not done without
error message.
9 years ago
Matthieu Gautier
05c734fc31
Merge pull request #104 from kiwix/library_relative_path
...
Relative paths are relative to current directory not executable.
9 years ago
Matthieu Gautier
fa9b027a39
Relative paths are relative to current directory not executable.
...
Almost nothing should be relative to the executable directory.
Content coming from the user should be relative to where the user
is (its working directory).
Fixes #70 .
9 years ago
Matthieu Gautier
1fcc1ad9d4
Merge pull request #98 from kiwix/http_byte_range_fix
...
Fix HTTP request byte range handling #91
9 years ago
kelson42
5fd8dd3c36
Fix HTTP request byte range handling #91
9 years ago
Matthieu Gautier
f03ed85972
Merge pull request #87 from swiftugandan/master
...
do not cache results for searches from the welcome page
9 years ago
Philip Munaawa
52308b764d
do not cache results for searches from the welcome page
9 years ago
Kelson
03bac00019
Merge pull request #99 from kiwix/dattaz-patch_issue_19_good
...
Dattaz patch issue 19 good
9 years ago
kelson42
905b83b3b1
Small beautification of the code
9 years ago
dattaz
894ed12f37
escape the & character of humanReadableBookId to not be interpreted in urls as a new argument
9 years ago
Kelson
573b826861
Merge pull request #62 from kiwix/julianharty-patch-1
...
Update kiwix-serve.cpp
9 years ago
Julian Harty
8051773124
Fixed a typo in an error message
9 years ago
Matthieu Gautier
69dd6cd869
Merge pull request #94 from kiwix/man_cleaning
...
Remove kiwix-index and kiiwx-compact man pages
9 years ago
kelson42
8d32bfd16e
Remove kiwix-index and kiiwx-compact man pages
9 years ago
Matthieu Gautier
b1d2a1378b
Merge pull request #90 from kiwix/new_release
...
Release of kiwix-tools 0.3.0.
9 years ago
Matthieu Gautier
df7d44128c
Release of kiwix-tools 0.3.0.
9 years ago
Matthieu Gautier
ee5333bb91
Merge pull request #86 from kiwix/swiftugandan_root
...
Swiftugandan root
9 years ago
Philip Munaawa
871d8f4a51
disable caching for the welcome page
9 years ago
Philip Munaawa
9280d519f5
Adding support for relative url location
9 years ago
Matthieu Gautier
540fcd3be9
Merge pull request #84 from kiwix/byte_range
...
Byte range
9 years ago
Matthieu Gautier
ad7238b0c9
Stop refusing the first connection.
...
I don't know why we are refusing the first connection.
It seems to work without this.
Moreover, this is not thread safe and it would be pretty complex to
make it thread safe.
9 years ago
Matthieu Gautier
b5c91417ff
Better debug information of each request.
9 years ago
Matthieu Gautier
b638df81fa
Implement response to bytes range request.
...
Handle bytes range request http header.
Do not read the full buffer but try to stream it as far as possible.
9 years ago
Matthieu Gautier
58f0a716a6
Correctly return 404 if asked skin is not existing.
...
Fix #83
9 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.
9 years ago
Matthieu Gautier
c2ac40d4f5
Merge pull request #82 from kiwix/multi_thread
...
Make kiwix-server multi-threaded.
9 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.
9 years ago
Matthieu Gautier
0364951f75
Make kiwix-server multi-threaded.
9 years ago
Matthieu Gautier
a2627e81c4
Merge pull request #78 from kiwix/patch-1
...
Look for renamed kiwix-compile-resources script as well
9 years ago
Kunal Mehta
cd72a2d73c
Look for renamed kiwix-compile-resources script as well
...
See https://github.com/kiwix/kiwix-lib/pull/76
9 years ago
Matthieu Gautier
fa3f33d3c7
Use sudo to install pip dependencies in travis
9 years ago
Matthieu Gautier
a210cb3a4b
Merge pull request #68 from kiwix/css_taskbar
...
Css taskbar
9 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.
9 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.
9 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.
9 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.
9 years ago
Matthieu Gautier
f44722fbbc
Merge pull request #64 from kiwix/fix_protocol
...
Correctly set ProtocolPrefix and SearchProtocolPrefix for searcher.
9 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.
9 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.
9 years ago
Matthieu Gautier
5989146931
Merge pull request #49 from kiwix/globalSearch
...
Global search
9 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.
9 years ago
Matthieu Gautier
558a0375b0
Use a globalSearcher to do multi search on all zims.
9 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)
9 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.
9 years ago
Matthieu Gautier
08f2373360
Merge pull request #48 from kiwix/no_use_of_tree_h
...
Remove use of tree.h
9 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.
9 years ago
Matthieu Gautier
17eceeff5b
Merge pull request #46 from kiwix/format_code
...
Format code
9 years ago
Matthieu Gautier
aef20d6c96
Move to C++11.
...
Code and kiwix-lib are C++11. So compile using C++11.
9 years ago
Matthieu Gautier
4e3ff03059
Format all the code using clang-format.
...
Add a script `format_code.sh` to easily format the code.
9 years ago