Igor Chubin
e70b815306
Disable language detection
2021-01-31 20:23:09 +01:00
Igor Chubin
dabff40376
Add doc/developer.md
2021-01-31 18:50:00 +01:00
Igor Chubin
5bb899be9e
Add initial typing support
2021-01-31 18:35:59 +01:00
Igor Chubin
bda370afaf
Remove some python2 code
2021-01-31 18:35:15 +01:00
Igor Chubin
16eaa7814a
Add devkeys support
2021-01-31 18:34:35 +01:00
Igor Chubin
62a4a58687
Add NOT_FOUND_MESSAGE to adapter/question.py
2021-01-24 15:59:11 +01:00
Igor Chubin
1924f14096
Use sql comments for psql ( #276 )
2021-01-17 21:36:30 +00:00
Igor Chubin
4d86f0fb95
Add powershell to PLAIN_TEXT_AGENTS ( #273 )
2021-01-10 09:50:51 +01:00
Igor Chubin
6f688ef447
Add reference do doc/standalone.md ( #14 , #97 , #98 )
2021-01-01 18:15:46 +01:00
Igor Chubin
831f4c5078
Add doc/standalone.md
2021-01-01 18:14:48 +01:00
Igor Chubin
52f9282079
Merge pull request #269 from chubin/invisible-fail
...
Show non-printable chars in failed tests
2021-01-01 13:01:23 +01:00
Igor Chubin
d80d4b5e62
Merge pull request #268 from madsmtm/add-opensearch
...
Add OpenSearch description format file
2021-01-01 12:19:24 +01:00
Anatoli Babenia
f0ead68c64
Merge pull request #267 from madsmtm/remove-broken-stylesheet
...
Remove broken fonts stylesheet
2020-12-14 23:36:51 +03:00
Anatoli Babenia
a365d72585
Show non-printable chars in failed tests
2020-12-10 20:38:13 +03:00
Mads Marquart
15e46b25c2
Make the search quicker by not going through ?topic=
2020-12-10 15:15:08 +01:00
Mads Marquart
1cf8f340a8
Add OpenSearch description format file
...
See https://github.com/dewitt/opensearch and
https://developer.mozilla.org/en-US/docs/Web/OpenSearch for more info.
2020-12-10 15:02:43 +01:00
Mads Marquart
e118a5b4dc
Remove broken fonts stylesheet
2020-12-10 14:58:37 +01:00
Igor Chubin
d2b8697ea2
Hotfix unicode processing for Python 3 ( fixes #265 )
...
This fix is temprorary, and must be implemented properly,
after Python 2 support will be fully dropped.
2020-11-29 21:37:30 +00:00
Igor Chubin
011a077915
Merge pull request #264 from chubin/fixes
...
Show multiple cheat sheets when found (#147 )
2020-11-23 08:26:14 +01:00
Igor Chubin
9e8baaf13f
Update lib/routing.py
...
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org >
2020-11-23 08:21:05 +01:00
Igor Chubin
2ac09da877
Update results/17 (az)
2020-11-22 20:17:21 +00:00
Igor Chubin
8df1c945ab
Continue if response found in cache
2020-11-22 20:09:51 +00:00
Igor Chubin
7b043574f7
Update tests
2020-11-22 19:00:56 +00:00
Igor Chubin
6515e7d86b
Show all cheat sheets when several found
2020-11-22 19:00:44 +00:00
Igor Chubin
ada27852ca
Merge pull request #261 from chubin/proper-flask-logging
...
Properly setup Flask logging to stderr
2020-11-22 11:54:21 +01:00
Igor Chubin
d0810209e2
Merge pull request #262 from chubin/degevent
...
Remove explicit `gevent` imports
2020-11-22 11:53:29 +01:00
Anatoli Babenia
9bfd23ae67
Remove explicit gevent imports
...
It is enough to monkey patch one time at the top level,
which is done in `bin/srv.py` web server script.
2020-11-17 17:23:33 +03:00
Anatoli Babenia
fec99a7a54
Properly setup Flask logging to stderr
...
Sometimes there is nothing, sometimes lines are duplicated.
Duplicated lines problem appears, because Python root logger
handler and Flask's `werkzeug` logger handler both write the
same message. `cheat.sh` is hit, because it sets this root
logging handler.
Normally `werkzeug` doesn't setup its own handler if it sees
that there are some handlers that process its messages. This
in case of `cheat.sh` resulted in no stderr logging at all.
No Exceptions either. Because `werkzeug` catches the
exceptions and logs them.
Hovewer, sometimes `werkzeug` starts too early, befora app
is imported (https://github.com/pallets/werkzeug/issues/1969 )
and sets its logger anyway, before the app itself, resulting
in duplicating lines. In that case app root handler needs to
skip lines from `werkzeug`.
Kudos to @brandon-rhodes for `logging_tree` awesomeness
2020-11-17 13:38:16 +03:00
Igor Chubin
a4be5d8025
Merge pull request #255 from chubin/chubin.ci
...
Chubin.ci
2020-11-17 01:04:24 +01:00
Igor Chubin
a0a2268966
Update tests/results/7 (:random)
2020-11-16 23:59:42 +00:00
Igor Chubin
d20cf0ca2a
Merge branch 'master' into chubin.ci
2020-11-16 23:59:05 +00:00
Igor Chubin
426d251dcd
Return 'cache' property in answer_dict
2020-11-16 23:58:57 +00:00
Igor Chubin
99c793fa29
Reorder commands in Dockerfile
2020-11-16 23:03:42 +00:00
Igor Chubin
b8df31004c
Disable caching for UpstreamAdapter
2020-11-16 22:54:18 +00:00
Igor Chubin
f13d4f6b03
Merge pull request #260 from chubin/unboxing
...
Decouple Flask `app` from `gevent` monkeypatching
2020-11-16 20:33:25 +01:00
Igor Chubin
121298d786
Merge pull request #257 from fedebuonco/random-help
...
Added :random to the help page.
2020-11-16 18:56:58 +01:00
Anatoli Babenia
277b45e83c
Decouple Flask app from gevent monkeypatching
2020-11-16 12:02:12 +03:00
fedeb
4eb5e618d1
Added :random to the help page.
2020-11-15 19:54:05 +01:00
Igor Chubin
a538409f70
Upgrade pygments
2020-11-13 19:02:43 +00:00
Igor Chubin
372c5d0289
Copy requirements.txt
2020-11-13 18:39:50 +01:00
Igor Chubin
1245f7850f
Merge pull request #254 from chubin/travis-cleanup
...
Clean up Travis files
2020-11-13 18:34:35 +01:00
Igor Chubin
0a80be83ae
Move pip3 to right place
2020-11-13 18:31:23 +01:00
Igor Chubin
96fb2b1355
Move pip3 to right place
2020-11-13 18:21:28 +01:00
Anatoli Babenia
c0f6f17623
Clean up Travis files
2020-11-13 16:04:06 +03:00
Anatoli Babenia
027d107c93
Fix invalid .yml for Actions
...
Ref. #253
2020-11-13 13:52:04 +01:00
Anatoli Babenia
f568e3e306
Port .travis.yml to GitHub Actions
2020-11-13 13:52:04 +01:00
Anatoli Babenia
3cc9338d50
Try to build container with GitHub Actions
2020-11-13 13:52:04 +01:00
Anatoli Babenia
78aab551ad
Fix invalid .yml for Actions
...
Ref. #253
2020-11-13 15:45:00 +03:00
Igor Chubin
28bcb58a54
Merge pull request #253 from chubin/travis2actions
2020-11-13 13:39:37 +01:00
Anatoli Babenia
9ab2987c0b
Port .travis.yml to GitHub Actions
2020-11-13 15:37:41 +03:00