Commit Graph

63 Commits (7e89b462f03d91d78fdc331a31dc841930ebe4a1)

Author SHA1 Message Date
Henrik f0967b7072 chore: reduce debounce time 2023-09-10 12:53:48 +02:00
Henrik 08de0ad10c feat: reduce JSON data size 2023-09-10 12:39:49 +02:00
Henrik b2119d4db6 feat: add the proposed search timeout 2023-09-10 00:39:39 +02:00
Eric Wieser 627bcb0626 Remove extra spacing 2023-08-18 11:00:32 +02:00
Henrik 9b524d7c5a chore: mitigate #133 for now 2023-07-20 23:41:44 +02:00
Henrik d65d26d7b9 fix: declaration-data.js local storage 2023-07-20 23:06:33 +02:00
Henrik 92650029f0 chore: cleanup the other declaration-data.js singleton 2023-07-20 22:55:09 +02:00
Henrik 5ce54e8e10 fix: race condition in declaration-data.js 2023-07-20 22:42:49 +02:00
Calvin Lee 76a137dabc fix colors if media set to dark
This commit fixes a few edge-cases. First, if you `prefers-color-scheme`
is dark, your background will no longer be dark in light mode.
Furthermore, switching from dark to system theme now works. It did not
before, as we queried our iframe for color-scheme instead of the parent
window (our iframe inherited the color-scheme from the parent document).
Finally, the navbar iframe has its color-scheme set separately, which
caused issues in a few cases.
2023-06-09 23:39:59 +02:00
Calvin Lee 75d06a8153 hide color-changer if javascript is disabled 2023-06-09 23:39:59 +02:00
Calvin Lee cc552ed570 add colorscheme toggle 2023-06-09 23:39:59 +02:00
Calvin Lee b9cfae7f53 add dark mode 2023-06-09 23:39:59 +02:00
Alex J. Best e0eecc3334 feat: trigger search input when event handler is added 2023-05-24 15:47:11 +02:00
Henrik e888e9cc38 feat: doc strings on ctors and fields are not monospaced anymore 2023-05-11 22:36:27 +02:00
Max Taldykin 9220cd74b1 fix implicit arg wrapping 2023-03-04 12:20:05 +01:00
Henrik Böving 54cf445e12 fix: #114 2023-02-16 18:14:40 +01:00
Jeremy Salwen 1cb84f6d74 Add filters for search results based on kind.
This allows you to search defs, theorems, etc independently.
2023-02-01 15:15:45 +01:00
Jeremy Salwen 3a977a94ca Fix issues with Search page impelementation
- Makes the autocomplete results highlight with up/down arrows.
- Allows you to unselect autocomplete results by using arrow keys.
- Fixed a bug in previous commits where enter did not take you to autocomplete result.
- Return now goes to the search page if no autocomplete result is selected.
- Search results table now properly wraps. (It would be nice to make it wider but I wasn't able to).
- Fixed a bug in the previous commit where docs were not showing, due to failure to copy a modified js file.
2023-01-28 23:00:53 +01:00
Jeremy Salwen 1575eeedd2 Add definition doc string to search result page.
Adds a two-column table to the search results so you can see the doc string next to
the result.  The doc string is not parsed/converted to markdown yet, but that could
be done later.
2023-01-28 23:00:53 +01:00
Jeremy Salwen 033003c6cb Add a search page to the docs.
Now instead of clicking the "Google Site Search"' button, the user has the option
of clicking the "Search" button, which will take them to a results page. Currently,
the results are identical to the autocomplete results, but the number of results
is not limited to 30.  In the future, more information and search options could
be added to this page to make a more powerful search.

Fixes #107
2023-01-28 23:00:53 +01:00
Parth Shastri 664a86e08b fix: minor style improvements 2022-11-06 13:53:23 +01:00
Ruben Van de Velde 153982f982
Work around unsupported RegExp lookbehind in WebKit. (#85)
* Work around unsupported RegExp lookbehind in WebKit.

* Update static/find/find.js

Co-authored-by: Mario Carneiro <di.gama@gmail.com>

Co-authored-by: Mario Carneiro <di.gama@gmail.com>
2022-10-20 18:21:33 +02:00
Henrik Böving 247b930364 feat: instances for 2022-07-23 15:40:08 +02:00
Henrik Böving 5a65c64d4c fix: alignment of navbar 2022-07-22 17:18:09 +02:00
Henrik Böving 6be2e4dc4e feat: importedBy via Javascript 2022-07-22 16:56:51 +02:00
Henrik Böving 2ffff99f90 feat: instances from JSON 2022-07-22 16:15:37 +02:00
Henrik Böving bb9b55ef2c feat: Step 1 for full separate builds with global info 2022-07-22 14:48:36 +02:00
Henrik Böving 80cb92eb94 feat: Use iframe for navbar to move it into the finalize stage 2022-07-21 22:06:26 +02:00
Henrik Böving 71af8db54b feat: Declaration data into separate directory 2022-07-21 21:05:19 +02:00
Henrik Böving 601b895e89 feat: Inductive constructor doc strings 2022-07-21 20:23:27 +02:00
Henrik Böving 25b1ddb66b feat: Preparations to split doc-gen build process 2022-07-21 01:40:04 +02:00
Henrik Böving be3caa9e1a feat: Basic semantic highlighting support 2022-06-20 22:21:48 +02:00
Henrik Böving 9f50966339 feat: initial LeanInk HTML generation 2022-06-20 18:39:55 +02:00
Henrik Böving 7c9237ffb4 chore: update compiler and lake 2022-06-19 16:41:59 +02:00
Henrik Böving a7c00d95e6 feat: Render doc comments for structure fields 2022-04-09 21:39:34 +02:00
Henrik Böving 3ac6ddd1ab fix: port the SITE_ROOT fix to find.js 2022-04-07 13:14:01 +02:00
Henrik Böving 67402506c7 fix: links in search 2022-04-07 12:44:33 +02:00
Henrik Böving 06c20ee46f dynamically change SITE_ROOT since we are relative now 2022-04-07 12:39:32 +02:00
Xubai Wang 0ec492ba98 fix: error handling for declaration data 2022-03-14 10:59:25 +08:00
Henrik Böving 9dd5e316c1
Merge pull request #38 from xubaiw/win-find
Windows find support among other things.
2022-02-23 19:44:47 +01:00
Xubai Wang a50ca857aa fix: wrap navbar overflow 2022-02-23 23:28:15 +08:00
Xubai Wang 2b217ecda0 fix: fix find search 2022-02-23 05:32:37 +08:00
Xubai Wang a18e343829 refactor: change find syntax 2022-02-23 04:26:20 +08:00
Xubai Wang e4ccc5cf50 feat: add browser cache for data
fix search name
2022-02-22 23:20:20 +08:00
Xubai Wang 004977e6e4 refactor: use strict match for find 2022-02-22 15:01:14 +08:00
Xubai Wang f23556739f refactor: clean up javascript code 2022-02-22 12:40:14 +08:00
Xubai Wang 9e867f5151 refactor: make site-root an actual file 2022-02-21 23:29:23 +08:00
Xubai Wang bc0dd3b48a feat: add src endpoint 2022-02-21 01:38:12 +08:00
Xubai Wang 59707cda58 refactor: use js for find 2022-02-21 01:12:49 +08:00
Xubai Wang 5e93038023 refactor: use js modules 2022-02-21 00:06:15 +08:00