Commit graph

342 commits

Author SHA1 Message Date
Magnus Hoff
73b5ffc719 Add CSS for print 2017-11-03 00:16:18 +01:00
Magnus Hoff
e563faf81a Refactor lookup of license resources 2017-11-02 15:34:36 +01:00
Magnus Hoff
29a7d58b41 Use maplit for static hash map literal 2017-11-02 15:19:23 +01:00
Magnus Hoff
5ea9dbef71 Add BSD-3-Clause to list of licenses 2017-11-02 15:16:16 +01:00
Magnus Hoff
faec67c797 Include and serve relevant software licenses 2017-11-02 14:48:22 +01:00
Magnus Hoff
63b9715550 Add a bare bones _about page. #10 2017-11-01 15:38:50 +01:00
Magnus Hoff
78bd53e640 Machine readable branding.
Include project name and version in Server header and generator meta tag
2017-11-01 13:17:58 +01:00
Magnus Hoff
2626223f10 Styling for h4, h5, h6. Why do you need these? 2017-11-01 12:56:24 +01:00
Magnus Hoff
833c96b58d Make use of .default_value in clap 2017-11-01 11:58:11 +01:00
Magnus Hoff
548555c45e Populate clap with information from Cargo.toml 2017-11-01 11:44:49 +01:00
Magnus Hoff
551c4dc52b Report errors in live search without a modal dialog (alert) 2017-10-31 14:03:29 +01:00
Magnus Hoff
254ace7d24 README 2017-10-31 14:02:50 +01:00
Magnus Hoff
59b9e77d47 Rudimentary support for comparing revisions of articles
For issue #21
2017-10-30 16:35:21 +01:00
Magnus Hoff
a6f707b911 Allow configuration of bind address 2017-10-30 14:59:39 +01:00
Magnus Hoff
b6d3cbf2c6 Improve regression resistance with named consts 2017-10-30 14:40:49 +01:00
Magnus Hoff
7d431b46fe Require something in the title field, client side 2017-10-30 13:23:06 +01:00
Magnus Hoff
3dd4927281 Forbid empty titles in application layer 2017-10-30 13:20:40 +01:00
Magnus Hoff
dd97b8055c Cleanup 2017-10-30 13:06:32 +01:00
Magnus Hoff
975661048e Refactor to reuse TemporaryRedirectResource instead of ArticleRedirectResource 2017-10-30 12:56:28 +01:00
Magnus Hoff
1bdc21039b Refactor generation of links from slugs
This fixes a bug where the cancel-link on the front page would be to "" rather than "."
2017-10-30 12:42:53 +01:00
Magnus Hoff
4ca748f180 Optionally show authors in _changes based on --trust-identity command line argument.
This fixes #19
2017-10-30 11:44:36 +01:00
Magnus Hoff
ef4a3e689b More properly fix --trust-identity command line option 2017-10-30 11:33:05 +01:00
Magnus Hoff
245ecaa969 Prefer dashes in command line options 2017-10-30 11:04:01 +01:00
Magnus Hoff
5b37a41632 Support editing articles without JavaScript 2017-10-30 11:01:37 +01:00
Magnus Hoff
db2d8f5d76 More features 2017-10-29 22:51:19 +01:00
Magnus Hoff
bdb34d94bd Add "Features" to readme 2017-10-29 12:16:31 +01:00
Magnus Hoff
3ca84dbb4e Attempt to stop navigation when there is an edit in progress. This fixes #16 2017-10-28 15:26:50 +02:00
Magnus Hoff
6d56ad0001 Ask user for confirmation when they abandon an edit in progress. This fixes #17 2017-10-28 15:21:47 +02:00
Magnus Hoff
c86f24a665 Use branch of pulldown-cmark to achieve proper html handling 2017-10-28 14:26:01 +02:00
Magnus Hoff
d570893a10 Tweak search results to there are no unclickable pixels belonging to the li-elements 2017-10-26 15:30:05 +02:00
Magnus Hoff
578d8a9bca Update styling of notice box to work with the search box 2017-10-26 15:13:52 +02:00
Magnus Hoff
c4f247fea7 Explicitly set height for search input box. This fixes rendering in IE 2017-10-26 12:13:12 +02:00
Magnus Hoff
1c820c9db0 Add tabindex to search result links
This makes the links appear in the relatedElement-field of the focusout event
2017-10-26 11:32:45 +02:00
Magnus Hoff
d947334cfc Opt out from styling-override in Safari 2017-10-26 11:09:15 +02:00
Magnus Hoff
b81137ad25 Prev and next-links for search result. "More"-link for instant search 2017-10-25 16:34:21 +02:00
Magnus Hoff
74b8040d39 Refactor CSS for search results. Add support for keyboard control to full search results page 2017-10-25 16:02:30 +02:00
Magnus Hoff
b90d7b9d1e Fix triggers for keeping search index up to date 2017-10-25 14:19:33 +02:00
Magnus Hoff
332e4a8a1f Fix styling 2017-10-25 14:19:11 +02:00
Magnus Hoff
0a3dc9d10f Allow normal form submit with the enter key 2017-10-25 13:53:16 +02:00
Magnus Hoff
2939dfaf9c Support using keyboard to follow search results 2017-10-25 13:49:00 +02:00
Magnus Hoff
056f1ddf72 Implement interactive search 2017-10-25 13:24:42 +02:00
Magnus Hoff
2cdbd7c7f5 Use content type negotiation (the Accept header) to serve different formats from the _search endpoint 2017-10-25 11:39:19 +02:00
Magnus Hoff
313fc16add Put a search box in the layout 2017-10-25 10:58:08 +02:00
Magnus Hoff
9336fbf3cd Expand search api 2017-10-24 22:16:10 +02:00
Magnus Hoff
59c11897b2 Tweak FTS query
Attempt to smartly use NEAR searches and prefix searches depending on input. This is hopefully a good idea
2017-10-24 21:54:27 +02:00
Magnus Hoff
8104430701 Refactor 2017-10-24 21:23:18 +02:00
Magnus Hoff
a07f47c0f7 Implement quoting for the FTS search syntax of SQLite
This makes search queries safe for user input
2017-10-24 21:21:02 +02:00
Magnus Hoff
5273402d4d Add zero width space to allow wrapping around list markers 2017-10-24 20:44:25 +02:00
Magnus Hoff
0023b5356f Remove obsolete styling of definition lists 2017-10-24 20:44:01 +02:00
Magnus Hoff
1bb1df8cf0 Add a first approximation of full text search. Issue #8 2017-10-24 16:48:16 +02:00