Compare commits
719 Commits
imported_f
...
dirScan
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd7ac7af3c | ||
|
|
63af605e76 | ||
|
|
092409dd8c | ||
|
|
3e20d42168 | ||
|
|
6d34d9ff97 | ||
|
|
abcbe0c9df | ||
|
|
d08638429e | ||
|
|
5348495c2b | ||
|
|
9b91ff1529 | ||
|
|
6f599589f9 | ||
|
|
6272c6d11e | ||
|
|
0bcb3957e5 | ||
|
|
16f2734699 | ||
|
|
45f0b0601e | ||
|
|
d61eafe6a2 | ||
|
|
ae21ba42da | ||
|
|
830a9e5e29 | ||
|
|
b22c10f6ff | ||
|
|
863fe0f973 | ||
|
|
769182731c | ||
|
|
b679e5d159 | ||
|
|
a6af7707e4 | ||
|
|
3ebd070d20 | ||
|
|
6ed59398e4 | ||
|
|
80dcf95b7f | ||
|
|
90f4562408 | ||
|
|
869b08cf71 | ||
|
|
ae1640736c | ||
|
|
40d32cfc32 | ||
|
|
463015da45 | ||
|
|
0ba30b5525 | ||
|
|
e22cfea9d9 | ||
|
|
fcc8877cb0 | ||
|
|
5fdea94c05 | ||
|
|
597223196d | ||
|
|
824eddaf94 | ||
|
|
7413682060 | ||
|
|
0125188bc0 | ||
|
|
acad8a85ab | ||
|
|
2e4cae72ef | ||
|
|
5c2a483929 | ||
|
|
0d38d071a8 | ||
|
|
0091ffa1ca | ||
|
|
43b00419dd | ||
|
|
f2c78ca03b | ||
|
|
73f357a627 | ||
|
|
0fd4abeeae | ||
|
|
998bbc6b0e | ||
|
|
e12687b1ec | ||
|
|
e6ff088ffa | ||
|
|
87c6eb837d | ||
|
|
88ceebab8a | ||
|
|
dac84999bc | ||
|
|
5b8d72de5d | ||
|
|
e65354a486 | ||
|
|
55b42f27b6 | ||
|
|
24c0b7220e | ||
|
|
b1dd681c59 | ||
|
|
c6b72e9362 | ||
|
|
362db1094d | ||
|
|
7512611146 | ||
|
|
3599e8476d | ||
|
|
5e222b3f0b | ||
|
|
ce3c3bd153 | ||
|
|
da22757a14 | ||
|
|
f0a8643603 | ||
|
|
84faf9c09e | ||
|
|
f912519647 | ||
|
|
e609c1c826 | ||
|
|
fdcea9889f | ||
|
|
4ec05bf98e | ||
|
|
2bab9a210e | ||
|
|
28008efb28 | ||
|
|
f6baad903f | ||
|
|
984741de03 | ||
|
|
b557d0a1dc | ||
|
|
98483170c9 | ||
|
|
c94c1bae6c | ||
|
|
b45426640e | ||
|
|
504affb481 | ||
|
|
6a4b7508f0 | ||
|
|
cebe079c11 | ||
|
|
945c4d61e6 | ||
|
|
504a7a1ab7 | ||
|
|
76b617817a | ||
|
|
9eab766ff9 | ||
|
|
4b3d6202e7 | ||
|
|
e18ffe19dc | ||
|
|
353d20bf83 | ||
|
|
5f69a41259 | ||
|
|
2cc1ca4017 | ||
|
|
dc1067b8c4 | ||
|
|
5e7166cb07 | ||
|
|
24d81f9507 | ||
|
|
fcbb4a56bc | ||
|
|
e37af51dd4 | ||
|
|
43704c6154 | ||
|
|
d25fda82be | ||
|
|
279cdcda0b | ||
|
|
331743ea29 | ||
|
|
19f11d8777 | ||
|
|
3377f9e8bb | ||
|
|
930c8321ca | ||
|
|
a3239ea8bc | ||
|
|
456c77d8fd | ||
|
|
7913b6a4f0 | ||
|
|
027f7d6620 | ||
|
|
18b532a923 | ||
|
|
21a145d999 | ||
|
|
be89de2bbe | ||
|
|
433010a900 | ||
|
|
dd14e02741 | ||
|
|
8ea12b2ce5 | ||
|
|
67c0ebd6ad | ||
|
|
c5197ceb51 | ||
|
|
98b4fb3cdf | ||
|
|
33bdf56bdd | ||
|
|
4556262c87 | ||
|
|
cb2159b114 | ||
|
|
5b45e1898b | ||
|
|
f6128b9079 | ||
|
|
ba64c1637e | ||
|
|
3a0e87d8ea | ||
|
|
9ca2b9fc16 | ||
|
|
f5932bf5d3 | ||
|
|
018df0d563 | ||
|
|
76ac5ce93f | ||
|
|
d0847525c6 | ||
|
|
7f0c1d8a3f | ||
|
|
bd9e67f48e | ||
|
|
a4cc4ba55b | ||
|
|
1a1274012f | ||
|
|
74712ff022 | ||
|
|
3c6971fced | ||
|
|
7a7eaaba0e | ||
|
|
d166947447 | ||
|
|
92ee72a8f2 | ||
|
|
d0f8226f50 | ||
|
|
221055f49c | ||
|
|
a463c31a0c | ||
|
|
6e239d5cb6 | ||
|
|
191dc95266 | ||
|
|
840f92c677 | ||
|
|
f03dc46342 | ||
|
|
a8a62aef74 | ||
|
|
7f9bf58742 | ||
|
|
4cf2f4f2c9 | ||
|
|
b6e7ed3443 | ||
|
|
806747320c | ||
|
|
6765239341 | ||
|
|
4e992a18e8 | ||
|
|
3d9348092b | ||
|
|
1024360598 | ||
|
|
cfc249b9cf | ||
|
|
688bb356ea | ||
|
|
d398ebdb3e | ||
|
|
6ab6abc6d3 | ||
|
|
0059c6a213 | ||
|
|
eac5898ca8 | ||
|
|
edb97fb055 | ||
|
|
e1b314267b | ||
|
|
0df6a1624b | ||
|
|
07bc21754b | ||
|
|
6f2e6ce866 | ||
|
|
4e8d3097b9 | ||
|
|
ad58d74699 | ||
|
|
0f25fa69d3 | ||
|
|
4949accdf3 | ||
|
|
7c7cd42e83 | ||
|
|
996ea031fc | ||
|
|
7179244c47 | ||
|
|
68d3c9d81d | ||
|
|
7f86317537 | ||
|
|
436f1b83f6 | ||
|
|
490ba0f3f2 | ||
|
|
591a347647 | ||
|
|
ecf5e67759 | ||
|
|
ec2effe257 | ||
|
|
244009f3b1 | ||
|
|
11ef036174 | ||
|
|
7b5b0cd7f7 | ||
|
|
2aef2d4a92 | ||
|
|
76023e9231 | ||
|
|
614f15913f | ||
|
|
6957a8cb1e | ||
|
|
c6b6a47711 | ||
|
|
9f93677b66 | ||
|
|
756d5b4a04 | ||
|
|
0f81dad6a4 | ||
|
|
252e3bc962 | ||
|
|
cf6d66b2c2 | ||
|
|
a6713db7fe | ||
|
|
4137d9f517 | ||
|
|
1a25b42517 | ||
|
|
70c390c7d1 | ||
|
|
847d1e9e76 | ||
|
|
2a9378e24e | ||
|
|
dd53bef147 | ||
|
|
6f0f666be5 | ||
|
|
0a7e91ceb7 | ||
|
|
db7f30fb81 | ||
|
|
3c6e8ed6c8 | ||
|
|
cef30cd0b8 | ||
|
|
ce9e3e82e3 | ||
|
|
0df3c14faa | ||
|
|
092be45512 | ||
|
|
442de30ff7 | ||
|
|
9c16e53767 | ||
|
|
f9dc22a671 | ||
|
|
7526148f89 | ||
|
|
da55468a88 | ||
|
|
86fac0e9af | ||
|
|
5709d4d489 | ||
|
|
8efa71d307 | ||
|
|
3f076c2b27 | ||
|
|
6266c3baa8 | ||
|
|
b2bc6cead2 | ||
|
|
b7a6f78150 | ||
|
|
9e3d4c9615 | ||
|
|
472ff19861 | ||
|
|
97aa28c74d | ||
|
|
2c40d23991 | ||
|
|
ca8d6e570c | ||
|
|
78887d6815 | ||
|
|
643a07f653 | ||
|
|
9a07dd8314 | ||
|
|
bdd36f0379 | ||
|
|
62195c788e | ||
|
|
fa7948abbe | ||
|
|
2c701cb260 | ||
|
|
8b36e94d50 | ||
|
|
f9ce353ad1 | ||
|
|
2bb080ee3b | ||
|
|
dd5aa33775 | ||
|
|
0ed608f5c2 | ||
|
|
8f4758a6a9 | ||
|
|
b10f2ed1a1 | ||
|
|
94549828cb | ||
|
|
f342bd5e24 | ||
|
|
f316bb14a2 | ||
|
|
ea44dc76f6 | ||
|
|
6dfdcea5ce | ||
|
|
0ef85944b8 | ||
|
|
04ac15508f | ||
|
|
eeb41d8047 | ||
|
|
85a3093df3 | ||
|
|
2c435926ca | ||
|
|
b8c4791dd0 | ||
|
|
701541aa2f | ||
|
|
527981ba66 | ||
|
|
d8ed915c80 | ||
|
|
74d3bffde0 | ||
|
|
b974e121b4 | ||
|
|
d2bb9d123e | ||
|
|
9b158360a6 | ||
|
|
7d2c67f43d | ||
|
|
a080a3137e | ||
|
|
dedcae83cd | ||
|
|
c0fa06c931 | ||
|
|
dbe6126496 | ||
|
|
94bf71eb82 | ||
|
|
25e9941f6a | ||
|
|
81d8ad964a | ||
|
|
9a49623879 | ||
|
|
f7f10597eb | ||
|
|
c8be7c47ca | ||
|
|
f356587b23 | ||
|
|
32432a7113 | ||
|
|
7985ba1b0c | ||
|
|
933aa0cd63 | ||
|
|
098e1cfe51 | ||
|
|
43b5be179a | ||
|
|
88213b3f3b | ||
|
|
7659efa97c | ||
|
|
4faaa978f7 | ||
|
|
d73fcb357f | ||
|
|
61e82228a4 | ||
|
|
01430603b6 | ||
|
|
6c31d0d7b0 | ||
|
|
c1731c9697 | ||
|
|
929c36c930 | ||
|
|
3df4a94863 | ||
|
|
2cd190e965 | ||
|
|
6a7c737d48 | ||
|
|
b20e83bd0b | ||
|
|
7a3f77dbf2 | ||
|
|
71e065312f | ||
|
|
9f207a61f9 | ||
|
|
43656554f1 | ||
|
|
7d55c0f6ac | ||
|
|
c3721970c5 | ||
|
|
81ac333cc9 | ||
|
|
d1edbc11d3 | ||
|
|
47929008cf | ||
|
|
4ba79d9776 | ||
|
|
c1e2913f24 | ||
|
|
ac3e889388 | ||
|
|
6d9fa0cb45 | ||
|
|
c76bbabd10 | ||
|
|
a5cf735ffe | ||
|
|
b064796c2d | ||
|
|
6f2316bc8a | ||
|
|
b2aeb08051 | ||
|
|
17b7fb2145 | ||
|
|
36c7bf4d6f | ||
|
|
a3ed7ad3e1 | ||
|
|
b7d884ceb2 | ||
|
|
19322958b3 | ||
|
|
ccb8d11dce | ||
|
|
7bdbe901db | ||
|
|
7e6e74330a | ||
|
|
9efd18a9a4 | ||
|
|
0e9f406180 | ||
|
|
0160f356a6 | ||
|
|
8cc34782bc | ||
|
|
b2c68d7f22 | ||
|
|
977cfb9887 | ||
|
|
1671effaf4 | ||
|
|
8d00e45d2a | ||
|
|
730f20e86f | ||
|
|
ff5f1d96d2 | ||
|
|
d1d72218b3 | ||
|
|
88269c1ff2 | ||
|
|
4ee202514e | ||
|
|
98b372ee17 | ||
|
|
8e5df188b3 | ||
|
|
ed709454bd | ||
|
|
f5762c72d3 | ||
|
|
1744b152ac | ||
|
|
7f09e55077 | ||
|
|
fdec897bc7 | ||
|
|
764dd8848b | ||
|
|
4a944cc901 | ||
|
|
4120e7fd25 | ||
|
|
8736a2f4ea | ||
|
|
00b810d649 | ||
|
|
5d21baa759 | ||
|
|
6ba6046850 | ||
|
|
d24f474dda | ||
|
|
07de2d29c4 | ||
|
|
d99e5cd975 | ||
|
|
f82d5aa7e5 | ||
|
|
824aef9189 | ||
|
|
d6914eb34f | ||
|
|
b65212fab7 | ||
|
|
83427af3d2 | ||
|
|
d572bf875d | ||
|
|
833c997782 | ||
|
|
44613aae5d | ||
|
|
62e6c7ffb0 | ||
|
|
1df899ea87 | ||
|
|
3dd357e8ac | ||
|
|
2744879df0 | ||
|
|
19c3ebe629 | ||
|
|
cccd17a394 | ||
|
|
e9676ae66f | ||
|
|
2fd393285f | ||
|
|
a44fd1a4d0 | ||
|
|
a9ff2aebee | ||
|
|
a2b944618f | ||
|
|
d27abb41b7 | ||
|
|
5f12d0349f | ||
|
|
7ec2308053 | ||
|
|
e8b33a7136 | ||
|
|
ca943b9d0b | ||
|
|
c6757dd309 | ||
|
|
23b0ff3d01 | ||
|
|
93116c76b3 | ||
|
|
4aca5ff551 | ||
|
|
4eb38869c1 | ||
|
|
d17fd2af94 | ||
|
|
48db92af09 | ||
|
|
612081ec51 | ||
|
|
4b5eb482b5 | ||
|
|
28997ccd58 | ||
|
|
9dd042d813 | ||
|
|
61580bb738 | ||
|
|
dbae6439b2 | ||
|
|
d6094b4112 | ||
|
|
64f1aa2408 | ||
|
|
ed1bae76c3 | ||
|
|
7418702a07 | ||
|
|
796614fd7d | ||
|
|
2ba9037687 | ||
|
|
22be7c0dcf | ||
|
|
3fc9525754 | ||
|
|
a9d8f77526 | ||
|
|
1109b62570 | ||
|
|
3248c0f233 | ||
|
|
f8f66288ea | ||
|
|
98c810eb2a | ||
|
|
50ca36417f | ||
|
|
5a2714c9c9 | ||
|
|
63cc513974 | ||
|
|
63ec03a3d4 | ||
|
|
e2f7c7a0ac | ||
|
|
a14cd5de23 | ||
|
|
06c31430c5 | ||
|
|
8ffff9cd47 | ||
|
|
ef0fc514ad | ||
|
|
6c1739d4cd | ||
|
|
cd44ba53a5 | ||
|
|
d82f9e7d5e | ||
|
|
720a319d53 | ||
|
|
2426c35547 | ||
|
|
794f63e22b | ||
|
|
79a64d5af3 | ||
|
|
2ef160bcad | ||
|
|
817a5d4847 | ||
|
|
2c3882671b | ||
|
|
7e2c5bda03 | ||
|
|
59281bf496 | ||
|
|
ee9ae0e81f | ||
|
|
2dbe0a0016 | ||
|
|
64717c2124 | ||
|
|
fc1eb3c282 | ||
|
|
e31c1cd9a3 | ||
|
|
e897dd4e59 | ||
|
|
7db7d2a2ab | ||
|
|
5b612e67bd | ||
|
|
df047588a9 | ||
|
|
9dede26717 | ||
|
|
a22ae3d467 | ||
|
|
ea93a8a195 | ||
|
|
0a7f375f3a | ||
|
|
66c35b7b3e | ||
|
|
bad7f2ddf1 | ||
|
|
758014a5ba | ||
|
|
4fd961a761 | ||
|
|
c063587a69 | ||
|
|
9b24676b02 | ||
|
|
fc5572f495 | ||
|
|
a1b3f46e4e | ||
|
|
e0177c4923 | ||
|
|
a365c1e720 | ||
|
|
3e97352128 | ||
|
|
78d2530878 | ||
|
|
d09f481b47 | ||
|
|
e0f07086d5 | ||
|
|
bbff57e6aa | ||
|
|
3c24d0a026 | ||
|
|
6107bad17e | ||
|
|
5931ac45c4 | ||
|
|
4de8623a52 | ||
|
|
6eace310a2 | ||
|
|
c6499ad5c6 | ||
|
|
34ceaf37f2 | ||
|
|
f05096e2ce | ||
|
|
3864b2404c | ||
|
|
4cd74dca4b | ||
|
|
88cea54520 | ||
|
|
3061c8bba3 | ||
|
|
2774eb9529 | ||
|
|
77dc2ef2ed | ||
|
|
17d11f9772 | ||
|
|
68ac06c397 | ||
|
|
99f6941614 | ||
|
|
848d058610 | ||
|
|
cdb9b28d35 | ||
|
|
43e1740d52 | ||
|
|
7e8d02990e | ||
|
|
c337cf174e | ||
|
|
8a64083d5b | ||
|
|
d0687e40a6 | ||
|
|
14b0b901f1 | ||
|
|
336cbe691d | ||
|
|
26b4dd5f57 | ||
|
|
8882a716a0 | ||
|
|
fede5ef9b6 | ||
|
|
c5b293c6f3 | ||
|
|
d57a37cde6 | ||
|
|
7d2bec3e39 | ||
|
|
472de06e6d | ||
|
|
51a4a4e8ef | ||
|
|
6e310c7147 | ||
|
|
790bd03bd7 | ||
|
|
15c6252db4 | ||
|
|
6fd22dec61 | ||
|
|
c332c123fe | ||
|
|
e4eafd7459 | ||
|
|
16a29127a1 | ||
|
|
7fa0579ea1 | ||
|
|
978dc47865 | ||
|
|
b7793f6e75 | ||
|
|
8095ae9ea8 | ||
|
|
286f599b3e | ||
|
|
174b236312 | ||
|
|
c7e9d44b38 | ||
|
|
3a80951c23 | ||
|
|
ffaecb5389 | ||
|
|
7b25308248 | ||
|
|
7ac14aa64f | ||
|
|
3c8da8c74c | ||
|
|
9ed3fc353b | ||
|
|
51051752f1 | ||
|
|
4e8a8533c4 | ||
|
|
fd2a0decd3 | ||
|
|
624fb32091 | ||
|
|
067a40a156 | ||
|
|
cfa22365fe | ||
|
|
d5066ba6bf | ||
|
|
f1ec1ec182 | ||
|
|
d1802c52a2 | ||
|
|
38088ee321 | ||
|
|
0f445e9791 | ||
|
|
1032a46c57 | ||
|
|
cbe8f1df87 | ||
|
|
2fe5ec1d7c | ||
|
|
eba80b92ef | ||
|
|
c1e635bd4e | ||
|
|
c8be8fbad8 | ||
|
|
640f907fb2 | ||
|
|
eb407956b9 | ||
|
|
422dde9ff2 | ||
|
|
f691f85724 | ||
|
|
fd4f228a41 | ||
|
|
bf40d4ff91 | ||
|
|
74fecd34e6 | ||
|
|
881fe9f41d | ||
|
|
c23e0bc38a | ||
|
|
d4d32aa2e8 | ||
|
|
4a88c44626 | ||
|
|
0cc5b18488 | ||
|
|
88a32a152f | ||
|
|
4b8c8c5f6f | ||
|
|
f0568ff4a7 | ||
|
|
ccdfe9839d | ||
|
|
221f3ef340 | ||
|
|
0785636ca5 | ||
|
|
a3429fdc88 | ||
|
|
f99b6965e9 | ||
|
|
228402b505 | ||
|
|
a9f8364333 | ||
|
|
9f06c9c5eb | ||
|
|
0efbb2461d | ||
|
|
b251e18af1 | ||
|
|
5c040d3ee6 | ||
|
|
bb1afb5120 | ||
|
|
8fccbc4c99 | ||
|
|
d0dc9ac81b | ||
|
|
f9edd75f6c | ||
|
|
9571148375 | ||
|
|
282b85c341 | ||
|
|
4c3acd06de | ||
|
|
4cd9d78d21 | ||
|
|
efd4a1434e | ||
|
|
dfc601dacf | ||
|
|
7c254544ca | ||
|
|
b22ee94f10 | ||
|
|
3766c4882b | ||
|
|
26da54f9c3 | ||
|
|
4433421c48 | ||
|
|
c00f0be7ef | ||
|
|
773b9e5443 | ||
|
|
fbddabb10f | ||
|
|
3ad50ccf17 | ||
|
|
c265eb8b24 | ||
|
|
6f49e78eb4 | ||
|
|
d25329ecb4 | ||
|
|
bd8d0c3805 | ||
|
|
a01906d273 | ||
|
|
4bd18ce466 | ||
|
|
fb8c14a1e4 | ||
|
|
2acd276753 | ||
|
|
53b2dadfce | ||
|
|
eccf5e194c | ||
|
|
8356277562 | ||
|
|
c6ace1eafc | ||
|
|
8552985cd4 | ||
|
|
9997a6ec18 | ||
|
|
8b6abc0e35 | ||
|
|
426796dc37 | ||
|
|
712cdf5e7b | ||
|
|
74cc1d0708 | ||
|
|
3ce668af66 | ||
|
|
2b69cc8ffc | ||
|
|
71ffaaa05a | ||
|
|
f3fb5d61cc | ||
|
|
05c63536de | ||
|
|
16e12ad463 | ||
|
|
c91285fc29 | ||
|
|
5c11ff1a30 | ||
|
|
9eaf512bf9 | ||
|
|
9a29874f9f | ||
|
|
aa9647e88c | ||
|
|
da0c697963 | ||
|
|
77d25686cb | ||
|
|
3df2fa708b | ||
|
|
9021f87715 | ||
|
|
04b05b7902 | ||
|
|
a8e73aab98 | ||
|
|
234a9d9719 | ||
|
|
c93617473d | ||
|
|
09e2039aff | ||
|
|
5c6a1870b9 | ||
|
|
4fffaf41b6 | ||
|
|
05c734fc31 | ||
|
|
fa9b027a39 | ||
|
|
1fcc1ad9d4 | ||
|
|
5fd8dd3c36 | ||
|
|
f03ed85972 | ||
|
|
52308b764d | ||
|
|
03bac00019 | ||
|
|
905b83b3b1 | ||
|
|
894ed12f37 | ||
|
|
573b826861 | ||
|
|
8051773124 | ||
|
|
69dd6cd869 | ||
|
|
8d32bfd16e | ||
|
|
b1d2a1378b | ||
|
|
df7d44128c | ||
|
|
ee5333bb91 | ||
|
|
871d8f4a51 | ||
|
|
9280d519f5 | ||
|
|
540fcd3be9 | ||
|
|
ad7238b0c9 | ||
|
|
b5c91417ff | ||
|
|
b638df81fa | ||
|
|
58f0a716a6 | ||
|
|
a2324b5e8b | ||
|
|
c2ac40d4f5 | ||
|
|
4534b51f5e | ||
|
|
0364951f75 | ||
|
|
a2627e81c4 | ||
|
|
cd72a2d73c | ||
|
|
fa3f33d3c7 | ||
|
|
a210cb3a4b | ||
|
|
63cb47247b | ||
|
|
3220ee1276 | ||
|
|
4a1b9cbfa9 | ||
|
|
f2b5904221 | ||
|
|
f44722fbbc | ||
|
|
0cfcc59437 | ||
|
|
7776eafbfc | ||
|
|
5989146931 | ||
|
|
ea088b21a4 | ||
|
|
558a0375b0 | ||
|
|
5f0a05e8d8 | ||
|
|
4b9dc39c49 | ||
|
|
08f2373360 | ||
|
|
82fb6bc4d0 | ||
|
|
17eceeff5b | ||
|
|
aef20d6c96 | ||
|
|
4e3ff03059 | ||
|
|
856bfc675a | ||
|
|
7850e79eab | ||
|
|
62769aed57 | ||
|
|
29e281209d | ||
|
|
0f480d9fb8 | ||
|
|
1aeeaa2c3b | ||
|
|
2fe1a9443c | ||
|
|
569b4d946e | ||
|
|
e51539d161 | ||
|
|
f12a731939 | ||
|
|
d94423964e | ||
|
|
af10b665a9 | ||
|
|
c2d29376d9 | ||
|
|
fd9c63c76a | ||
|
|
4cc46685f7 | ||
|
|
e30da0c0cd | ||
|
|
70a652e020 | ||
|
|
97f0c8ec5b | ||
|
|
da83027710 | ||
|
|
ef9b48682b | ||
|
|
e26244687d | ||
|
|
2634167f41 | ||
|
|
7edc49c4eb | ||
|
|
36225207c0 | ||
|
|
1d61e270fb | ||
|
|
5aecb4231d | ||
|
|
126781bbb5 | ||
|
|
f045590243 | ||
|
|
f46e560d7f | ||
|
|
643293c7df | ||
|
|
799a47142b | ||
|
|
79fdee1df2 | ||
|
|
ab623b7176 | ||
|
|
208050df4b | ||
|
|
9ead431b3f | ||
|
|
1e6353330d | ||
|
|
482577fd53 | ||
|
|
856b487007 | ||
|
|
cb20e719ee | ||
|
|
25091c320b | ||
|
|
35b83144c6 | ||
|
|
063e9ba80d | ||
|
|
e27ce444c6 | ||
|
|
3592cd84c6 | ||
|
|
a27010c247 | ||
|
|
0c01ec5bb5 | ||
|
|
a3a0127edb | ||
|
|
ad7d30cc4f | ||
|
|
134f079c3c | ||
|
|
4aba306d68 | ||
|
|
dc6c9d618f | ||
|
|
0f6ca21188 | ||
|
|
db7e1e5c8f | ||
|
|
e8dc6b0f45 | ||
|
|
5fe4e9a4ab | ||
|
|
83768b176c | ||
|
|
2ca63541f2 | ||
|
|
5cfbda1219 | ||
|
|
9aa7e371f7 | ||
|
|
1d2a9879cc | ||
|
|
25dc9b1d55 | ||
|
|
87cb692c6a | ||
|
|
384d113b6f | ||
|
|
9465b764fa | ||
|
|
ea915b6410 | ||
|
|
9fdbb8b574 | ||
|
|
2b12f2b830 | ||
|
|
9f36014449 | ||
|
|
94058ce811 | ||
|
|
f580a06163 | ||
|
|
b363dc387b | ||
|
|
834f52a9ec | ||
|
|
6007ca6eff | ||
|
|
ab70e1375e | ||
|
|
8871e6c2e3 |
12
.clang-format
Normal file
@@ -0,0 +1,12 @@
|
||||
BasedOnStyle: Google
|
||||
BinPackArguments: false
|
||||
BinPackParameters: false
|
||||
BreakBeforeBinaryOperators: All
|
||||
BreakBeforeBraces: Linux
|
||||
DerivePointerAlignment: false
|
||||
SpacesInContainerLiterals: false
|
||||
Standard: Cpp11
|
||||
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
12
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: kiwix # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # https://kiwix.org/support-us/
|
||||
27
.github/move.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Configuration for Move Issues - https://github.com/dessant/move-issues
|
||||
|
||||
# Delete the command comment when it contains no other content
|
||||
deleteCommand: true
|
||||
|
||||
# Close the source issue after moving
|
||||
closeSourceIssue: true
|
||||
|
||||
# Lock the source issue after moving
|
||||
lockSourceIssue: false
|
||||
|
||||
# Mention issue and comment authors
|
||||
mentionAuthors: true
|
||||
|
||||
# Preserve mentions in the issue content
|
||||
keepContentMentions: true
|
||||
|
||||
# Move labels that also exist on the target repository
|
||||
moveLabels: true
|
||||
|
||||
# Set custom aliases for targets
|
||||
# aliases:
|
||||
# r: repo
|
||||
# or: owner/repo
|
||||
|
||||
# Repository to extend settings from
|
||||
# _extends: repo
|
||||
106
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python 3.10
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install packages
|
||||
run:
|
||||
choco install pkgconfiglite ninja
|
||||
|
||||
- name: Install python modules
|
||||
run: pip3 install meson
|
||||
|
||||
- name: Setup MSVC compiler
|
||||
uses: bus1/cabuild/action/msdevshell@v1
|
||||
with:
|
||||
architecture: x64
|
||||
|
||||
- name: Install dependencies
|
||||
uses: kiwix/kiwix-build/actions/dl_deps_archive@main
|
||||
with:
|
||||
target_platform: win-x86_64-static
|
||||
|
||||
- name: Compile
|
||||
shell: cmd
|
||||
run: |
|
||||
set PKG_CONFIG_PATH=%cd%\BUILD_win-amd64\INSTALL\lib\pkgconfig
|
||||
set CPPFLAGS=-I%cd%\BUILD_win-amd64\INSTALL\include
|
||||
meson.exe setup . build -Dstatic-linkage=true --buildtype=release
|
||||
cd build
|
||||
ninja.exe
|
||||
|
||||
- name: Test
|
||||
shell: cmd
|
||||
run: |
|
||||
cd build
|
||||
meson.exe test --verbose
|
||||
env:
|
||||
WAIT_TIME_FACTOR_TEST: 10
|
||||
|
||||
Linux:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target:
|
||||
- linux-x86_64-static
|
||||
- linux-x86_64-dyn
|
||||
include:
|
||||
- target: linux-x86_64-static
|
||||
image_variant: jammy
|
||||
lib_postfix: '/x86_64-linux-gnu'
|
||||
arch_name: linux-x86_64
|
||||
- target: linux-x86_64-dyn
|
||||
image_variant: jammy
|
||||
lib_postfix: '/x86_64-linux-gnu'
|
||||
arch_name: linux-x86_64
|
||||
|
||||
env:
|
||||
HOME: /home/runner
|
||||
|
||||
container:
|
||||
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2025-06-07"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
uses: kiwix/kiwix-build/actions/dl_deps_archive@main
|
||||
with:
|
||||
target_platform: ${{ matrix.target }}
|
||||
|
||||
- name: Compile
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{matrix.target}}" =~ .*-static ]]; then
|
||||
MESON_OPTION="-Dstatic-linkage=true"
|
||||
else
|
||||
MESON_OPTION=""
|
||||
fi
|
||||
if [ -e "$HOME/BUILD_${{matrix.arch_name}}/meson_cross_file.txt" ]; then
|
||||
MESON_OPTION="$MESON_OPTION --cross-file $HOME/BUILD_${{matrix.arch_name}}/meson_cross_file.txt"
|
||||
fi
|
||||
meson . build ${MESON_OPTION}
|
||||
cd build
|
||||
ninja
|
||||
env:
|
||||
PKG_CONFIG_PATH: "${{env.HOME}}/BUILD_${{matrix.arch_name}}/INSTALL/lib/pkgconfig:${{env.HOME}}/BUILD_${{matrix.arch_name}}/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig"
|
||||
CPPFLAGS: "-I${{env.HOME}}/BUILD_${{matrix.arch_name}}/INSTALL/include"
|
||||
67
.github/workflows/docker.yml
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
name: Docker
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Specific version to build (overrides on-master and tag-pattern)
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
build-and-push-kiwix-tools:
|
||||
name: Deploy kiwix-tools Docker Image
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: build and publish kiwix-tools
|
||||
uses: openzim/docker-publish-action@v10
|
||||
with:
|
||||
image-name: kiwix/kiwix-tools
|
||||
registries: ghcr.io
|
||||
credentials: |
|
||||
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
||||
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
||||
context: docker
|
||||
latest-on-tag: true
|
||||
build-args:
|
||||
VERSION={tag}
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
linux/arm/v7
|
||||
linux/arm/v6
|
||||
linux/386
|
||||
restrict-to: kiwix/kiwix-tools
|
||||
manual-tag: ${{ github.event.inputs.version }}
|
||||
repo_description: auto
|
||||
repo_overview: Kiwix command line tools
|
||||
|
||||
build-and-push-kiwix-serve:
|
||||
name: Deploy kiwix-serve Docker Image
|
||||
runs-on: ubuntu-22.04
|
||||
needs: build-and-push-kiwix-tools
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: build and publish kiwix-serve
|
||||
uses: openzim/docker-publish-action@v10
|
||||
with:
|
||||
image-name: kiwix/kiwix-serve
|
||||
registries: ghcr.io
|
||||
credentials: |
|
||||
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
||||
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
||||
context: docker/server
|
||||
latest-on-tag: true
|
||||
build-args:
|
||||
VERSION={tag}
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
linux/arm/v7
|
||||
linux/arm/v6
|
||||
linux/386
|
||||
restrict-to: kiwix/kiwix-tools
|
||||
manual-tag: ${{ github.event.inputs.version }}
|
||||
repo_description: auto
|
||||
repo_overview: Kiwix web-server
|
||||
112
.github/workflows/package.yml
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
name: Packages
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build-deb:
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
distro:
|
||||
# - debian-unstable
|
||||
# - debian-trixie
|
||||
# - debian-bookworm
|
||||
# - debian-bullseye
|
||||
- ubuntu-noble
|
||||
- ubuntu-jammy
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Determine which PPA we should upload to
|
||||
- name: PPA
|
||||
id: ppa
|
||||
run: |
|
||||
if [[ $REF == refs/tags* ]]
|
||||
then
|
||||
echo "ppa=kiwixteam/release" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "ppa=kiwixteam/dev" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
env:
|
||||
REF: ${{ github.ref }}
|
||||
|
||||
- uses: legoktm/gh-action-auto-dch@main
|
||||
with:
|
||||
fullname: Kiwix builder
|
||||
email: release+launchpad@kiwix.org
|
||||
distro: ${{ matrix.distro }}
|
||||
|
||||
# - uses: legoktm/gh-action-build-deb@debian-unstable
|
||||
# if: matrix.distro == 'debian-unstable'
|
||||
# name: Build package for debian-unstable
|
||||
# id: build-debian-unstable
|
||||
# with:
|
||||
# args: --no-sign
|
||||
#
|
||||
# - uses: legoktm/gh-action-build-deb@b47978ba8498dc8b8153cc3b5f99a5fc1afa5de1 # pin@debian-trixie
|
||||
# if: matrix.distro == 'debian-trixie'
|
||||
# name: Build package for debian-trixie
|
||||
# id: build-debian-trixie
|
||||
# with:
|
||||
# args: --no-sign
|
||||
#
|
||||
# - uses: legoktm/gh-action-build-deb@1f4e86a6bb34aaad388167eaf5eb85d553935336 # pin@debian-bookworm
|
||||
# if: matrix.distro == 'debian-bookworm'
|
||||
# name: Build package for debian-bookworm
|
||||
# id: build-debian-bookworm
|
||||
# with:
|
||||
# args: --no-sign
|
||||
#
|
||||
# - uses: legoktm/gh-action-build-deb@084b4263209252ec80a75d2c78a586192c17f18d # pin@debian-bullseye
|
||||
# if: matrix.distro == 'debian-bullseye'
|
||||
# name: Build package for debian-bullseye
|
||||
# id: build-debian-bullseye
|
||||
# with:
|
||||
# args: --no-sign
|
||||
|
||||
- uses: legoktm/gh-action-build-deb@9114a536498b65c40b932209b9833aa942bf108d # pin@ubuntu-noble
|
||||
if: matrix.distro == 'ubuntu-noble'
|
||||
name: Build package for ubuntu-noble
|
||||
id: build-ubuntu-noble
|
||||
with:
|
||||
args: --no-sign
|
||||
ppa: ${{ steps.ppa.outputs.ppa }}
|
||||
|
||||
- uses: legoktm/gh-action-build-deb@ubuntu-jammy
|
||||
if: matrix.distro == 'ubuntu-jammy'
|
||||
name: Build package for ubuntu-jammy
|
||||
id: build-ubuntu-jammy
|
||||
with:
|
||||
args: --no-sign
|
||||
ppa: ${{ steps.ppa.outputs.ppa }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Packages for ${{ matrix.distro }}
|
||||
path: output
|
||||
|
||||
- uses: legoktm/gh-action-dput@main
|
||||
name: Upload dev package
|
||||
# Only upload on pushes to git default branch
|
||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
|
||||
with:
|
||||
gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
|
||||
repository: ppa:kiwixteam/dev
|
||||
packages: output/*_source.changes
|
||||
|
||||
- uses: legoktm/gh-action-dput@main
|
||||
name: Upload release package
|
||||
# Only upload on pushes to main or tag
|
||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && startswith(matrix.distro, 'ubuntu-')
|
||||
with:
|
||||
gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
|
||||
repository: ppa:kiwixteam/release
|
||||
packages: output/*_source.changes
|
||||
|
||||
21
.readthedocs.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Read the Docs configuration file
|
||||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||
|
||||
# Required
|
||||
version: 2
|
||||
|
||||
# Set the version of Python and other tools you might need
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.11"
|
||||
|
||||
# Build documentation in the docs/ directory with Sphinx
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
|
||||
# We recommend specifying your dependencies to enable reproducible builds:
|
||||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
||||
python:
|
||||
install:
|
||||
- requirements: docs/requirements.txt
|
||||
1
.well-known/funding-manifest-urls
Normal file
@@ -0,0 +1 @@
|
||||
https://kiwix.org/funding.json
|
||||
14
AUTHORS
Normal file
@@ -0,0 +1,14 @@
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
Renaud Gaudin <reg@kiwix.org>
|
||||
Christian Pühringer <cip@gmx.at>
|
||||
Fabien Coullon <fcoulon@linterweb.com>
|
||||
Guillaume Duhamel <gduhamel@linterweb.com>
|
||||
Wilfredo Rodriguez <wilfredor@kiwix.org>
|
||||
Jorge Gonzalez <jag2kn@gmail.com>
|
||||
Richzendy <richzendy@fedoraproject.org>
|
||||
Ayoub Dardory <ayoubuto@gmail.com>
|
||||
Rashiq Ahmad <rashiq.z@gmail.com>
|
||||
Isaac Hutt <mhutti1@gmail.com>
|
||||
Elad Keyshawn <elad.keyshawn@gmail.com>
|
||||
Matthieu Gautier <mgautier@kymeria.fr>
|
||||
Translatewiki comunity https://translatewiki.net/wiki/Translating:Kiwix
|
||||
676
COPYING
Normal file
@@ -0,0 +1,676 @@
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
||||
396
Changelog
Normal file
@@ -0,0 +1,396 @@
|
||||
kiwix-tools 3.8.1
|
||||
=================
|
||||
|
||||
* Kiwix server
|
||||
- Hide port number in URL when server is running on port 80 (@vighnesh-sawant #763)
|
||||
- Better deal with container /data dir permissions (@kelson42 #787)
|
||||
|
||||
* Other
|
||||
- Fix kiwix-manage docopt integration (@kelson42 #783)
|
||||
|
||||
kiwix-tools 3.8.0
|
||||
=================
|
||||
|
||||
* Kiwix server
|
||||
- Improve message when server is running on standard port (@vighnesh-sawant #763)
|
||||
- Update container base image to latest Alpline version (@yashgoyal0110 #771)
|
||||
- Container image to use unprivileged user (@Sedetisu #755)
|
||||
- Empty urlRootLocation doesn't disable book preview links anymore (@veloman-yunkan #1224)
|
||||
- Add support of IPv6 (@sgourdas #673 #704)
|
||||
- Popups are allowed to escape the browser sandbox (@veloman-yunkan #1208)
|
||||
|
||||
* Other
|
||||
- Stop publishing on Ubuntu 20.04 PPA (@kelson42 #748)
|
||||
- Use Docopt for command line argument parsing (@mgautierfr #695)
|
||||
|
||||
* Compilation & Packaging
|
||||
- Based on libkiwix 14.1.0 (@kelson42 #773)
|
||||
- Improve CI/CD (@kelson42 #681 #698 #702 #705 #720 #722, @mgautierfr #695)
|
||||
|
||||
kiwix-tools 3.7.0
|
||||
=================
|
||||
|
||||
* Fixed ZIM name vs Book name confusion in documentation (@veloman-yunkan #663)
|
||||
* Fixes compilation dependencies to rely on appropriate version (@kelson42 #667)
|
||||
* New --skipInvalid Kiwix Server command line option (@schuellerf @kelson42 #666)
|
||||
|
||||
kiwix-tools 3.6.0
|
||||
=================
|
||||
|
||||
* Improved kiwix-serve man page (@iArchitSharma #626)
|
||||
* C++17 compliant code base (@mgautierfr #636)
|
||||
* Support of libkiwix13 (@mgautierfr #633)
|
||||
* Additional docker images archs for armv6 and i386 (@rgaudin #622)
|
||||
|
||||
kiwix-tools 3.5.0
|
||||
=================
|
||||
|
||||
* Do not use `--static` option when compiling on MacOs (@mgautierfr #615)
|
||||
* Move main branch from `master` to `main`.
|
||||
* Fix docker image (@jacroe #597)
|
||||
* Various CI improvements (@kelson42)
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Add documentation about the kiwix-serve API (@veloman-yunkan #586)
|
||||
https://kiwix-tools.readthedocs.io/en/latest/kiwix-serve.html#http-api
|
||||
|
||||
kiwix-tools 3.4.0
|
||||
=================
|
||||
|
||||
* Remove last reference to kiwix-read tool (@legoktm #569)
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Fix broken indentation in usage (@kelson42 #560)
|
||||
* Exit if wrong arguments are passed (@kelson42 #567)
|
||||
* Do not allow multiple values for same option (@juuz0 #564)
|
||||
* Fix default location of "rootLocation" (@rgaudin #571)
|
||||
* [DOCKER] Change default port to 8080 (@neyder #581)
|
||||
* [DOCKER] Simplify dockerfile (@rgaudin #582)
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Fix man page (@kelson42 #576)
|
||||
|
||||
kiwix-tools 3.3.0
|
||||
=================
|
||||
|
||||
* Remove kiwix-read tool (@veloman-yunkan #535)
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Add an option to limit the number of connections for a same IP (@juuz0 #534)
|
||||
* Add an option to limit the number of zim in a multizim fulltext search (@mgautierfr #558)
|
||||
|
||||
kiwix-search
|
||||
------------
|
||||
|
||||
* Remove usage of libkiwix's deprecated api (@veloman-yunkan #535)
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Correctly return a value !0 if something went wrong (@mgautierfr #553)
|
||||
|
||||
|
||||
kiwix-tools 3.2.0
|
||||
=================
|
||||
|
||||
* Print the version of all dependencies (@kelson42 #516)
|
||||
* Better Docker images (@kelson42 @rgaudin)
|
||||
* Update Readme (@kelson42)
|
||||
* Build debian packages on CI (@legoktm #394)
|
||||
* Add man pages for kiwix-read and kiwix-search (@legoktm #392)
|
||||
* Various fixes (@legoktm @hashworks @mgautierfr)
|
||||
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Print the url on which a user can connect to on startup (@juuz0 #499 #522)
|
||||
* Reload library on SIGHUP signal (@veloman-yunkan #497)
|
||||
* Add a option `--monitorLibrary` to monitor and automically reload the library
|
||||
(@veloman-yunkan #503)
|
||||
* Correct handling of SIGTERM and SIGINT (@veloman-yunkan #488)
|
||||
* Add `--customIndexTemplate` option (@manan #477)
|
||||
* Add `--help` option (@kelson42 #511)
|
||||
|
||||
|
||||
kiwix-tools 3.1.2
|
||||
=================
|
||||
|
||||
* Use new threadsafe API of kiwix-lib to do suggestions search.
|
||||
|
||||
kiwix-tools 3.1.1
|
||||
=================
|
||||
|
||||
* Fix compilation on Windows' CI
|
||||
|
||||
kiwix-tools 3.1.0
|
||||
=================
|
||||
|
||||
* [SERVER] Add option to block external links
|
||||
|
||||
kiwix-tools 3.0.3
|
||||
=================
|
||||
|
||||
* [MANAGER] Fix broken --version argument parsing
|
||||
|
||||
kiwix-tools 3.0.2
|
||||
=================
|
||||
|
||||
* New option --version for all tools
|
||||
* Remove benchmark.sh file.
|
||||
* [DOCKER] Add ability to download a file at container start.
|
||||
* [CI] Move to github actions instead of travis.
|
||||
* [SERVER] Trust the given library by default.
|
||||
* [SERVER] Add shortcut alias for option `--address` and `--nodatealias`
|
||||
|
||||
kiwix-tools 3.0.1
|
||||
=================
|
||||
|
||||
* Fix --nodatealiases inverted logic regression
|
||||
|
||||
kiwix-tools 3.0.0
|
||||
=================
|
||||
|
||||
* Move kiwix-serve implementation in kiwix-lib.
|
||||
|
||||
kiwix-tools 2.1.0
|
||||
=================
|
||||
|
||||
* Fix few compilation errors.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Use new api to filter the library.
|
||||
* Mobile friendly top bar.
|
||||
* Add notag parameter to be able to exclude tags from the zim search.
|
||||
|
||||
|
||||
kiwix-tools 2.0.0
|
||||
=================
|
||||
|
||||
kiwix-manage
|
||||
-----------
|
||||
|
||||
* Better usage()
|
||||
* Adding multiple files bug fix
|
||||
* Remove download command.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Better usage()
|
||||
* Display properly welcome page on 3 columns
|
||||
* New welcome page footer "Powered by Kiwix"
|
||||
|
||||
kiwix-tools 1.2.1
|
||||
=================
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Always use POLL when avaible.
|
||||
|
||||
kiwix-tools 1.2.0
|
||||
=================
|
||||
|
||||
* Remove rpath for installed binaries.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* New Dockerfile of kiwix-serve
|
||||
* New --nodatealiases option
|
||||
* Do not use POLL on windows
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Do not show all books if book ids has been provided.
|
||||
* Be able to add several zim files in the same time in a library.
|
||||
|
||||
kiwix-tools 1.1.0
|
||||
=================
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Fix bug about handling of absolute url in old zim file.
|
||||
* All the catalog to be searched by tags.
|
||||
|
||||
kiwix-tools 1.0.0
|
||||
=================
|
||||
|
||||
* [CI] Use the new deps archive xz
|
||||
* Move version 1.0.0. There is no need to stay in pre 1.0 version.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Correctly implement redirection.
|
||||
kiwix-serve now return a 302 http status code instead of resolving the
|
||||
redirection internally and return the content.
|
||||
|
||||
|
||||
kiwix-tools 0.9.0
|
||||
=================
|
||||
|
||||
* Update README
|
||||
* Update man pages
|
||||
* Remove support of external indexes (manage, search, serve)
|
||||
* Update build system as we don't use ctpp2 anymore
|
||||
* Update to last kiwix-lib API.
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Update usage.
|
||||
|
||||
|
||||
kiwix-tools 0.8.0
|
||||
=================
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Be able to remove several books from the library in one command.
|
||||
|
||||
kiwix-tools 0.7.0
|
||||
=================
|
||||
|
||||
* Adapt to kiwix-lib new API
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Dumps only valid books in the opdsfeed.
|
||||
* Allow the opds feed to be filtered by lang and paginated.
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Add a download command to download a remote book locally
|
||||
* Book are referenced by bookId not index.
|
||||
* No more indexType option as it is always XAPIAN.
|
||||
|
||||
kiwix-tools 0.6.1
|
||||
=================
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Update README.
|
||||
* Fix crash when `--library` flag is provided without value.
|
||||
* Correctly handle mimetype of file without extension on 64bits.
|
||||
* Minor fixes
|
||||
|
||||
kiwix-tools 0.6.0
|
||||
=================
|
||||
|
||||
* remove kiwix-install tool.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Improved taskbar #160
|
||||
* Fix global page when using the option `--nosearchbar`
|
||||
* Return 404 for missing resources
|
||||
* Fix compilation for gcc 4.8.
|
||||
|
||||
kiwix-manage
|
||||
------------
|
||||
|
||||
* Returns proper exit code (not always 0)
|
||||
|
||||
|
||||
kiwix-tools 0.5.0
|
||||
=================
|
||||
|
||||
* Build kiwix-tools setting the RPATH
|
||||
* Compile without warning.
|
||||
|
||||
|
||||
kiwix-serve
|
||||
------------
|
||||
|
||||
* Serve metadata information using the "/meta" url.
|
||||
* Serve an OPDS stream of all zim handled by kiwix-serve
|
||||
All informations cannot be infer from the zim file itself,
|
||||
you should use a library.xml to provide needed information (url, ...)
|
||||
* Update kiwix-serve to use the new API of kiwix-lib
|
||||
|
||||
kiwix-tools 0.4.0
|
||||
=================
|
||||
|
||||
* Use gcc-5 on travis.
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Accept zim file with `&` in the name
|
||||
* Do not cache (on client side) global search (as it can depends on the zim
|
||||
files handled)
|
||||
* Fix HTTP byte range handling. (#91)
|
||||
* Fix opening of relative path (#70)
|
||||
* Add a small (and hidden) API to do geo search.
|
||||
* Better request parsing. (#91)
|
||||
* Better handling of invalid request (#116)
|
||||
* Various bug fixes (#146, #150, #153, #165, #168, #165)
|
||||
|
||||
kiwix-search
|
||||
------------
|
||||
|
||||
* Add an option `--suggestion` to do suggestion search with
|
||||
kiwix-search.(#132)
|
||||
|
||||
kiwix-tools 0.3.0
|
||||
=================
|
||||
|
||||
* Move to C++11
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Add a global taskbar in the welcome page to search in all zims (#49)
|
||||
* Serve the taskbar as css file instead of including it in the html (#68):
|
||||
* Better client caching
|
||||
* The html encoding is now in the first 1024 bytes and firefox correctly
|
||||
detect the encoding
|
||||
* Make kiwix-server multi-threaded (#82)
|
||||
* Correctly return 404 instead of crashing when request inexistant skin file
|
||||
(#83)
|
||||
* Correctly respond to bytes-range requests.(#84)
|
||||
* Directly respond to first request for a url instead of refusing the first
|
||||
connexion
|
||||
* Add support to relative url location. (#86)
|
||||
* Remove caching (on client side) for the welcome page. (#86)
|
||||
|
||||
|
||||
kiwix-tools 0.2.0
|
||||
=================
|
||||
|
||||
* Remove indexer tools
|
||||
|
||||
kiwix-serve
|
||||
-----------
|
||||
|
||||
* Correctly fix the deflate data we send over http. (#15)
|
||||
* Update in the taskbar (or topbar):
|
||||
* Taskbar is responsive (github.com/kiwix/kiwix/issues/336)
|
||||
* Force css rules for the taskbar (and not be impacted by content's css)
|
||||
* Add `--nolibrarybutton` to hide the library button from the taskbar.
|
||||
* Rewrite of the welcome page.
|
||||
|
||||
|
||||
kiwix-installer
|
||||
---------------
|
||||
|
||||
* Remove indexing functionnality
|
||||
152
README.md
Normal file
@@ -0,0 +1,152 @@
|
||||
Kiwix tools
|
||||
===========
|
||||
|
||||
The Kiwix tools is a collection of [Kiwix](https://kiwix.org) related
|
||||
command line tools:
|
||||
* kiwix-manage: Manage XML based library of ZIM files
|
||||
* kiwix-search: Full text search in ZIM files
|
||||
* kiwix-serve: HTTP daemon serving ZIM files
|
||||
|
||||
[](https://download.kiwix.org/release/kiwix-tools/)
|
||||
[](https://github.com/kiwix/kiwix-tools/wiki/Repology)
|
||||
[](https://ghcr.io/kiwix/kiwix-tools)
|
||||
[)](https://ghcr.io/kiwix/kiwix-tools)
|
||||
[](https://github.com/kiwix/kiwix-tools/actions/workflows/ci.yml?query=branch%3Amain)
|
||||
[](https://kiwix-tools.readthedocs.org/en/latest/?badge=latest)
|
||||
[](https://www.codefactor.io/repository/github/kiwix/kiwix-tools)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||
|
||||
Disclaimer
|
||||
----------
|
||||
|
||||
This document assumes you have a little knowledge about software
|
||||
compilation. If you experience difficulties with the dependencies or
|
||||
with the Kiwix tools compilation itself, we recommend to have a look
|
||||
to [kiwix-build](https://github.com/kiwix/kiwix-build).
|
||||
|
||||
Preamble
|
||||
--------
|
||||
|
||||
Although the Kiwix tools can be compiled/cross-compiled on/for many
|
||||
systems, the following documentation explains how to do it on POSIX
|
||||
ones. It is primarily thought for GNU/Linux systems and has been tested
|
||||
on recent releases of
|
||||
[Debian](https://debian.org)/[Ubuntu](https://ubuntu.com) and
|
||||
[Fedora](https://getfedora.org).
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
The Kiwix tools rely on a few third party software libraries. They are
|
||||
prerequisites to the Kiwix tools compilation. Therefore, following
|
||||
libraries need to be available:
|
||||
* [libkiwix](https://github.com/kiwix/libkiwix) (package `libkiwix` on Debian/Ubuntu)
|
||||
* [libzim](https://github.com/openzim/libzim) (package `libzim` on Debian/Ubuntu)
|
||||
|
||||
These dependencies may or may not be packaged by your operating
|
||||
system. They may also be packaged but only in an older version. They
|
||||
may be also packaged but without providing a static version. The
|
||||
compilation script will tell you if one of them is missing or too old.
|
||||
In the worse case, you will have to download and compile bleeding edge
|
||||
version by hand.
|
||||
|
||||
If you want to install these dependencies locally, then use the
|
||||
kiwix-tools directory as install prefix.
|
||||
|
||||
If you want to compile Kiwix tools statically, the dependencies should
|
||||
be compiled statically (provide a `lib...a` library), for example by
|
||||
using `--enable-static` with `./configure`.
|
||||
|
||||
Environment
|
||||
-------------
|
||||
|
||||
The Kiwix tools build using [Meson](http://mesonbuild.com/) version
|
||||
0.43 or higher. Meson relies itself on Ninja, pkg-config and a few other
|
||||
compilation tools. Install them first:
|
||||
* [Meson](http://mesonbuild.com/)
|
||||
* [Ninja](https://ninja-build.org/)
|
||||
* [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/)
|
||||
|
||||
These tools should be packaged if you use a cutting edge operating
|
||||
system. If not, have a look to the [Troubleshooting](#Troubleshooting)
|
||||
section.
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
|
||||
Once all dependencies are installed, you can compile Kiwix tools with:
|
||||
```bash
|
||||
meson . build
|
||||
ninja -C build
|
||||
```
|
||||
|
||||
By default, it will compile dynamic linked libraries. If you want
|
||||
statically linked libraries, you can add `-Dstatic-linkage=true`
|
||||
option to the Meson command.
|
||||
|
||||
Depending of you system, `ninja` may be called `ninja-build`.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
If you want to install the Kiwix tools, here we go:
|
||||
```bash
|
||||
ninja -C build install
|
||||
```
|
||||
|
||||
You might need to run the command as `root` (or using `sudo`),
|
||||
depending on where you want to install the Kiwix tools. After the
|
||||
installation succeeded, you may need to run ldconfig (as `root`).
|
||||
|
||||
Uninstallation
|
||||
------------
|
||||
|
||||
If you want to uninstall the Kiwix tools:
|
||||
```bash
|
||||
ninja -C build uninstall
|
||||
```
|
||||
|
||||
Like for the installation, you might need to run the command as `root`
|
||||
(or using `sudo`).
|
||||
|
||||
Docker
|
||||
------
|
||||
|
||||
An official Docker image of the Kiwix tools can be found on
|
||||
[GHCR](https://ghcr.io/kiwix/kiwix-tools). A
|
||||
`kiwix-serve` dedicated Docker image [exists
|
||||
too](https://ghcr.io/kiwix/kiwix-serve).
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
If you need to install Meson "manually":
|
||||
```bash
|
||||
virtualenv -p python3 ./ # Create virtualenv
|
||||
source bin/activate # Activate the virtualenv
|
||||
pip3 install meson # Install Meson
|
||||
hash -r # Refresh bash paths
|
||||
```
|
||||
|
||||
If you need to install Ninja "manually":
|
||||
```bash
|
||||
git clone git://github.com/ninja-build/ninja.git
|
||||
cd ninja
|
||||
git checkout release
|
||||
./configure.py --bootstrap
|
||||
mkdir ../bin
|
||||
cp ninja ../bin
|
||||
cd ..
|
||||
```
|
||||
|
||||
If the compilation still fails, you might need to get a more recent
|
||||
version of a dependency than the one packaged by your Linux
|
||||
distribution. Try then with a source tarball distributed by the
|
||||
problematic upstream project or even directly from the source code
|
||||
repository.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
[GPLv3](https://www.gnu.org/licenses/gpl-3.0) or later, see
|
||||
[COPYING](COPYING) for more details.
|
||||
5
debian/changelog
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
kiwix-tools (0.0.0) unstable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Kunal Mehta <legoktm@debian.org> Mon, 13 Jul 2020 17:21:11 -0700
|
||||
27
debian/control
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
Source: kiwix-tools
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Kiwix team <kiwix@kiwix.org>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
libzim-dev (>= 9.0), libzim-dev (<< 10.0),
|
||||
libkiwix-dev (>= 14.0), libkiwix-dev (<< 15.0),
|
||||
cmake,
|
||||
libdocopt-dev,
|
||||
meson,
|
||||
pkgconf,
|
||||
Standards-Version: 4.6.2
|
||||
Homepage: https://github.com/kiwix/kiwix-tools
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: kiwix-tools
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: collection of Kiwix tools
|
||||
kiwix-tools is a collection of various command-line tools used to help
|
||||
users interact with and manage ZIM files. It includes:
|
||||
* kiwix-serve is a standalone HTTP server for serving ZIM files
|
||||
over the network.
|
||||
* kiwix-manage allows one to manage the content of the Kiwix library (an
|
||||
XML file listing available ZIM files).
|
||||
* kiwix-search allows one to find articles in a ZIM file using fulltext
|
||||
search patterns.
|
||||
1
debian/copyright
vendored
Normal file
@@ -0,0 +1 @@
|
||||
See COPYING in the repository root.
|
||||
5
debian/rules
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/make -f
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
%:
|
||||
dh $@
|
||||
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
34
docker/Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
||||
FROM alpine:3.22
|
||||
LABEL org.opencontainers.image.source=https://github.com/openzim/kiwix-tools
|
||||
|
||||
# TARGETPLATFORM is injected by docker build
|
||||
ARG TARGETPLATFORM
|
||||
ARG VERSION
|
||||
|
||||
RUN set -e && \
|
||||
apk --no-cache add dumb-init curl && \
|
||||
echo "TARGETPLATFORM: $TARGETPLATFORM" && \
|
||||
if [ "$TARGETPLATFORM" = "linux/386" ]; then ARCH="i586"; \
|
||||
# linux/arm64/v8 points to linux/arm64
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm64/v8" \
|
||||
-o "$TARGETPLATFORM" = "linux/arm64" ]; then ARCH="aarch64"; \
|
||||
# linux/arm translates to linux/arm/v7
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then ARCH="armv8"; \
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then ARCH="armv6"; \
|
||||
elif [ "$TARGETPLATFORM" = "linux/amd64/v3" \
|
||||
-o "$TARGETPLATFORM" = "linux/amd64/v2" \
|
||||
-o "$TARGETPLATFORM" = "linux/amd64" ]; then ARCH="x86_64"; \
|
||||
# we dont suppot any other arch so let it fail
|
||||
else ARCH="unknown"; fi && \
|
||||
# download requested kiwix-tools version
|
||||
url="http://mirror.download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-$ARCH-$VERSION.tar.gz" && \
|
||||
echo "URL: $url" && \
|
||||
curl -k -L $url | tar -xz -C /usr/local/bin/ --strip-components 1 && \
|
||||
# only needed in dockerfile
|
||||
apk del curl
|
||||
|
||||
# expose kiwix-serve default port
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD ["/bin/sh", "-c", "echo 'Welcome to kiwix-tools! The following binaries are available:' && ls /usr/local/bin/"]
|
||||
36
docker/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
Kiwix-tools Docker image
|
||||
===
|
||||
|
||||
- Available on [ghcr.io](https://ghcr.io/kiwix/kiwix-tools).
|
||||
- multi-arch (`linux/amd64`, `linux/arm64`, `linux/arm/v7`)
|
||||
- based on official `kiwix-tools` binaries.
|
||||
|
||||
## Usage
|
||||
|
||||
``` sh
|
||||
$ docker run -it ghcr.io/kiwix/kiwix-tools:3.1.2
|
||||
|
||||
Welcome to kiwix-tools! The following binaries are available:
|
||||
kiwix-manage kiwix-search kiwix-serve
|
||||
```
|
||||
|
||||
`kiwix-tools` operates on zim files. You shall mount a volume to access the files.
|
||||
|
||||
```sh
|
||||
docker run -v $(pwd):/data -it ghcr.io/kiwix/kiwix-tools kiwix-search /data/wikipedia_fr_test.zim "Mali"
|
||||
```
|
||||
|
||||
## Building and reusing
|
||||
|
||||
- `kiwix/kiwix-tools` is multi-arch and is ideally built using `buildx`.
|
||||
- requires a `--build-arg VERSION=` with the kiwix-tools release.
|
||||
- can be built using `docker build` in which case it expects an additionnal `--build-arg ARCH=arm` for arm. Otherwise defaults to `amd64`.
|
||||
|
||||
**Notes:**
|
||||
|
||||
- `wget` in `alpine:3` on `arm/v7` (__inside github action only__) crashes when downloading from HTTPs locations. Keep http-only in Dockerfile.
|
||||
- Was also unhappy when using the mirrors so it's using `mirror.download` on purpose.
|
||||
|
||||
## See also
|
||||
|
||||
If you are interested by a Kiwix server only container image, [here it is](server/README.md).
|
||||
18
docker/server/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
ARG VERSION=latest
|
||||
|
||||
# kiwix-tools is multi-arch
|
||||
FROM ghcr.io/kiwix/kiwix-tools:$VERSION
|
||||
LABEL org.opencontainers.image.source=https://github.com/openzim/kiwix-tools
|
||||
|
||||
# expose kiwix-serve default port and workdir
|
||||
EXPOSE 8080
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
|
||||
# running as a named unprivileged user
|
||||
RUN addgroup -S user && adduser -S user -G user
|
||||
USER user
|
||||
|
||||
COPY ./start.sh /usr/local/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/start.sh"]
|
||||
56
docker/server/README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
Kiwix serve Docker image
|
||||
========================
|
||||
|
||||
With local ZIM file(s)
|
||||
----------------------
|
||||
|
||||
* Download a ZIM file from <https://wiki.kiwix.org/wiki/Content>
|
||||
|
||||
* Given `wikipedia.zim` and `wiktionary.zim` reside in `/tmp/zim/`, execute the following:
|
||||
|
||||
```bash
|
||||
docker run -v /tmp/zim:/data -p 8080:8080 ghcr.io/kiwix/kiwix-serve wikipedia.zim wiktionary.zim
|
||||
```
|
||||
|
||||
or, if you want to load all ZIM files within a directory, then use globbing:
|
||||
|
||||
```bash
|
||||
docker run -v /tmp/zim:/data -p 8080:8080 ghcr.io/kiwix/kiwix-serve '*.zim'
|
||||
```
|
||||
|
||||
With remote ZIM file
|
||||
--------------------
|
||||
|
||||
```bash
|
||||
docker run -e "DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim" -p 8080:8080 ghcr.io/kiwix/kiwix-serve
|
||||
```
|
||||
|
||||
Change default port
|
||||
-------------------
|
||||
|
||||
You can change port to expose with environment variable PORT, useful if running on Podman, K8s or OpenShift
|
||||
|
||||
```bash
|
||||
podman run -e "DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim" -e PORT=8888 -p 8080:8888 ghcr.io/kiwix/kiwix-serve
|
||||
```
|
||||
|
||||
ARM
|
||||
---
|
||||
|
||||
Build an image for an ARM based GNU/Linux:
|
||||
```bash
|
||||
docker build . -t ghcr.io/kiwix/kiwix-serve:latest --build-arg ARCH="arm32v7/"
|
||||
```
|
||||
|
||||
Docker Compose
|
||||
--------------
|
||||
|
||||
You can also deploy kiwix with
|
||||
[`docker-compose`](https://docs.docker.com/compose/). Check out a
|
||||
sample at [docker-compose.yml.example](docker-compose.yml.example).
|
||||
|
||||
Screenshots
|
||||
-----------
|
||||
|
||||

|
||||

|
||||
14
docker/server/docker-compose.yml.example
Normal file
@@ -0,0 +1,14 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
kiwix-serve:
|
||||
ports:
|
||||
- 8080:8080
|
||||
image: ghcr.io/kiwix/kiwix-serve:latest
|
||||
# uncomment next 4 lines to use it with local zim file in /tmp/zim
|
||||
# volumes:
|
||||
# - /tmp/zim:/data
|
||||
# command:
|
||||
# - '*.zim'
|
||||
# uncomment next 2 lines to use it with remote zim file
|
||||
# environment:
|
||||
# - 'DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim'
|
||||
BIN
docker/server/pictures/screenshot_1.png
Normal file
|
After Width: | Height: | Size: 187 KiB |
BIN
docker/server/pictures/screenshot_2.png
Normal file
|
After Width: | Height: | Size: 302 KiB |
29
docker/server/start.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Download if necessary a file
|
||||
if [ ! -z "$DOWNLOAD" ]
|
||||
then
|
||||
ZIM=`basename $DOWNLOAD`
|
||||
wget $DOWNLOAD -O "$ZIM"
|
||||
|
||||
# Set arguments
|
||||
if [ "$#" -eq "0" ]
|
||||
then
|
||||
set -- "$@" $ZIM
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$PORT" ]
|
||||
then
|
||||
PORT=8080
|
||||
fi
|
||||
CMD="/usr/local/bin/kiwix-serve --port=$PORT $@"
|
||||
echo $CMD
|
||||
$CMD
|
||||
|
||||
# If error, print the content of /data
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Here is the content of /data:"
|
||||
find /data -type f
|
||||
fi
|
||||
50
docs/conf.py
Normal file
@@ -0,0 +1,50 @@
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file only contains a selection of the most common options. For a full
|
||||
# list see the documentation:
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'kiwix-tools'
|
||||
copyright = '2024, kiwix-team'
|
||||
author = 'kiwix-team'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
"sphinx_rtd_theme"
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
|
||||
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = []
|
||||
8
docs/index.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
Welcome to kiwix-tools' documentation!
|
||||
======================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Contents:
|
||||
|
||||
kiwix-serve
|
||||
891
docs/kiwix-serve.rst
Normal file
@@ -0,0 +1,891 @@
|
||||
***********
|
||||
kiwix-serve
|
||||
***********
|
||||
|
||||
Introduction
|
||||
============
|
||||
|
||||
``kiwix-serve`` is a tool for serving ZIM file content over HTTP. It supports
|
||||
serving a library containing multiple ZIM files. In a large library served by a
|
||||
``kiwix-serve`` instance clients can look up/filter ZIM files of interest by
|
||||
words in their :term:`titles <ZIM title>` and/or descriptions, language, tags, etc.
|
||||
|
||||
``kiwix-serve`` provides a ZIM file viewer for displaying inidividual pages
|
||||
from a ZIM file inside the user's web browser (without downloading the full ZIM
|
||||
file).
|
||||
|
||||
Clients can also remotely search inside those ZIM files that contain a full-text
|
||||
search database.
|
||||
|
||||
``kiwix-serve`` supports Web browsers `Firefox >= 70, Chrome >= 80, Edge >= 80, ChromeAndroid >= 80, Safari >= 14, iOS >= 14 <https://browsersl.ist/#q=Firefox+%3E%3D+70%2C+Chrome+%3E%3D+80%2C+Edge+%3E%3D+80%2C+ChromeAndroid+%3E%3D+80%2C+Safari+%3E%3D+14%2C+iOS+%3E%3D+14>`_.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
kiwix-serve --library [OPTIONS] LIBRARY_FILE_PATH
|
||||
kiwix-serve [OPTIONS] ZIM_FILE_PATH ...
|
||||
|
||||
|
||||
Arguments
|
||||
---------
|
||||
|
||||
.. _cli-arg-library-file-path:
|
||||
|
||||
``LIBRARY_FILE_PATH``: path of an XML library file listing ZIM files to serve.
|
||||
To be used only with the :option:`--library` option. Multiple library files can
|
||||
be provided as a semicolon (``;``) separated list.
|
||||
|
||||
``ZIM_FILE_PATH``: ZIM file path (multiple arguments are allowed).
|
||||
|
||||
``DIRECTORY_PATH``: Directory path containing ZIM files (multiple arguments are allowed).
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
.. option:: --library
|
||||
|
||||
By default, ``kiwix-serve`` expects a list of ZIM files as command line
|
||||
arguments. Providing the :option:`--library` option tells ``kiwix-serve``
|
||||
that the command line argument is rather a :ref:`library XML file
|
||||
<cli-arg-library-file-path>`.
|
||||
|
||||
.. option:: --catalogOnly
|
||||
|
||||
In this mode ``kiwix-serve`` only serves the welcome (library) page and the
|
||||
OPDS catalog. ZIM files referred by the :ref:`library XML file
|
||||
<cli-arg-library-file-path>` need not be accessible.
|
||||
|
||||
This option may be combined with the :option:`--contentServerURL` option.
|
||||
|
||||
.. option:: --contentServerURL=URL
|
||||
|
||||
In :option:`--catalogOnly` mode book content is not served by this instance
|
||||
of `kiwix-serve`. If a separate instance of `kiwix-serve` is running for the
|
||||
same library without that option and thus serves book content, then the root
|
||||
URL of that server can be passed to this instance so that books can still be
|
||||
previewed.
|
||||
|
||||
This option must be combined with the :option:`--catalogOnly` option.
|
||||
|
||||
.. option:: -i ADDR, --address=ADDR
|
||||
|
||||
Listen only on this IP address. By default the server listens on all
|
||||
available IP addresses. Alternatively, you can use special values to define which types of connections to accept:
|
||||
|
||||
- all : Listen for connections on all IP addresses (IPv4 and IPv6).
|
||||
- ipv4 : Listen for connections on all IPv4 addresses.
|
||||
- ipv6 : Listen for connections on all IPv6 addresses.
|
||||
|
||||
|
||||
.. option:: -p PORT, --port=PORT
|
||||
|
||||
TCP port on which to listen for HTTP requests (default: 80).
|
||||
|
||||
|
||||
.. option:: -r ROOT, --urlRootLocation=ROOT
|
||||
|
||||
URL prefix on which the content should be made available (default: empty).
|
||||
|
||||
|
||||
.. option:: -d, --daemon
|
||||
|
||||
Detach the HTTP server daemon from the main process.
|
||||
|
||||
|
||||
.. option:: -a PID, --attachToProcess=PID
|
||||
|
||||
Exit when the process with id PID stops running.
|
||||
|
||||
|
||||
.. option:: -M, --monitorLibrary
|
||||
|
||||
Monitor the XML library file and reload it automatically when it changes.
|
||||
|
||||
Library reloading can be forced anytime by sending a SIGHUP signal to the
|
||||
``kiwix-serve`` process (this works regardless of the presence of the
|
||||
:option:`--monitorLibrary`/:option:`-M` option).
|
||||
|
||||
|
||||
.. option:: -m, --nolibrarybutton
|
||||
|
||||
Disable the library home button in the ZIM viewer toolbar.
|
||||
|
||||
|
||||
.. option:: -n, --nosearchbar
|
||||
|
||||
Disable the searchbox in the ZIM viewer toolbar.
|
||||
|
||||
|
||||
.. option:: -b, --blockexternal
|
||||
|
||||
Prevent the users from directly navigating to external resources via such
|
||||
links in ZIM content.
|
||||
|
||||
|
||||
.. option:: -t N, --threads=N
|
||||
|
||||
Number of threads to run in parallel (default: 4).
|
||||
|
||||
|
||||
.. option:: -s N, --searchLimit=N
|
||||
|
||||
Maximum number of ZIM files in a fulltext multizim search (default: No limit).
|
||||
|
||||
|
||||
.. option:: -z, --nodatealiases
|
||||
|
||||
Create URL aliases for each content by removing the date embedded in the file
|
||||
name. The expected format of the date in the filename is ``_YYYY-MM``. For
|
||||
example, ZIM file ``wikipedia_en_all_2020-08.zim`` will be accessible both as
|
||||
``wikipedia_en_all_2020-08`` and ``wikipedia_en_all``.
|
||||
|
||||
|
||||
.. option:: -c PATH, --customIndex=PATH
|
||||
|
||||
Override the welcome page with a custom HTML file.
|
||||
|
||||
|
||||
.. option:: -L N, --ipConnectionLimit=N
|
||||
|
||||
Max number of (concurrent) connections per IP (default: infinite,
|
||||
recommended: >= 6).
|
||||
|
||||
|
||||
.. option:: -v, --verbose
|
||||
|
||||
Print debug log to STDOUT.
|
||||
|
||||
|
||||
.. option:: -V, --version
|
||||
|
||||
Print the software version.
|
||||
|
||||
|
||||
.. option:: -h, --help
|
||||
|
||||
Print the help text.
|
||||
|
||||
|
||||
HTTP API
|
||||
========
|
||||
|
||||
``kiwix-serve`` serves content at/under ``http://ADDR:PORT/ROOT`` where
|
||||
``ADDR``, ``PORT`` and ``ROOT`` are the values supplied to the
|
||||
:option:`--address`/:option:`-i`, :option:`--port`/:option:`-p` and
|
||||
:option:`--urlRootLocation`/:option:`-r` options, respectively.
|
||||
|
||||
HTTP API endpoints presented below are relative to that location, i.e.
|
||||
``/foo/bar`` must be actually accessed as ``http://ADDR:PORT/ROOT/foo/bar``.
|
||||
|
||||
.. note::
|
||||
|
||||
The HTTP API is documented in its entirety in order to facilitate the work of
|
||||
the Kiwix development team. Note, however, that only a subset of the HTTP API
|
||||
constitutes ``kiwix-serves``'s public interface.
|
||||
|
||||
.. _public-api-endpoint:
|
||||
|
||||
**Public API endpoint**
|
||||
|
||||
A public HTTP API endpoint is intended to serve the outside world (in
|
||||
addition to ``kiwix-serve``'s front-end and other Kiwix products). The
|
||||
Kiwix development team will do its best to ensure gratifying experience for
|
||||
clients of public API endpoints at all stages of the endpoint lifecycle.
|
||||
|
||||
.. _private-api-endpoint:
|
||||
|
||||
**Private API endpoint**
|
||||
|
||||
A private API endpoint is intended to be used only by ``kiwix-serve``'s
|
||||
frontend or by other products maintained solely by the Kiwix team. Private
|
||||
API comes without any guaranees. It may change as frequently and as
|
||||
drasticaly as the Kiwix development team sees fit.
|
||||
|
||||
.. _deprecation:
|
||||
|
||||
**Deprecation**
|
||||
|
||||
Public API doesn't stay frozen once and forever. As the API evolves, Kiwix
|
||||
team reserves the right to drop support for certain old functionality. In
|
||||
such events, an advance notice will be issued and the users will be given
|
||||
enough time to prepare for the change.
|
||||
|
||||
Currently, public endpoints are limited to the following list:
|
||||
|
||||
- :ref:`OPDS API <new-opds-api>`
|
||||
- ``/raw``
|
||||
- ``/search`` (with ``/search/searchdescription.xml``)
|
||||
|
||||
.. _welcome-page:
|
||||
|
||||
``/``
|
||||
-----
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Welcome page is served under ``/``. By default this is the library page, where
|
||||
books are listed and can be looked up/filtered interactively. However, the
|
||||
welcome page can be overriden through the :option:`--customIndex`/:option:`-c`
|
||||
command line option of ``kiwix-serve``.
|
||||
|
||||
|
||||
.. _new-opds-api:
|
||||
|
||||
``/catalog/v2`` (OPDS API)
|
||||
------------------------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`public <public-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
The new OPDS API of ``kiwix-serve`` is based on the `OPDS Catalog specification
|
||||
v1.2 <https://specs.opds.io/opds-1.2>`_. All of its endpoints are grouped under
|
||||
``/catalog/v2``.
|
||||
|
||||
:ref:`Legacy OPDS API <legacy-opds-api>` is preserved for backward
|
||||
compatibility.
|
||||
|
||||
|
||||
``/catalog/v2/root.xml``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
The OPDS Catalog Root links to the OPDS acquisition and navigation feeds
|
||||
accessible through the other endpoints of the OPDS API.
|
||||
|
||||
|
||||
``/catalog/v2/searchdescription.xml``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Describes the `/catalog/v2/entries`_ endpoint in `OpenSearch description format
|
||||
<https://developer.mozilla.org/en-US/docs/Web/OpenSearch>`_.
|
||||
|
||||
|
||||
|
||||
``/catalog/v2/categories``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns the full list of ZIM file categories as an `OPDS Navigation Feed
|
||||
<https://specs.opds.io/opds-1.2#22-navigation-feeds>`_.
|
||||
|
||||
|
||||
``/catalog/v2/entries``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns a full or filtered list of ZIM files as a paginated `OPDS acquisition
|
||||
feed <https://specs.opds.io/opds-1.2#23-acquisition-feeds>`_ with `complete
|
||||
entries
|
||||
<https://specs.opds.io/opds-1.2#512-partial-and-complete-catalog-entries>`_.
|
||||
|
||||
**Pagination:**
|
||||
|
||||
By default, no more than 10 first entries are returned from the library. To
|
||||
obtain the remaining entries the URL query parameters ``start`` and/or
|
||||
``count`` must be used. The output of ``/catalog/v2/entries?start=s&count=n``
|
||||
will contain at most ``n`` (default value: 10) results starting from entry #
|
||||
``s`` (default value: 0). ``count`` with a negative value (e.g. ``count=-1``)
|
||||
removes the limit on the number of results in the output.
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
Previously ``count=0`` also designated an unbounded query (i.e. worked
|
||||
similarly to ``count=-1``). The response to a ``count=0`` query was changed
|
||||
to consist of 0 results, as such a query/response combination is a good way
|
||||
to find out the total number of results (when only that information is
|
||||
needed) with minimal consumption of resources.
|
||||
|
||||
Examples:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# Returns the first 10 entries (internally numbered 0 through 9)
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries'
|
||||
|
||||
# Returns the next 10 entries (internally numbered 10 through 19)
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?start=10'
|
||||
|
||||
# Returns the first 50 entries
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?count=50'
|
||||
|
||||
# Returns 50 entries starting from entry # 100 (i.e. entries ## 100-149)
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?start=100&count=50'
|
||||
|
||||
# Returns all entries
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?count=-1'
|
||||
|
||||
# Returns all entries starting from entry # 100
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?start=100&count=-1'
|
||||
|
||||
|
||||
.. _library-filtering:
|
||||
|
||||
**Filtering:**
|
||||
|
||||
A filtered subset of the library can be requested by providing one or more
|
||||
filtering criteria, whereupon only entries matching *all* of the criteria are
|
||||
included in the response. Pagination is applied to the filtered list. The
|
||||
filtering criteria must be specified via the following URL parameters:
|
||||
|
||||
* ``lang`` - filter by language (specified as a 3-letter language code).
|
||||
|
||||
* ``category`` - filter by categories associated with the library entries.
|
||||
|
||||
* ``tag`` - filter by tags associated with the library entries. Multiple tags
|
||||
can be provided as a semicolon separated list (e.g
|
||||
``tag=wikipedia;_videos:no``). The result will contain only those entries
|
||||
that contain *all* of the requested tags.
|
||||
|
||||
* ``notag`` - filter out (exclude) entries with *any* of the specified tags
|
||||
(example - ``notag=ted;youtube``).
|
||||
|
||||
* ``maxsize`` - include in the results only entries whose size (in bytes)
|
||||
doesn't exceed the provided value.
|
||||
|
||||
* ``q`` - include in the results only entries that contain the specified text
|
||||
in the title or description.
|
||||
|
||||
* ``name`` - include in the results only entries with a matching
|
||||
:term:`book name <Book name>`.
|
||||
|
||||
|
||||
Examples:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# List only books in Italian (lang=ita) but
|
||||
# return only results ## 100-149 (start=100&count=50)
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?lang=ita&start=100&count=50'
|
||||
|
||||
# List only books with category of 'wikipedia' AND containing the word
|
||||
# 'science' in the title or description. Return only the first 10 results.
|
||||
$ curl 'http://localhost:8080/catalog/v2/entries?q=science&category=wikipedia'
|
||||
|
||||
|
||||
``/catalog/v2/entry/ZIMID``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns full info about the library entry with :term:`UUID <ZIM UUID>`
|
||||
``ZIMID``.
|
||||
|
||||
|
||||
``/catalog/v2/illustration/ZIMID``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
**Usage:**
|
||||
|
||||
``/catalog/v2/illustration/ZIMID?size=N``
|
||||
|
||||
Returns the illustration of size ``NxN`` pixels for the library entry with
|
||||
:term:`UUID <ZIM UUID>` ``ZIMID``.
|
||||
|
||||
If no illustration of requested size is found a HTTP 404 error is returned.
|
||||
|
||||
|
||||
``/catalog/v2/languages``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns the full list of ZIM file languages as an `OPDS Navigation Feed
|
||||
<https://specs.opds.io/opds-1.2#22-navigation-feeds>`_.
|
||||
|
||||
|
||||
``/catalog/v2/partial_entries``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <new-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns the full or filtered list of ZIM files as an `OPDS acquisition feed
|
||||
<https://specs.opds.io/opds-1.2#23-acquisition-feeds>`_ with `partial entries
|
||||
<https://specs.opds.io/opds-1.2#512-partial-and-complete-catalog-entries>`_.
|
||||
|
||||
Supported filters are the same as for the `/catalog/v2/entries`_ endpoint.
|
||||
|
||||
|
||||
.. _legacy-opds-api:
|
||||
|
||||
``/catalog`` (Legacy OPDS API)
|
||||
------------------------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`deprecated <deprecation>`
|
||||
===== ===========
|
||||
|
||||
The legacy OPDS API is preserved for backward compatibility and is deprecated.
|
||||
:ref:`New OPDS API <new-opds-api>` should be used instead.
|
||||
|
||||
|
||||
``/catalog/root.xml``
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`deprecated API <legacy-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Full library OPDS catalog (list of all ZIM files).
|
||||
|
||||
|
||||
``/catalog/searchdescription.xml``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`deprecated API <legacy-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Describes the `/catalog/search`_ endpoint in `OpenSearch description format
|
||||
<https://developer.mozilla.org/en-US/docs/Web/OpenSearch>`_.
|
||||
|
||||
|
||||
``/catalog/search``
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`deprecated API <legacy-opds-api>`
|
||||
===== ===========
|
||||
|
||||
Returns the list of ZIM files (in OPDS catalog format) matching the
|
||||
search/filtering criteria. Supported filters are the same as for the
|
||||
`/catalog/v2/entries`_ endpoint.
|
||||
|
||||
|
||||
``/catch/external``
|
||||
-------------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
**Usage:**
|
||||
|
||||
``/catch/external?source=URL``
|
||||
|
||||
Generates a HTML page with a link leading to (the decoded version of) ``URL``
|
||||
and a warning that following that link will load an external (out of ZIM)
|
||||
resource.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
``source``: URL of the external resource (must be URL-encoded).
|
||||
|
||||
**Example:**
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# Intercept an external link to https://example.com?query=abcd
|
||||
$ curl 'http://localhost:8080/catch/external?source=https%3A%2F%2Fexample.com%3Fquery%3Dabcd'
|
||||
|
||||
|
||||
|
||||
``/content``
|
||||
------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
ZIM file content is served under the ``/content`` endpoint as described below.
|
||||
|
||||
|
||||
``/content/ZIMNAME/PATH/IN/ZIMFILE``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Returns the entry with path ``PATH/IN/ZIMFILE`` from ZIM file with :term:`name
|
||||
<ZIM name>` ``ZIMNAME``.
|
||||
|
||||
|
||||
``/content/ZIMNAME``
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
``/content/ZIMNAME`` redirects to the main page of the ZIM file with :term:`name
|
||||
<ZIM name>` ``ZIMNAME`` (unless that ZIM file contains an entry with an empty
|
||||
path or path equal to ``/``, in which case that entry is returned).
|
||||
|
||||
|
||||
``/random``
|
||||
-----------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
**Usage:**
|
||||
|
||||
``/random?content=ZIMNAME``
|
||||
|
||||
Generates a HTTP redirect to a randomly selected article/page from the
|
||||
specified ZIM file.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
``content``: :term:`name of the ZIM file <ZIM name>`.
|
||||
|
||||
|
||||
.. _raw:
|
||||
|
||||
``/raw``
|
||||
--------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`public <public-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
The ``/raw`` API provides access to ZIM file data. It consists of two separate
|
||||
endpoints for accessing data and metadata.
|
||||
|
||||
|
||||
``/raw/ZIMNAME/content/PATH/IN/ZIMFILE``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <raw>`
|
||||
===== ===========
|
||||
|
||||
Returns the entry with path ``PATH/IN/ZIMFILE`` from the ZIM file with
|
||||
:term:`name <ZIM name>` ``ZIMNAME``. Currently, this endpoint almost duplicates
|
||||
(with some subtle technical differences) the newer endpoint
|
||||
`/content/ZIMNAME/PATH/IN/ZIMFILE`_. The important difference is that the
|
||||
``/raw`` endpoint guarantees that no server-side processing will be applied to
|
||||
the returned content, whereas content obtained via the ``/content`` endpoint
|
||||
may in the future undergo some processing intended to improve the operation of
|
||||
the viewer (e.g. compensating for certain bugs in ZIM creation). Also note that
|
||||
``/raw`` is :ref:`public <public-api-endpoint>`, whereas ``/content`` is
|
||||
:ref:`private <private-api-endpoint>`.
|
||||
|
||||
|
||||
``/raw/ZIMNAME/meta/METADATAID``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
===== ===========
|
||||
Type: member of a :ref:`public API <raw>`
|
||||
===== ===========
|
||||
|
||||
Returns the metadata item ``METADATAID`` from the ZIM file with :term:`name
|
||||
<ZIM name>` ``ZIMNAME``.
|
||||
|
||||
|
||||
``/search``
|
||||
-----------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`public <public-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Performs a full text search on one or more ZIM files and returns an HTML page
|
||||
with a list of links to matching pages along with snippets of the matching
|
||||
portions of those pages.
|
||||
|
||||
.. _multi-zim-search-constraints:
|
||||
|
||||
A multi-ZIM search request must comply with the following constraints:
|
||||
|
||||
* the number of ZIM files participating in the search operation must not exceed
|
||||
the limit imposed by the :option:`--searchLimit` option of ``kiwix-serve``.
|
||||
|
||||
* all of the ZIM files participating in the same search operation must be in
|
||||
the same language.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
ZIM file selection parameters:
|
||||
|
||||
At least one of the following parameters must be provided in order to
|
||||
specify in which ZIM file(s) to search. Parameters appearing earlier in
|
||||
below list take precedence over subsequent ones (the later ones, even if
|
||||
present in the request, are simply ignored).
|
||||
|
||||
``content``: :term:`name of the ZIM file <ZIM name>` (for a single-ZIM
|
||||
search). This is a :ref:`legacy parameter <deprecation>`. ``books.name``
|
||||
should be used instead.
|
||||
|
||||
``books.id``: :term:`UUID <ZIM UUID>` of the ZIM file. Can be repeated for
|
||||
a multi-ZIM search, however must respect the :ref:`multi-ZIM search
|
||||
constraints <multi-zim-search-constraints>`.
|
||||
|
||||
.. note::
|
||||
|
||||
If any of the provided ``books.id`` values refers to a book missing
|
||||
from the library then an error is returned instead of running the
|
||||
search on the remaining (valid) entries.
|
||||
|
||||
``books.name``: :term:`name of the ZIM file <ZIM name>` (not to be confused
|
||||
with ``books.filter.name`` which selects/filters based on the :term:`book
|
||||
name <Book name>`). Can be repeated for a multi-ZIM search, however must
|
||||
respect the :ref:`multi-ZIM search constraints
|
||||
<multi-zim-search-constraints>`.
|
||||
|
||||
.. note::
|
||||
|
||||
If any of the provided ``books.name`` values refers to a book missing
|
||||
from the library then an error is returned instead of running the
|
||||
search on the remaining (valid) entries.
|
||||
|
||||
``books.filter.{criteria}``: allows to take full advantage of :ref:`library
|
||||
filtering <library-filtering>` functionality of the `/catalog/v2/entries`_
|
||||
endpoint (``{criteria}`` must be replaced with an attribute/filtering
|
||||
criteria name supported by :ref:`library filtering <library-filtering>`).
|
||||
|
||||
Query parameters:
|
||||
|
||||
``pattern`` (optional; defaults to an empty string): text to search for.
|
||||
|
||||
``latitude``, ``longitude`` & ``distance`` (optional): geospatial query
|
||||
parameters. If all of these are provided, then the results will be
|
||||
restricted to geotagged pages that are within ``distance`` metres from the
|
||||
location on Earth with coordinates ``latitude`` and ``longitude``.
|
||||
|
||||
Pagination parameters:
|
||||
|
||||
``pageLength`` (optional, default: 25): maximum number of search results in
|
||||
the response. Capped at 140.
|
||||
|
||||
``start`` (optional, default: 0): this parameter enables pagination of
|
||||
results. The response will include up to ``pageLength`` results starting
|
||||
with entry # ``start`` from the full list of search results (the first
|
||||
result is assumed to have index 0).
|
||||
|
||||
Other parameters:
|
||||
|
||||
``format`` (optional, default: html): format of the search results. Allowed
|
||||
values are: html, xml.
|
||||
|
||||
Examples:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
# Search for 'android' in the book with name 'scifi-library'
|
||||
# Return results ## 51-60.
|
||||
$ curl 'http://localhost:8080/search?pattern=android&books.name=scifi-library&start=51&pageLength=10'
|
||||
|
||||
# Search for 'napoli' in books in Italian
|
||||
$ curl 'http://localhost:8080/search?books.filter.lang=ita&pattern=napoli'
|
||||
|
||||
# Search for 'chateau' in books in French that have a category of 'wikipedia'.
|
||||
# Return the results as XML.
|
||||
$ curl 'http://localhost:8080/search?pattern=chateau&books.filter.lang=fra&books.filter.category=wikipedia&format=xml'
|
||||
|
||||
|
||||
``/search/searchdescription.xml``
|
||||
---------------------------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`public <public-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Describes the `/search`_ endpoint in `OpenSearch description format
|
||||
<https://developer.mozilla.org/en-US/docs/Web/OpenSearch>`_.
|
||||
|
||||
|
||||
|
||||
``/skin``
|
||||
-----------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Static front-end resources (such as CSS, javascript and images) are all grouped
|
||||
under ``/skin``.
|
||||
|
||||
**Usage:**
|
||||
``/skin/PATH/TO/RESOURCE[?cacheid=CACHEID]``
|
||||
|
||||
`Cache busting
|
||||
<https://javascript.plainenglish.io/what-is-cache-busting-55366b3ac022>`_ of
|
||||
static resources is supported via the optional param ``cacheid``. By default,
|
||||
i.e. when the ``cacheid`` parameter is not specified while accessing the
|
||||
``/skin`` endpoint, static resources are served as if they were dynamic (i.e.
|
||||
could be different for an immediately repeated request). Specifying the
|
||||
``cacheid`` parameter with a correct value (matching the value embedded in the
|
||||
``kiwix-serve`` instance), makes the returned resource to be presented as
|
||||
immutable. However, if the value of the ``cacheid`` parameter mismatches then
|
||||
``kiwix-serve`` responds with a 404 HTTP error.
|
||||
|
||||
``kiwix-serve``'s default front-end (the :ref:`welcome page <welcome-page>` and
|
||||
the :ref:`ZIM file viewer <zim-file-viewer>`) access all underlying static
|
||||
resources by using explicit ``cacheid`` s.
|
||||
|
||||
|
||||
``/suggest``
|
||||
------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
**Usage:**
|
||||
|
||||
``/suggest?content=ZIMNAME[&term=QUERY][&count=N][&start=S]``
|
||||
|
||||
Returns suggestions (in JSON format) for a text string that is assumed to be a
|
||||
partially typed search for a page inside a particular ZIM file.
|
||||
|
||||
Suggestions are obtained as matches of the query text against the page titles
|
||||
in the ZIM file using the title index database generated during the creation of
|
||||
the ZIM file.
|
||||
|
||||
In case of a multi-word query the order of the words matters in two ways:
|
||||
|
||||
1. the last word is considered as partially typed, unless followed by a space;
|
||||
2. ranking of the matches.
|
||||
|
||||
If the ZIM file doesn't contain a title index then suggestions are generated by
|
||||
listing page titles starting *exactly* (in a case sensitive manner) with the
|
||||
query text. Otherwise, suggestions are case-insensitive.
|
||||
|
||||
If the ZIM file contains a full text search index, then an extra suggestion is
|
||||
added as an option to perform a full text search in the said ZIM file.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
``content`` (mandatory): :term:`name of the ZIM file <ZIM name>`.
|
||||
|
||||
``term`` (optional; defaults to an empty string): query text.
|
||||
|
||||
``count`` (optional, default: 10): maximum number of page suggestions in the
|
||||
response (i.e. the extra option to perform a full text search is not included
|
||||
in this count).
|
||||
|
||||
``start`` (optional, default: 0): this parameter enables pagination of
|
||||
results. The response will include up to ``count`` entries starting with
|
||||
entry # ``start`` from the full list of page suggestions (the first result is
|
||||
assumed to have index 0).
|
||||
|
||||
**Example:**
|
||||
|
||||
.. code:: sh
|
||||
|
||||
$ curl 'http://localhost/suggest?content=stackoverflow_en&term=pyth&count=50'
|
||||
|
||||
|
||||
.. _zim-file-viewer:
|
||||
|
||||
``/viewer``
|
||||
-----------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
ZIM file viewer. The ZIM file and entry therein must be specified via the hash
|
||||
component of the URL as ``/viewer#ZIMNAME/PATH/IN/ZIMFILE``.
|
||||
|
||||
|
||||
``/viewer_settings.js``
|
||||
-----------------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Settings of the ZIM file viewer that are configurable via certain command line
|
||||
options of ``kiwix-serve`` (e.g. ``--nolibrarybutton``).
|
||||
|
||||
|
||||
/ANYTHING/ELSE
|
||||
--------------
|
||||
|
||||
===== ===========
|
||||
Type: :ref:`private <private-api-endpoint>`
|
||||
===== ===========
|
||||
|
||||
Any other URL is considered as an attempt to access ZIM file content using the
|
||||
legacy URL scheme and is redirected to ``/content/ANYTHING/ELSE``.
|
||||
|
||||
|
||||
Glossary
|
||||
========
|
||||
|
||||
.. glossary::
|
||||
|
||||
Book name
|
||||
|
||||
Name of the book as specified in the ZIM file metadata (for a
|
||||
``kiwix-serve`` started *WITHOUT* the :option:`--library` option) or the
|
||||
library XML file (for a ``kiwix-serve`` started with the
|
||||
:option:`--library` option).
|
||||
|
||||
.. note::
|
||||
|
||||
Two or more books may have the same name in the library. That's not
|
||||
considered a conflict, because there may be multiple versions of the
|
||||
"same" book (differing by the settings of the scraper, date, etc).
|
||||
:ref:`Library filtering <library-filtering>` by name will return all
|
||||
matching books.
|
||||
|
||||
ZIM filename
|
||||
|
||||
Name of a ZIM file on the server filesystem.
|
||||
|
||||
ZIM name
|
||||
|
||||
Identifier of a ZIM file in the server's library (used for referring to a
|
||||
particular ZIM file in requests).
|
||||
|
||||
ZIM names are derived from the filenames as follows:
|
||||
|
||||
- file extension is removed,
|
||||
- all characters are converted to lowercase,
|
||||
- diacritics are removed,
|
||||
- spaces are replaced with underscores,
|
||||
- ``+`` symbols are replaced with the text ``plus``.
|
||||
|
||||
Presence of the :option:`-z`/:option:`--nodatealiases` option will create
|
||||
additional names (aliases) for filenames with dates.
|
||||
|
||||
ZIM names are expected to be unique across the library. Any name conflicts
|
||||
(including those caused by the usage of the
|
||||
:option:`-z`/:option:`--nodatealiases` option) are reported on STDERR but,
|
||||
otherwise, are ignored (i.e. only one of the entries can be accessed via
|
||||
the conflicting name).
|
||||
|
||||
ZIM title
|
||||
|
||||
Title of a ZIM file. This can be any text (with whitespace). It is never
|
||||
used as a way of referring to a ZIM file.
|
||||
|
||||
ZIM UUID
|
||||
|
||||
This is a unique identifier of a ZIM file designated at its creation time
|
||||
and embedded in the ZIM file. Certain ``kiwix-serve`` operations may
|
||||
require that a ZIM file be referenced through its UUID rather than name.
|
||||
7
docs/meson.build
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
sphinx = find_program('sphinx-build', native:true)
|
||||
|
||||
sphinx_target = run_target('doc',
|
||||
command: [sphinx, '-bhtml',
|
||||
meson.current_source_dir(),
|
||||
meson.current_build_dir()])
|
||||
2
docs/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Sphinx==5.3.0
|
||||
sphinx-rtd-theme==1.1.1
|
||||
14
format_code.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
files=(
|
||||
"src/installer/kiwix-install.cpp"
|
||||
"src/searcher/kiwix-search.cpp"
|
||||
"src/manager/kiwix-manage.cpp"
|
||||
"src/server/kiwix-serve.cpp"
|
||||
)
|
||||
|
||||
for i in "${files[@]}"
|
||||
do
|
||||
echo $i
|
||||
clang-format -i -style=file $i
|
||||
done
|
||||
39
meson.build
Normal file
@@ -0,0 +1,39 @@
|
||||
project('kiwix-tools', 'cpp',
|
||||
version : '3.8.1',
|
||||
license : 'GPL',
|
||||
default_options: ['c_std=c11', 'cpp_std=c++17', 'werror=true'])
|
||||
|
||||
compiler = meson.get_compiler('cpp')
|
||||
|
||||
add_global_arguments('-DKIWIX_TOOLS_VERSION="@0@"'.format(meson.project_version()), language : 'cpp')
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
add_project_arguments('-DNOMINMAX', language: 'cpp')
|
||||
endif
|
||||
|
||||
static_linkage = get_option('static-linkage')
|
||||
if static_linkage
|
||||
# Static build is not supported on MacOS
|
||||
if host_machine.system() != 'darwin'
|
||||
add_global_link_arguments('-static-libstdc++', '--static', language:'cpp')
|
||||
endif
|
||||
endif
|
||||
|
||||
thread_dep = dependency('threads')
|
||||
libzim_dep = dependency('libzim', version:['>=9.0.0', '<10.0.0'], static:static_linkage)
|
||||
libkiwix_dep = dependency('libkiwix', version:['>=14.1.0', '<15.0.0'], static:static_linkage)
|
||||
libdocopt_dep = dependency('docopt', static:static_linkage)
|
||||
|
||||
all_deps = [thread_dep, libkiwix_dep, libzim_dep, libdocopt_dep]
|
||||
|
||||
if static_linkage
|
||||
librt = compiler.find_library('rt', required:false)
|
||||
if librt.found()
|
||||
all_deps += librt
|
||||
endif
|
||||
endif
|
||||
|
||||
subdir('src')
|
||||
if get_option('doc')
|
||||
subdir('docs')
|
||||
endif
|
||||
4
meson_options.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
option('static-linkage', type : 'boolean', value : false,
|
||||
description : 'Create statically linked binaries.')
|
||||
option('doc', type : 'boolean', value : false,
|
||||
description : 'Build the documentations.')
|
||||
@@ -1,294 +0,0 @@
|
||||
/*
|
||||
* Copyright 2011 Emmanuel Engelhart <kelson@kiwix.org>
|
||||
* Copyright 2011 Renaud Gaudin <reg@kiwix.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
* MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <kiwix/manager.h>
|
||||
#include <pathTools.h>
|
||||
#include <regexTools.h>
|
||||
#include "contentManager.h"
|
||||
|
||||
ContentManager::ContentManager(int x) : manager() {}
|
||||
|
||||
bool ContentManager::OpenLibraryFromFile(string path, bool readOnly) {
|
||||
try {
|
||||
return this->manager.readFile(path, readOnly);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ContentManager::OpenLibraryFromText(string &xml, bool readOnly) {
|
||||
|
||||
bool returnValue = true;
|
||||
const char *cXml;
|
||||
cXml = xml.c_str();
|
||||
|
||||
try {
|
||||
return this->manager.readXml(cXml, readOnly);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::WriteLibrary() {
|
||||
|
||||
try {
|
||||
return this->manager.writeFile(this->manager.writableLibraryPath);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::WriteLibraryToFile(string &path) {
|
||||
|
||||
try {
|
||||
return this->manager.writeFile(path.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::AddBookFromPath(string &path) {
|
||||
|
||||
try {
|
||||
return this->manager.addBookFromPath(path.c_str(), path);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::RemoveBookById(string &id) {
|
||||
|
||||
try {
|
||||
return this->manager.removeBookById(id.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::SetCurrentBookId(string &id) {
|
||||
|
||||
try {
|
||||
return this->manager.setCurrentBookId(id.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
string ContentManager::GetCurrentBookId() {
|
||||
string none = "";
|
||||
try {
|
||||
return this->manager.getCurrentBookId();
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return none;
|
||||
}
|
||||
|
||||
return none;
|
||||
}
|
||||
|
||||
bool ContentManager::GetBookById(string &id,
|
||||
string &path,
|
||||
string &title,
|
||||
string &indexPath,
|
||||
string &indexType,
|
||||
string &description,
|
||||
string &articleCount,
|
||||
string &mediaCount,
|
||||
string &size,
|
||||
string &creator,
|
||||
string &date,
|
||||
string &language,
|
||||
string &favicon,
|
||||
string &url) {
|
||||
|
||||
try {
|
||||
kiwix::Book book;
|
||||
|
||||
if (this->manager.getBookById(id.c_str(), book)) {
|
||||
path = book.pathAbsolute.data();
|
||||
title = book.title.data();
|
||||
indexPath = book.indexPathAbsolute.data();
|
||||
articleCount = book.articleCount.data();
|
||||
mediaCount = book.mediaCount.data();
|
||||
size = book.size.data();
|
||||
creator = book.creator.data();
|
||||
date = book.date.data();
|
||||
language = book.language.data();
|
||||
url = book.url.data();
|
||||
|
||||
string faviconUrl = "";
|
||||
if (!book.faviconMimeType.empty()) {
|
||||
faviconUrl = "url(data:" + book.faviconMimeType + ";base64," + book.favicon + ")";
|
||||
}
|
||||
favicon = faviconUrl.data();
|
||||
|
||||
string indexTypeString = "";
|
||||
if (book.indexType == kiwix::XAPIAN) {
|
||||
indexTypeString = "xapian";
|
||||
}
|
||||
indexType = indexTypeString.data();
|
||||
|
||||
description = book.description.data();
|
||||
|
||||
return true;
|
||||
}
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::UpdateBookLastOpenDateById(string &id) {
|
||||
try {
|
||||
return this->manager.updateBookLastOpenDateById(id.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned int ContentManager::GetBookCount(const bool localBooks, const bool remoteBooks) {
|
||||
int count = 0;
|
||||
|
||||
try {
|
||||
return this->manager.getBookCount(localBooks, remoteBooks);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
return count;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
bool ContentManager::ListBooks(string &mode, string &sortBy, unsigned int maxSize,
|
||||
string &language, string &publisher, string &search) {
|
||||
try {
|
||||
|
||||
// Set the mode enum
|
||||
kiwix::supportedListMode listMode;
|
||||
if (mode == "lastOpen") {
|
||||
listMode = kiwix::LASTOPEN;
|
||||
} else if ( mode == "remote") {
|
||||
listMode = kiwix::REMOTE;
|
||||
} else {
|
||||
listMode = kiwix::LOCAL;
|
||||
}
|
||||
|
||||
// Set the sortBy enum
|
||||
kiwix::supportedListSortBy listSortBy;
|
||||
if (sortBy == "publisher") {
|
||||
listSortBy = kiwix::PUBLISHER;
|
||||
} else if ( sortBy == "date") {
|
||||
listSortBy = kiwix::DATE;
|
||||
} else if ( sortBy == "size") {
|
||||
listSortBy = kiwix::SIZE;
|
||||
} else {
|
||||
listSortBy = kiwix::TITLE;
|
||||
}
|
||||
|
||||
return this->manager.listBooks(listMode, listSortBy, maxSize, language.c_str(), publisher.c_str(), search.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* ContentManager::GetListNextBookId() {
|
||||
|
||||
string id;
|
||||
try {
|
||||
if (!this->manager.bookIdList.empty()) {
|
||||
id = *(this->manager.bookIdList.begin());
|
||||
this->manager.bookIdList.erase(this->manager.bookIdList.begin());
|
||||
}
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
}
|
||||
return id.c_str();
|
||||
}
|
||||
|
||||
bool ContentManager::SetBookIndex(string &id, string &path, string &indexType) {
|
||||
try {
|
||||
kiwix::supportedIndexType iType;
|
||||
iType = kiwix::XAPIAN;
|
||||
|
||||
return this->manager.setBookIndex(id.c_str(), path.c_str(), iType);
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContentManager::SetBookPath(string &id, string &path) {
|
||||
try {
|
||||
return this->manager.setBookPath(id.c_str(), path.c_str());
|
||||
} catch (exception &e) {
|
||||
cerr << e.what() << endl;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
string ContentManager::GetBooksLanguages() {
|
||||
string languagesStr = "";
|
||||
|
||||
vector<string> booksLanguages = this->manager.getBooksLanguages();
|
||||
vector<string>::iterator itr;
|
||||
for ( itr = booksLanguages.begin(); itr != booksLanguages.end(); ++itr ) {
|
||||
languagesStr += *itr + ";";
|
||||
}
|
||||
return languagesStr;
|
||||
}
|
||||
|
||||
string ContentManager::GetBooksPublishers() {
|
||||
string publishersStr = "";
|
||||
|
||||
vector<string> booksPublishers = this->manager.getBooksPublishers();
|
||||
vector<string>::iterator itr;
|
||||
for ( itr = booksPublishers.begin(); itr != booksPublishers.end(); ++itr ) {
|
||||
publishersStr += *itr + ";";
|
||||
}
|
||||
return publishersStr;
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2013 Emmanuel Engelhart <kelson@kiwix.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
* MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <kiwix/xapianIndexer.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
void usage() {
|
||||
cout << "Usage: kiwix-index [--verbose] ZIM_PATH INDEX_PATH" << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
/* Init the variables */
|
||||
char *zimFilePath = NULL;
|
||||
char *indexPath = NULL;
|
||||
bool verboseFlag = false;
|
||||
int option_index = 0;
|
||||
int c = 0;
|
||||
|
||||
kiwix::XapianIndexer *indexer = NULL;
|
||||
|
||||
/* Argument parsing */
|
||||
while (42) {
|
||||
|
||||
static struct option long_options[] = {
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
if (c != -1) {
|
||||
c = getopt_long(argc, argv, "v", long_options, &option_index);
|
||||
|
||||
switch (c) {
|
||||
case 'v':
|
||||
verboseFlag = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (optind < argc) {
|
||||
if (zimFilePath == NULL) {
|
||||
zimFilePath = argv[optind++];
|
||||
} else if (indexPath == NULL) {
|
||||
indexPath = argv[optind++];
|
||||
} else {
|
||||
usage();
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if we have enough arguments */
|
||||
if (zimFilePath == NULL || indexPath == NULL) {
|
||||
usage();
|
||||
}
|
||||
|
||||
/* Try to prepare the indexing */
|
||||
try {
|
||||
indexer = new kiwix::XapianIndexer();
|
||||
} catch (...) {
|
||||
cerr << "Unable to index '" << zimFilePath << "'." << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Start the indexing */
|
||||
if (indexer != NULL) {
|
||||
indexer->setVerboseFlag(verboseFlag);
|
||||
indexer->start(zimFilePath, indexPath);
|
||||
while (indexer->isRunning()) {
|
||||
if (verboseFlag)
|
||||
cout << indexer->getProgression() << "% of all the articles indexed..." << endl;
|
||||
kiwix::sleep(1000);
|
||||
}
|
||||
if (verboseFlag)
|
||||
cout << "100% of the articles were successfuly indexed..." << endl;
|
||||
delete indexer;
|
||||
} else {
|
||||
cerr << "Unable instanciate the Kiwix indexer." << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
exit(0);
|
||||
}
|
||||
@@ -1,197 +0,0 @@
|
||||
/*
|
||||
* Copyright 2011-2014 Emmanuel Engelhart <kelson@kiwix.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
* MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <getopt.h>
|
||||
#include <pathTools.h>
|
||||
#include <kiwix/xapianIndexer.h>
|
||||
#include <kiwix/reader.h>
|
||||
#include <kiwix/manager.h>
|
||||
|
||||
enum supportedAction { NONE, ADDCONTENT };
|
||||
|
||||
void usage() {
|
||||
cout << "Usage: kiwix-install [--verbose] [--buildIndex] addcontent ZIM_PATH KIWIX_PATH" << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
/* Init the variables */
|
||||
const char *contentPath = NULL;
|
||||
const char *kiwixPath = NULL;
|
||||
supportedAction action = NONE;
|
||||
bool verboseFlag = false;
|
||||
bool buildIndexFlag = false;
|
||||
int option_index = 0;
|
||||
int c = 0;
|
||||
|
||||
/* Argument parsing */
|
||||
while (42) {
|
||||
|
||||
static struct option long_options[] = {
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{"buildIndex", no_argument, 0, 'i'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
if (c != -1) {
|
||||
c = getopt_long(argc, argv, "vi", long_options, &option_index);
|
||||
|
||||
switch (c) {
|
||||
case 'v':
|
||||
verboseFlag = true;
|
||||
break;
|
||||
case 'i':
|
||||
buildIndexFlag = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (optind < argc) {
|
||||
if (action == NONE) {
|
||||
string actionString = argv[optind++];
|
||||
if (actionString == "addcontent" || actionString == "ADDCONTENT") {
|
||||
action = ADDCONTENT;
|
||||
}
|
||||
} else if (contentPath == NULL) {
|
||||
contentPath = argv[optind++];
|
||||
} else if (kiwixPath == NULL) {
|
||||
kiwixPath = argv[optind++];
|
||||
} else {
|
||||
usage();
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if we have enough arguments */
|
||||
if (contentPath == NULL || kiwixPath == NULL) {
|
||||
usage();
|
||||
}
|
||||
|
||||
/* Make the action */
|
||||
if (action == ADDCONTENT) {
|
||||
|
||||
/* Check if the content path exists and is readable */
|
||||
if (verboseFlag) { std::cout << "Check if the ZIM file exists..." << std::endl; }
|
||||
if (!fileExists(contentPath)) {
|
||||
cerr << "The content path '" << contentPath << "' does not exist or is not readable." << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Check if this is a ZIM file */
|
||||
try {
|
||||
if (verboseFlag) { std::cout << "Check if the ZIM file is valid..." << std::endl; }
|
||||
kiwix::Reader *reader = new kiwix::Reader(contentPath);
|
||||
delete reader;
|
||||
} catch (exception &e) {
|
||||
cerr << "The content available at '" << contentPath << "' is not a ZIM file." << endl;
|
||||
exit(1);
|
||||
}
|
||||
string contentFilename = getLastPathElement(contentPath);
|
||||
|
||||
/* Check if kiwixPath/kiwix/kiwix.exe exists */
|
||||
if (verboseFlag) { std::cout << "Check if the Kiwix path is valid..." << std::endl; }
|
||||
string kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix.exe");
|
||||
if (!fileExists(kiwixBinaryPath)) {
|
||||
kiwixBinaryPath = computeAbsolutePath(kiwixPath, "kiwix/kiwix");
|
||||
if (!fileExists(kiwixBinaryPath)) {
|
||||
cerr << "Unable to find the Kiwix binary at '" << kiwixBinaryPath << "[.exe]'." << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if the directory "data" structure exists */
|
||||
if (verboseFlag) { std::cout << "Check the target data directory structure..." << std::endl; }
|
||||
string dataPath = computeAbsolutePath(kiwixPath, "data/");
|
||||
if (!fileExists(dataPath)) {
|
||||
makeDirectory(dataPath);
|
||||
}
|
||||
|
||||
/* Check if the directory "data/content" structure exists */
|
||||
string dataContentPath = computeAbsolutePath(kiwixPath, "data/content/");
|
||||
if (!fileExists(dataContentPath)) {
|
||||
makeDirectory(dataContentPath);
|
||||
}
|
||||
|
||||
/* Check if the directory "data/library" structure exists */
|
||||
string dataLibraryPath = computeAbsolutePath(kiwixPath, "data/library/");
|
||||
if (!fileExists(dataLibraryPath)) {
|
||||
makeDirectory(dataLibraryPath);
|
||||
}
|
||||
|
||||
/* Check if the directory "data/index" structure exists */
|
||||
string dataIndexPath = computeAbsolutePath(kiwixPath, "data/index/");
|
||||
if (!fileExists(dataIndexPath)) {
|
||||
makeDirectory(dataIndexPath);
|
||||
}
|
||||
|
||||
/* Copy the file to the data/content directory */
|
||||
if (verboseFlag) { std::cout << "Copy ZIM file to the target directory..." << std::endl; }
|
||||
string newContentPath = computeAbsolutePath(dataContentPath, contentFilename);
|
||||
if (!fileExists(newContentPath) || getFileSize(contentPath) != getFileSize(newContentPath)) {
|
||||
copyFile(contentPath, newContentPath);
|
||||
}
|
||||
|
||||
/* Index the file if necessary */
|
||||
if (verboseFlag) { std::cout << "Check if the index directory exists..." << std::endl; }
|
||||
string indexFilename = contentFilename + ".idx";
|
||||
string indexPath = computeAbsolutePath(dataIndexPath, indexFilename);
|
||||
if (buildIndexFlag && !fileExists(indexPath)) {
|
||||
if (verboseFlag) { std::cout << "Start indexing the ZIM file..." << std::endl; }
|
||||
kiwix::XapianIndexer *indexer = NULL;
|
||||
try {
|
||||
indexer = new kiwix::XapianIndexer();
|
||||
} catch (...) {
|
||||
cerr << "Unable to index '" << contentPath << "'." << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (indexer != NULL) {
|
||||
indexer->setVerboseFlag(verboseFlag);
|
||||
indexer->start(contentPath, indexPath);
|
||||
while (indexer->isRunning()) {
|
||||
kiwix::sleep(1000);
|
||||
}
|
||||
delete indexer;
|
||||
} else {
|
||||
cerr << "Unable instanciate the Kiwix indexer." << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Add the file to the library.xml */
|
||||
if (verboseFlag) { std::cout << "Create the library XML file..." << std::endl; }
|
||||
kiwix::Manager libraryManager;
|
||||
string libraryPath = computeAbsolutePath(dataLibraryPath, contentFilename + ".xml");
|
||||
string bookId = libraryManager.addBookFromPathAndGetId(newContentPath, "../content/" + contentFilename, "", false);
|
||||
if (!bookId.empty()) {
|
||||
libraryManager.setCurrentBookId(bookId);
|
||||
if (buildIndexFlag) {
|
||||
libraryManager.setBookIndex(bookId, "../index/" + indexFilename, kiwix::XAPIAN);
|
||||
}
|
||||
libraryManager.writeFile(libraryPath);
|
||||
} else {
|
||||
cerr << "Unable to build or save library file '" << libraryPath << "'" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
exit(0);
|
||||
}
|
||||
@@ -1,285 +0,0 @@
|
||||
/*
|
||||
* Copyright 2012-2014
|
||||
* Renaud Gaudin <reg@kiwix.org>
|
||||
* Emmanuel Engelhart <kelson@kiwix.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
* MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
|
||||
#include <Windows.h>
|
||||
#include <process.h>
|
||||
#define EXEXT ".exe"
|
||||
#define EXECL _execl
|
||||
#define PUTENV _putenv
|
||||
#else
|
||||
#define EXEXT ""
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#define EXECL execl
|
||||
#define PUTENV putenv
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include "pathTools.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
/* Split string in a token array */
|
||||
std::vector<std::string> split(const std::string & str,
|
||||
const std::string & delims=" *-")
|
||||
{
|
||||
std::string::size_type lastPos = str.find_first_not_of(delims, 0);
|
||||
std::string::size_type pos = str.find_first_of(delims, lastPos);
|
||||
std::vector<std::string> tokens;
|
||||
|
||||
while (std::string::npos != pos || std::string::npos != lastPos)
|
||||
{
|
||||
tokens.push_back(str.substr(lastPos, pos - lastPos));
|
||||
lastPos = str.find_first_not_of(delims, pos);
|
||||
pos = str.find_first_of(delims, lastPos);
|
||||
}
|
||||
|
||||
return tokens;
|
||||
}
|
||||
|
||||
/* Quote string on Windows */
|
||||
char *prepareArgument(const char *argument) {
|
||||
if (argument != NULL) {
|
||||
#ifdef _WIN32
|
||||
string quotedArgument = "\"" + string(argument) + "\"";
|
||||
return strdup(quotedArgument.c_str());
|
||||
#else
|
||||
return strdup(argument);
|
||||
#endif
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
/* Initialisation of a few paths */
|
||||
string executablePath = getExecutablePath();
|
||||
string executableDirectory = removeLastPathElement(executablePath);
|
||||
|
||||
/* Possible xulrunner paths */
|
||||
std::vector<std::string> xulrunnerPossibleDirectories;
|
||||
std::vector<std::string>::iterator directoriesIt;
|
||||
|
||||
/* Possible xulrunner paths: local directories */
|
||||
xulrunnerPossibleDirectories.push_back(computeAbsolutePath(executableDirectory, "xulrunner"));
|
||||
xulrunnerPossibleDirectories.push_back(computeAbsolutePath(executableDirectory, "kiwix/xulrunner"));
|
||||
xulrunnerPossibleDirectories.push_back(computeAbsolutePath(executableDirectory, "kiwix-linux/xulrunner"));
|
||||
xulrunnerPossibleDirectories.push_back(computeAbsolutePath(executableDirectory, "kiwix-win/xulrunner"));
|
||||
xulrunnerPossibleDirectories.push_back(computeAbsolutePath(executableDirectory, "kiwix-windows/xulrunner"));
|
||||
|
||||
/* Possible xulrunner paths: system directories */
|
||||
string binaryPath = getenv("PATH") == NULL ? "" : string(getenv("PATH"));
|
||||
std::vector<std::string> xulrunnerPossibleSystemDirectories = ::split(binaryPath, ":");
|
||||
for (directoriesIt = xulrunnerPossibleSystemDirectories.begin() ;
|
||||
directoriesIt != xulrunnerPossibleSystemDirectories.end() ;
|
||||
directoriesIt++) {
|
||||
xulrunnerPossibleDirectories.push_back(*directoriesIt);
|
||||
}
|
||||
|
||||
/* Possible xulrunner binary names */
|
||||
std::vector<std::string> xulrunnerPossibleNames;
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner") + std::string(EXEXT));
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner-bin") + std::string(EXEXT));
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner-") + std::string(GECKO_VERSION));
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner-") + std::string(GECKO_VERSION) +
|
||||
std::string(".0"));
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner-") + std::string(MAJOR_GECKO_VERSION));
|
||||
xulrunnerPossibleNames.push_back(std::string("xulrunner-") + std::string(MINOR_GECKO_VERSION));
|
||||
|
||||
/* Find xulrunner (binary) path */
|
||||
string xulrunnerPath;
|
||||
std::vector<std::string>::iterator filesIt;
|
||||
directoriesIt = xulrunnerPossibleDirectories.begin();
|
||||
while (xulrunnerPath.empty() && directoriesIt != xulrunnerPossibleDirectories.end()) {
|
||||
if (fileExists(*directoriesIt)) {
|
||||
filesIt = xulrunnerPossibleNames.begin();
|
||||
while (xulrunnerPath.empty() &&
|
||||
filesIt != xulrunnerPossibleNames.end()) {
|
||||
xulrunnerPath = computeAbsolutePath(*directoriesIt, *filesIt);
|
||||
if (!fileExists(xulrunnerPath)) {
|
||||
xulrunnerPath.clear();
|
||||
}
|
||||
filesIt++;
|
||||
};
|
||||
}
|
||||
directoriesIt++;
|
||||
}
|
||||
if (!fileExists(xulrunnerPath)) {
|
||||
perror("Error: unable to find the xulrunner binary.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
/* Compute xulrunner directory */
|
||||
string xulrunnerDirectory = removeLastPathElement(xulrunnerPath);
|
||||
|
||||
/* Compute application.ini path */
|
||||
std::vector<std::string> applicationIniPossiblePaths;
|
||||
applicationIniPossiblePaths.push_back(computeAbsolutePath(executableDirectory,
|
||||
"application.ini"));
|
||||
applicationIniPossiblePaths.push_back(computeAbsolutePath(executableDirectory,
|
||||
"kiwix/application.ini"));
|
||||
applicationIniPossiblePaths.push_back(computeAbsolutePath(executableDirectory,
|
||||
"kiwix-linux/application.ini"));
|
||||
applicationIniPossiblePaths.push_back(computeAbsolutePath(executableDirectory,
|
||||
"kiwix-win/application.ini"));
|
||||
applicationIniPossiblePaths.push_back(computeAbsolutePath(executableDirectory,
|
||||
"kiwix-windows/application.ini"));
|
||||
|
||||
string applicationIniPath;
|
||||
filesIt = applicationIniPossiblePaths.begin();
|
||||
while (applicationIniPath.empty() &&
|
||||
filesIt != applicationIniPossiblePaths.end()) {
|
||||
if (fileExists(*filesIt)) {
|
||||
applicationIniPath = *filesIt;
|
||||
}
|
||||
filesIt++;
|
||||
};
|
||||
if (!fileExists(xulrunnerPath)) {
|
||||
perror("Error: unable to find the application.ini file.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
/* Debug prints */
|
||||
/*
|
||||
cout << "Executable directory (executableDirectory): " << executableDirectory << endl;
|
||||
cout << "Executable path (executablePath): " << executablePath << endl;
|
||||
cout << "Xulrunner directory (xulrunnerDirectory): " << xulrunnerDirectory << endl;
|
||||
cout << "Xulrunner path (xulrunnerPath): " << xulrunnerPath << endl;
|
||||
cout << "Application.ini path (applicationIniPath): " << applicationIniPath << endl;
|
||||
*/
|
||||
|
||||
/* Modify environnement variables */
|
||||
#ifdef _WIN32
|
||||
string sep = ";";
|
||||
string execlArg0 = "kiwix-launcher.exe";
|
||||
#else
|
||||
string sep = ":";
|
||||
string execlArg0 = xulrunnerPath.c_str();
|
||||
#endif
|
||||
|
||||
string ldLibraryPath = getenv("LD_LIBRARY_PATH") == NULL ? "" : string(getenv("LD_LIBRARY_PATH"));
|
||||
string putenvStr = "LD_LIBRARY_PATH=" + xulrunnerDirectory + sep + ldLibraryPath;
|
||||
PUTENV((char *)putenvStr.c_str());
|
||||
|
||||
/* Launch xulrunner */
|
||||
if (argc == 0) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
NULL);
|
||||
} else if (argc == 1) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
NULL);
|
||||
} else if (argc == 2) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
NULL);
|
||||
} else if (argc == 3) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
NULL);
|
||||
} else if (argc == 4) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
NULL);
|
||||
} else if (argc == 5) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
prepareArgument(argv[5]),
|
||||
NULL);
|
||||
} else if (argc == 6) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
prepareArgument(argv[5]),
|
||||
prepareArgument(argv[6]),
|
||||
NULL);
|
||||
} else if (argc == 7) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
prepareArgument(argv[5]),
|
||||
prepareArgument(argv[6]),
|
||||
prepareArgument(argv[7]),
|
||||
NULL);
|
||||
} else if (argc == 8) {
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
prepareArgument(argv[5]),
|
||||
prepareArgument(argv[6]),
|
||||
prepareArgument(argv[7]),
|
||||
prepareArgument(argv[8]),
|
||||
NULL);
|
||||
} else if (argc >= 9) {
|
||||
if (argc > 9) {
|
||||
cerr << "Kiwix was not able to forward all your arguments to the xulrunner binary." << endl;
|
||||
}
|
||||
return EXECL(xulrunnerPath.c_str(),
|
||||
execlArg0.c_str(),
|
||||
prepareArgument(applicationIniPath.c_str()),
|
||||
prepareArgument(argv[1]),
|
||||
prepareArgument(argv[2]),
|
||||
prepareArgument(argv[3]),
|
||||
prepareArgument(argv[4]),
|
||||
prepareArgument(argv[5]),
|
||||
prepareArgument(argv[6]),
|
||||
prepareArgument(argv[7]),
|
||||
prepareArgument(argv[8]),
|
||||
prepareArgument(argv[9]),
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>kiwix</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Kiwix</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>0.9</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>kiwix.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.kiwix.kiwix</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Kiwix</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>KIWI</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleURLIconFile</key>
|
||||
<string>kiwix.icns</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>Kiwix URL</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>zim</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0.1</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>kiwix-ZIM.icns</string>
|
||||
<key>LSHandlerRank</key>
|
||||
<string>Owner</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>OpenZIM Content File</string>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>zim</string>
|
||||
<string>zimaa</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.productivity</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.6.0</string>
|
||||
<key>LSMinimumSystemVersionByArchitecture</key>
|
||||
<dict>
|
||||
<key>i386</key>
|
||||
<string>10.6.0</string>
|
||||
<key>x86_64</key>
|
||||
<string>10.6.0</string>
|
||||
</dict>
|
||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||
<true/>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>GeckoNSApplication</string>
|
||||
<key>UTExportedTypeDeclarations</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>UTTypeIdentifier</key>
|
||||
<string>org.kiwix.kiwix.zim</string>
|
||||
<key>UTTypeReferenceURL</key>
|
||||
<string>http://www.kiwix.org</string>
|
||||
<key>UTTypeDescription</key>
|
||||
<string>Kiwix ZIM File</string>
|
||||
<key>UTTypeConformsTo</key>
|
||||
<array>
|
||||
<string>public.data</string>
|
||||
<string>public.content</string>
|
||||
</array>
|
||||
<key>UTTypeTagSpecification</key>
|
||||
<dict>
|
||||
<key>com.apple.ostype</key>
|
||||
<string>TBMZ</string>
|
||||
<key>public.filename-extension</key>
|
||||
<array>
|
||||
<string>zim</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
CFBundleName = "Kiwix";
|
||||
NSHumanReadableCopyright = "Copyright © 2006-2014 Contributors.";
|
||||
@@ -1 +0,0 @@
|
||||
APPLMOZM
|
||||
@@ -1,109 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import os
|
||||
import subprocess
|
||||
import re
|
||||
|
||||
MODE_COMPONENT = 1
|
||||
MODE_BINARY = 2
|
||||
MODE_LIBRARY = 3
|
||||
|
||||
MODES = {'c': MODE_COMPONENT,
|
||||
'b': MODE_BINARY,
|
||||
'l': MODE_LIBRARY}
|
||||
|
||||
is_library = False
|
||||
is_component = False
|
||||
is_binary = False
|
||||
|
||||
|
||||
def usage():
|
||||
print(u"Usage: %s MODE component/path.dylib" % sys.argv[0])
|
||||
print(u" MODE is c: component or b: binary or l: library")
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
usage()
|
||||
exit(0)
|
||||
|
||||
component = sys.argv[-1]
|
||||
mode = MODES.get(sys.argv[-2].lower())
|
||||
|
||||
if not mode:
|
||||
usage()
|
||||
exit(1)
|
||||
|
||||
# mode switchers
|
||||
if mode == MODE_COMPONENT:
|
||||
is_component = True
|
||||
elif mode == MODE_LIBRARY:
|
||||
is_library = True
|
||||
else:
|
||||
is_binary = True
|
||||
|
||||
if not os.path.exists(component):
|
||||
print(u"Unable to access component at: %s" % component)
|
||||
exit(1)
|
||||
|
||||
# we'll also allow binaries to be fixed.
|
||||
#
|
||||
if (is_library or is_component) and not component.endswith('.dylib'):
|
||||
print(u"%s is not a dylib component" % component)
|
||||
exit(1)
|
||||
|
||||
print("Fixing %s..." % component)
|
||||
|
||||
basename = os.path.basename(component)
|
||||
try:
|
||||
name, ext = basename.rsplit('.', 1)
|
||||
except ValueError:
|
||||
name = basename
|
||||
ext = ''
|
||||
libname = u'lib%s%s.0.dylib' % (name[0].upper(), name[1:])
|
||||
|
||||
# change ID if component to match new name/path
|
||||
if is_component:
|
||||
os.system('install_name_tool -id %s %s' % (basename, component))
|
||||
|
||||
# run otool to get a list of deps.
|
||||
otool = subprocess.Popen(['otool', '-L', component], stdout=subprocess.PIPE)
|
||||
otool_out, otool_err = otool.communicate()
|
||||
|
||||
for line in otool_out.split('\n'):
|
||||
if ('executable_path' in line
|
||||
or 'libSystem' in line
|
||||
or ':' in line
|
||||
or not len(line)
|
||||
or 'aria2c' in basename):
|
||||
continue
|
||||
path, junk = line.strip().split(' (', 1)
|
||||
# erroneous_links.append(path)
|
||||
|
||||
_basename = os.path.basename(path).strip()
|
||||
|
||||
if _basename == basename:
|
||||
continue
|
||||
|
||||
# is it a library link?
|
||||
match = re.match(r'lib([a-z\_\-\d\+]+)([\.?\d]*)\.dylib', _basename)
|
||||
if match:
|
||||
print("match: %s" % match.groups()[0])
|
||||
if 'libstdc++' in line or 'libgcc' in line:
|
||||
# newpath = u'/usr/lib/lib%s%s.dylib' % (match.groups()[0], match.groups()[1])
|
||||
# newpath = u'lib%s%s.dylib' % (match.groups()[0], match.groups()[1])
|
||||
# newpath = u'@executable_path/lib%s%s.dylib' % (match.groups()[0], match.groups()[1])
|
||||
continue
|
||||
elif is_component:
|
||||
# newpath = u'@executable_path/../Frameworks/lib%s.dylib' % match.groups()[0]
|
||||
newpath = u'@executable_path/lib%s.dylib' % match.groups()[0]
|
||||
elif is_binary:
|
||||
# newpath = u'@executable_path/../../Frameworks/lib%s.dylib' % match.groups()[0]
|
||||
newpath = u'@executable_path/../lib%s.dylib' % match.groups()[0]
|
||||
else:
|
||||
newpath = u'@loader_path/lib%s.dylib' % match.groups()[0]
|
||||
|
||||
print('install_name_tool -change %s %s %s' % (path, newpath, component))
|
||||
os.system('install_name_tool -change %s %s %s' % (path, newpath, component))
|
||||
continue
|
||||
|
||||
print('\tUnmatched: %s' % path)
|
||||
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 98 KiB |
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.files.user-selected.read-write</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
<key>com.apple.security.inherit</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,23 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix-compact \- Compacteur d'index pour fichier ZIM
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix-compact INDEX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Compacte les fichiers d'index des ZIM à l'aide de xapian-compact.
|
||||
|
||||
.TP
|
||||
\fBINDEX_PATH\fR
|
||||
Chemin de l'index plein texte à compacter.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix-index(1) kiwix-manage(1) xapian-compact(1)
|
||||
.br
|
||||
kiwix-install(1) kiwix-serve(1)
|
||||
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -1,31 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix\-index \- Indexeur de fichiers ZIM
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix\-index [\-\-backend|\-b=xapian|clucene] ZIM_PATH INDEX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Génère un index plein texte xapian ou cLucene pour un fichier ZIM.
|
||||
|
||||
.TP
|
||||
\fB\-\-backend=xapian|clucene\fR
|
||||
Séléctionne un moteur d'indexation.
|
||||
|
||||
.TP
|
||||
\fBZIM_PATH\fR
|
||||
Chemin du fichier ZIM à indexer.
|
||||
|
||||
.TP
|
||||
\fBINDEX_PATH\fR
|
||||
Chemin où enregistrer l'index plein texte.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix\-compact(1) kiwix\-manage(1) kiwix\-serve(1)
|
||||
.br
|
||||
kiwix(1) kiwix\-install(1)
|
||||
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -1,40 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix\-install \- Installeur de fichiers ZIM
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix\-install [\-\-verbose|-v] [\-\-backend|\-b=xapian|clucene] [\-\-buildIndex|\-i] addcontent ZIM_PATH KIWIX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Créé une arborescence contenant Kiwix et des données pour redistribution.
|
||||
.br
|
||||
Si demandé, créé aussi un index plein texte.
|
||||
|
||||
.TP
|
||||
\fB\-\-verbose\fR
|
||||
Active le mode verbeux de la sortie.
|
||||
|
||||
.TP
|
||||
\fB\-\-backend=xapian|clucene\fR
|
||||
Séléctionne un moteur d'indexation.
|
||||
|
||||
.TP
|
||||
\fB\-\-buildIndex\fR
|
||||
Créer un index plein texte pour le fichier ZIM.
|
||||
|
||||
.TP
|
||||
\fBZIM_PATH\fR
|
||||
Chemin du fichier de contenu ZIM.
|
||||
|
||||
.TP
|
||||
\fBKIWIX_PATH\fR
|
||||
Chemin d'accès dossier kiwix/.
|
||||
.br
|
||||
Le chemin doit contenit le binaire statique de Kiwix.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-serve(1) kiwix\-compact(1) kiwix\-manage(1)
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -57,8 +57,8 @@ Chemin vers l'index plein texte correspondant au fichier ZIM.
|
||||
Définit l'adresse URL corresponsant au fichier ZIM pour pouvoir être téléchargé depuis Kiwix.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-install(1) kiwix\-serve(1) kiwix\-compact(1)
|
||||
kiwix(1) kiwix\-install(1) kiwix\-serve(1)
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
|
||||
@@ -52,10 +52,10 @@ Chemin vers le fichier bibliothèque de Kiwix.
|
||||
Le fichier bibliothèque est un fichier XML créé avec \fBkiwix-manage\fB.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-manage(1)
|
||||
kiwix(1) kiwix\-manage(1)
|
||||
.br
|
||||
kiwix\-install(1) kiwix\-compact(1)
|
||||
kiwix\-install(1)
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
.TH KIWIX 1 "12 juin 2012"
|
||||
.SH NAME
|
||||
Kiwix \- Lecteur hors-ligne de fichiers ZIM
|
||||
.SH SYNOPSIS
|
||||
.B kiwix [-jsconsole] [-articleByUrl] [-articleByTitle] [FILE]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Kiwix est un lecteur de content au format ZIM.
|
||||
.br
|
||||
Les fichiers ZIM sont des archives de contenus compressés (généralement HTML)
|
||||
.br
|
||||
Les fichiers ZIM les plus populaires sont ceux de Wikipédia et Wikileaks.
|
||||
|
||||
.TP
|
||||
\fB\-jsconsole\fR
|
||||
Active la console de debogage JavaScript de Xulrunner.
|
||||
\fB\-articleByUrl url\fR
|
||||
Ouvre un article en particulier en renseignant son url. FILE doit être donné.
|
||||
.TP
|
||||
\fB\-articleByTitle title\fR
|
||||
Ouvre un article en particulier en renseignant son titre. FILE doit être donné.
|
||||
|
||||
.PP
|
||||
Fonctionnalités:
|
||||
* Lecteur de ZIM natif
|
||||
* Moteur de recherche plein texte
|
||||
* Signets et Notes
|
||||
* Serveur Web pour diffuser les fichiers ZIM sur le réseau
|
||||
* Export HTML et PDF
|
||||
* Traduits dans de nombreuses langues
|
||||
* Suggestions de recherche
|
||||
* Indexation des fichiers ZIM
|
||||
* Onglets de navigation
|
||||
* Bibliothèque de contenus intégrée
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix-index(1) kiwix-install(1) kiwix-serve(1)
|
||||
.br
|
||||
kiwix-compact(1) kiwix-manage(1)
|
||||
|
||||
|
||||
.SH TROUBLESHOOTING
|
||||
Aller à http://reportabug.kiwix.org pour plus de détails sur comment rapporter un bogue.
|
||||
|
||||
.SH AUTHORS
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
Guillaume Duhamel <gduhamel@linterweb.com>
|
||||
Fabien Coullon <fcoulon@linterweb.com>
|
||||
Renaud Gaudin <rgaudin@gmail.com>
|
||||
Wilfredo Rodriguez <wilfredor@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
3
src/man/fr/meson.build
Normal file
@@ -0,0 +1,3 @@
|
||||
install_man('kiwix-manage.1',
|
||||
'kiwix-serve.1',
|
||||
install_dir:get_option('mandir')+'/fr/man1')
|
||||
@@ -1,23 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix-compact \- ZIM index compacter
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix-compact INDEX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Compacts ZIM index files used by Kiwix using xapian-compact
|
||||
|
||||
.TP
|
||||
\fBINDEX_PATH\fR
|
||||
Full-text index path to compact.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix-index(1) kiwix-manage(1) xapian-compact(1)
|
||||
.br
|
||||
kiwix-install(1) kiwix-serve(1)
|
||||
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -1,31 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix\-index \- Kiwix ZIM Indexer
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix\-index [\-\-backend|\-b=xapian|clucene] ZIM_PATH INDEX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Generates a xapian or clucene full-text index for a ZIM file.
|
||||
|
||||
.TP
|
||||
\fB\-\-backend=xapian|clucene\fR
|
||||
Select an indexing backend.
|
||||
|
||||
.TP
|
||||
\fBZIM_PATH\fR
|
||||
ZIM file path to index.
|
||||
|
||||
.TP
|
||||
\fBINDEX_PATH\fR
|
||||
Path to save the full\-text index to.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix\-compact(1) kiwix\-manage(1) kiwix\-serve(1)
|
||||
.br
|
||||
kiwix(1) kiwix\-install(1)
|
||||
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -1,40 +0,0 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.SH NAME
|
||||
kiwix\-install \- Kiwix ZIM Installer
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
kiwix\-install [\-\-verbose|-v] [\-\-backend|\-b=xapian|clucene] [\-\-buildIndex|\-i] addcontent ZIM_PATH KIWIX_PATH
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Creates a standalone Kiwix + data hierarchy.
|
||||
.br
|
||||
If specified, also creates a full\-text index.
|
||||
|
||||
.TP
|
||||
\fB\-\-verbose\fR
|
||||
Enable verbose output.
|
||||
|
||||
.TP
|
||||
\fB\-\-backend=xapian|clucene\fR
|
||||
Select an indexing backend.
|
||||
|
||||
.TP
|
||||
\fB\-\-buildIndex\fR
|
||||
Build an index for the ZIM file.
|
||||
|
||||
.TP
|
||||
\fBZIM_PATH\fR
|
||||
ZIM content file path.
|
||||
|
||||
.TP
|
||||
\fBKIWIX_PATH\fR
|
||||
Path to the kiwix/ folder.
|
||||
.br
|
||||
The path must contain the kiwix standalone binary.
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-serve(1) kiwix\-compact(1) kiwix\-manage(1)
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
@@ -1,62 +1,69 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.TH KIWIX-MANAGE 1 "21 May 2012"
|
||||
|
||||
.SH NAME
|
||||
kiwix\-manage \- Kiwix Library Manager
|
||||
|
||||
.SH SYNOPSIS
|
||||
.IX Header SYNOPSIS
|
||||
.B kiwix\-manage
|
||||
.br
|
||||
kiwix\-manage LIBRARY_PATH add ZIM_PATH ...
|
||||
.br
|
||||
kiwix-manage LIBRARY_PATH show [CONTENTID1] [CONTENTID2] ...
|
||||
.br
|
||||
kiwix\-manage LIBRARY_PATH remove CONTENTID1 [CONTENTID2]
|
||||
.SH DESCRIPTION
|
||||
.SS kiwix\-manage
|
||||
.PP
|
||||
\fBkiwix\-manage\fP tool for managing a kiwix library.
|
||||
.PP
|
||||
Allows one to manage the content of the kiwix library. Library file is an XML flat file
|
||||
listing ZIM files with all necessary information like favicon, date, creator,
|
||||
description, indexpath, filepath, title, source/metalink etc.
|
||||
.
|
||||
.PP
|
||||
Example library file can be found at http://www.kiwix.org/library\.xml
|
||||
.br
|
||||
.TP
|
||||
\fBadd\fR
|
||||
Add \fBZIM_FILE\fP to \fBLIBRARY_FILE\fP.
|
||||
\fBkiwix\-manage\fR LIBRARY_PATH \fBadd\fR ZIM_PATH ...
|
||||
.TP
|
||||
\fBkiwix\-manage\fR LIBRARY_PATH \fBshow\fR [ZIM_ID_1] [ZIM_ID_2] ...
|
||||
.TP
|
||||
\fBkiwix\-manage\fR LIBRARY_PATH \fBremove\fR ZIM_ID_1 [ZIM_ID_2] ...
|
||||
.TP
|
||||
\fBkiwix\-manage\fR --version
|
||||
.TP
|
||||
\fBkiwix\-manage\fR --help
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fBkiwix\-manage\fP is a command line tool for manipulating a Kiwix XML library.
|
||||
.PP
|
||||
\fBkiwix\-manage\fP allows to manage the entries of the Kiwix
|
||||
library. The library file is a flat XML file listing ZIM files with
|
||||
all necessary information like id, favicon, date, creator,
|
||||
description, filepath, title, url, etc.
|
||||
|
||||
.SH ACTIONS
|
||||
|
||||
.TP
|
||||
\fBshow\fR
|
||||
Show given \fBCONTENT_ID\fP from \fBLIBRARY_FILE\fR. If no \fBCONTENT_ID\fP is given then all contents from \fBLIBRARY_FILE\fR are shown.
|
||||
\fBadd\fR
|
||||
Add \fBZIM_FILE\fP to \fBLIBRARY_FILE\fP. Create the library file if necessary.
|
||||
|
||||
.TP
|
||||
\fBremove\fR
|
||||
Remove the given \fBCONTENT_ID\fR from \fBLIBRARY_FILE\fR. At least one \fBCONTENT_ID\fR should be specified.
|
||||
Remove the given \fBZIM_ID\fR from \fBLIBRARY_FILE\fR. At least one \fBZIM_ID\fR should be specified.
|
||||
|
||||
.TP
|
||||
\fB\-\-zimPathToSave=\fR
|
||||
Change the location reference of the ZIM file in the library.
|
||||
\fBshow\fR
|
||||
Show given \fBZIM_ID\fP from \fBLIBRARY_FILE\fR. If no \fBZIM_ID\fP is given then all contents from \fBLIBRARY_FILE\fR are shown.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
Options to be used with the action \fBadd\fR:
|
||||
|
||||
.TP
|
||||
\fB\-\-current\fR
|
||||
Mark this content as the current (default) content in the library.
|
||||
\fB\-\-url=HTTP_URL\fR
|
||||
Set the ZIM online HTTP(S) URL
|
||||
|
||||
.TP
|
||||
\fB\-\-backend=xapian|clucene\fR
|
||||
Select an indexing backend.
|
||||
\fB\-\-zimPathToSave=OTHER_FS_PATH\fR
|
||||
Set an arbitrary ZIM filesystem path (instead of the ZIM_PATH)
|
||||
|
||||
.TP
|
||||
\fB\-\-indexPath=FULLTEXT_IDX_PATH\fR
|
||||
Path to full-text index for that ZIM file.
|
||||
Other options (to be used alone):
|
||||
|
||||
.TP
|
||||
\fBurl\fR
|
||||
Set the content location of the ZIM file over the network for in\-kiwix download.
|
||||
\fB\-\-help | \-h\fR
|
||||
Display the kiwix-manage help
|
||||
|
||||
.TP
|
||||
\fB\-\-version | \-v\fR
|
||||
Display the version of kiwix-manage and all dependences
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-install(1) kiwix\-serve(1) kiwix\-compact(1)
|
||||
.SH AUTHOR
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
kiwix\-serve(1)
|
||||
|
||||
.SH AUTHORS
|
||||
Kiwix team <contact@kiwix.org>
|
||||
|
||||
21
src/man/kiwix-search.1
Normal file
@@ -0,0 +1,21 @@
|
||||
.TH KIWIX-SEARCH "1" "July 2020" "kiwix-tools" "User Commands"
|
||||
.SH NAME
|
||||
kiwix-search \- find articles using a fulltext search pattern
|
||||
.SH SYNOPSIS
|
||||
\fBkiwix-search\fR [OPTIONS] ZIM PATTERN\fR
|
||||
.SH DESCRIPTION
|
||||
.TP
|
||||
ZIM
|
||||
ZIM file to search
|
||||
.TP
|
||||
PATTERN
|
||||
Words or parts of words to search for in the ZIM file
|
||||
.TP
|
||||
\fB\-s\fR, \fB\-\-suggestion\fR
|
||||
Suggest article titles based on the PATTERN instead of a fulltext search
|
||||
.TP
|
||||
\fB\-V\fR, \fB\-\-version\fR
|
||||
print software version
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-verbose\fR
|
||||
Give details about the search process
|
||||
@@ -1,61 +1,155 @@
|
||||
.TH KIWIX 1 "21 May 2012"
|
||||
.TH KIWIX 1 "10 July 2023"
|
||||
|
||||
.SH NAME
|
||||
kiwix\-serve \- Kiwix HTTP Server
|
||||
kiwix-serve \- Kiwix HTTP Server
|
||||
|
||||
.SH SYNOPSIS
|
||||
.IX Header "SYNOPSIS"
|
||||
|
||||
.B kiwix-serve --library [OPTIONS] LIBRARY_FILE_PATH
|
||||
.br
|
||||
kiwix\-serve [\-\-index=INDEX_PATH] [\-\-port=PORT] [\-\-verbose] [\-\-daemon] [\-\-attachToProcess=PID] ZIM_PATH
|
||||
.B kiwix-serve [OPTIONS] ZIM_FILE_PATH ...
|
||||
.br
|
||||
kiwix\-serve \-\-library [\-\-port=PORT] [\-\-verbose] [\-\-daemon] [\-\-attachToProcess=PID] LIBRARY_PATH
|
||||
.B kiwix-serve [OPTIONS] DIRECTORY_PATH ...
|
||||
.br
|
||||
.B kiwix-serve [OPTIONS] ZIM_FILE_PATH DIRECTORY_PATH ...
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Stand\-alone HTTP server for serving ZIM content over the network.
|
||||
The \fBkiwix-serve\fR command is used to run a stand-alone HTTP server for serving ZIM contents over the network.
|
||||
|
||||
.SH ARGUMENTS
|
||||
.TP
|
||||
\fBLIBRARY_FILE_PATH\fR
|
||||
Path of an XML library file listing ZIM files to serve. To be used only with the --library option. Multiple library files can be provided as a semicolon (;) separated list.
|
||||
|
||||
.TP
|
||||
\fB\-\-index=INDEX_PATH\fR
|
||||
Path to index folder created using \fBkiwix-index\fB.
|
||||
\fBZIM_FILE_PATH ...\fR
|
||||
ZIM file path(s). Multiple arguments are allowed.
|
||||
|
||||
.TP
|
||||
\fB\-\-port=PORT\fR
|
||||
Port number on which the server should listen.
|
||||
\fBDIRECTORY_PATH ...\fR
|
||||
Path(s) of directories containing ZIM files. Multiple arguments are allowed.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB--library\fR
|
||||
By default, kiwix-serve expects a list of ZIM files as command line arguments. Providing the --library option tells kiwix-serve that the command line argument is rather a library XML file.
|
||||
|
||||
.TP
|
||||
\fB-i ADDR, --address=ADDR\fR
|
||||
Listen only on this IP address. By default, the server listens on all available IP addresses. Alternatively, you can use special values to define which types of connections to accept:
|
||||
|
||||
all : Listen for connections on all IP addresses (IPv4 and IPv6).
|
||||
.br
|
||||
By default, server listens on port 80.
|
||||
|
||||
.TP
|
||||
\fB\-\-verbose\fR
|
||||
Enable verbose output.
|
||||
|
||||
.TP
|
||||
\fB\-\-daemon\fR
|
||||
Run the server as a daemon
|
||||
|
||||
.TP
|
||||
\fB\-\-attachToProcess=PID\fR
|
||||
Shutdown the server when process numbered PID dies.
|
||||
|
||||
.TP
|
||||
\fBZIM_PATH\fR
|
||||
ZIM file of the content to serve.
|
||||
ipv4 : Listen for connections on all IPv4 addresses.
|
||||
.br
|
||||
Mandatory if not in library mode.
|
||||
ipv6 : Listen for connections on all IPv6 addresses.
|
||||
|
||||
.TP
|
||||
\fB\-\-library\fR
|
||||
Enable library mode.
|
||||
.br
|
||||
Serves the contents of a library file instead of a single ZIM file.
|
||||
\fB-p PORT, --port=PORT\fR
|
||||
TCP port on which to listen for HTTP requests (default: 80).
|
||||
|
||||
.TP
|
||||
\fBLIBRARY_PATH\fR
|
||||
Kiwix library file path.
|
||||
.br
|
||||
Library is XML file created using \fBkiwix-manage\fB.
|
||||
\fB-r ROOT, --urlRootLocation=ROOT\fR
|
||||
URL prefix on which the content should be made available (default: empty).
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix(1) kiwix\-index(1) kiwix\-manage(1)
|
||||
.TP
|
||||
\fB-d, --daemon\fR
|
||||
Detach the HTTP server daemon from the main process.
|
||||
|
||||
.TP
|
||||
\fB-a PID, --attachToProcess=PID\fR
|
||||
Exit when the process with id PID stops running.
|
||||
|
||||
.TP
|
||||
\fB-M, --monitorLibrary\fR
|
||||
Monitor the XML library file and reload it automatically when it changes.
|
||||
|
||||
Library reloading can be forced anytime by sending a SIGHUP signal to the
|
||||
\*(lqkiwix-serve\*(rq process (this works regardless of the presence of the
|
||||
\*(lq--monitorLibrary\*(rq/\*(lq-M\*(rq option).
|
||||
|
||||
.TP
|
||||
\fB-m, --nolibrarybutton\fR
|
||||
Disable the library home button in the ZIM viewer toolbar.
|
||||
|
||||
.TP
|
||||
\fB-n, --nosearchbar\fR
|
||||
Disable the search box in the ZIM viewer toolbar.
|
||||
|
||||
.TP
|
||||
\fB-b, --blockexternal\fR
|
||||
Prevent users from directly navigating to external resources via links in ZIM content.
|
||||
|
||||
.TP
|
||||
\fB-t N, --threads=N\fR
|
||||
Number of threads to run in parallel (default: 4).
|
||||
|
||||
.TP
|
||||
\fB-s N, --searchLimit=N\fR
|
||||
Maximum number of ZIM files in a fulltext multizim search (default: No limit).
|
||||
|
||||
.TP
|
||||
\fB-z, --nodatealiases\fR
|
||||
Create URL aliases for each content by removing the date embedded in the file name.
|
||||
|
||||
The expected format of the date in the filename is \*(lq_YYYY-MM\*(rq. For example, a ZIM file named \*(lqwikipedia_en_all_2020-08.zim\*(rq will be accessible both as \*(lqwikipedia_en_all_2020-08\*(rq and \*(lqwikipedia_en_all\*(rq.
|
||||
|
||||
.TP
|
||||
\fB-c PATH, --customIndex=PATH\fR
|
||||
Override the welcome page with a custom HTML file.
|
||||
|
||||
.TP
|
||||
\fB-L N, --ipConnectionLimit=N\fR
|
||||
Max number of (concurrent) connections per IP (default: infinite, recommended: >= 6).
|
||||
|
||||
.TP
|
||||
\fB-k, --skipInvalid\fR
|
||||
Startup even when ZIM files are invalid (those will be skipped)
|
||||
|
||||
.TP
|
||||
\fB-v, --verbose\fR
|
||||
Print debug log to STDOUT.
|
||||
|
||||
.TP
|
||||
\fB-V, --version\fR
|
||||
Print the software version.
|
||||
|
||||
.TP
|
||||
\fB-h, --help\fR
|
||||
Print a help message.
|
||||
|
||||
.SH EXAMPLES
|
||||
Serve a single ZIM file:
|
||||
.sp
|
||||
.nf
|
||||
.B kiwix-serve myzim.zim
|
||||
.fi
|
||||
|
||||
Serve multiple ZIM files:
|
||||
.sp
|
||||
.nf
|
||||
.B kiwix-serve zim1.zim zim2.zim zim3.zim
|
||||
.fi
|
||||
|
||||
Serve ZIM files within a directory or directories:
|
||||
.sp
|
||||
.nf
|
||||
.B kiwix-serve zimDir1 zimDir2
|
||||
|
||||
Serve ZIM files from a library:
|
||||
.sp
|
||||
.nf
|
||||
.B kiwix-serve --library library.xml
|
||||
.fi
|
||||
|
||||
.SH DOCUMENTATION
|
||||
Online documentation: https://kiwix-tools.readthedocs.io/en/latest/kiwix-serve.html
|
||||
.br
|
||||
kiwix\-install(1) kiwix\-compact(1)
|
||||
.SH AUTHOR
|
||||
Source code: https://github.com/kiwix/kiwix-tools
|
||||
.br
|
||||
More info: https://wiki.kiwix.org/wiki/Kiwix-serve
|
||||
|
||||
.SH AUTHORS
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||
Vasudev Kamath <kamathvasudev@gmail.com>
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
.TH KIWIX 1 "12 June 2012"
|
||||
.SH NAME
|
||||
Kiwix \- Offline ZIM file reader
|
||||
.SH SYNOPSIS
|
||||
.B kiwix [-jsconsole] [-articleByUrl] [-articleByTitle] [FILE]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Kiwix is an offline content reader for the ZIM format.
|
||||
.br
|
||||
ZIM files are compressed content (usually HTML) archives.
|
||||
.br
|
||||
Most popular ZIM includes Wikipedia and Wikileaks.
|
||||
|
||||
.TP
|
||||
\fB\-jsconsole\fR
|
||||
Enable the Javascript Debug console (Xulrunner)
|
||||
.TP
|
||||
\fB\-articleByUrl url\fR
|
||||
Open a specific article by url. FILE must be given.
|
||||
.TP
|
||||
\fB\-articleByTitle title\fR
|
||||
Open a specific article by title. FILE must be given.
|
||||
|
||||
.PP
|
||||
Features:
|
||||
* Pure ZIM file reader
|
||||
* Full text search engine
|
||||
* Bookmarks & Notes
|
||||
* ZIM base HTTP server
|
||||
* PDF/HTML export
|
||||
* Localized in 80+ languages
|
||||
* Search suggestions
|
||||
* ZIM file indexing capacity
|
||||
* Tabs navigation
|
||||
* Content manager
|
||||
|
||||
.SH SEE ALSO
|
||||
kiwix-index(1) kiwix-install(1) kiwix-serve(1)
|
||||
.br
|
||||
kiwix-compact(1) kiwix-manage(1)
|
||||
|
||||
.SH TROUBLESHOOTING
|
||||
See http://reportabug.kiwix.org for more details on how to report bugs in Kiwix.
|
||||
|
||||
.SH AUTHORS
|
||||
Emmanuel Engelhart <kelson@kiwix.org>
|
||||
Guillaume Duhamel <gduhamel@linterweb.com>
|
||||
Fabien Coullon <fcoulon@linterweb.com>
|
||||
Renaud Gaudin <rgaudin@gmail.com>
|
||||
Wilfredo Rodriguez <wilfredor@kiwix.org>
|
||||
.br
|
||||
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
|
||||