Commit Graph
9 Commits
Author SHA1 Message Date
George Cushen 09d4e07d4f feat(search): enable searching by author name or category
Also, attempt to increase relevancy of search results in general.

Close #921
2019-02-08 17:48:17 +00:00
George Cushen 34cf1f0957 fix: when toggling day/night mode, also toggle code highlighting theme
Fix case where code highlighting can be difficult to read after night
mode is toggled by user as the highlight theme remained unchanged.
2019-02-05 18:07:55 +00:00
George Cushen 512e2ffde4 fix(search): disable shortcuts when user is typing
Fix #875
2019-01-12 19:38:48 +00:00
George Cushen d2330cb261 feat(theme): enable users to switch between day and night modes
Close #807
2018-12-02 00:17:35 +00:00
George Cushen 07c9f4f387 feat(search): Add search shortcuts (/ and ESC)
* Press / to toggle search dialog
* Press ESC to close search dialog

See #784
2018-11-17 23:39:06 +00:00
George Cushen e95405f79a feat(search): add search icon to navbar to open new search dialog
* Search icon added to navbar if search enabled in config
* New search dialog added which overlays current page when searching
* The docs search box now opens the new search dialog instead of
  displaying results within the docs page itself

Close #784

BREAKING CHANGE:

Search widget is deprecated and `content/home/search.md` should be
removed
2018-11-17 22:42:27 +00:00
George Cushen 3ea332ca67 refactor(js): shorten MathJax filename and minify + fingerprint assets
Remove fingerprinting from MathJax config JS to shorten its generated
filename. Reduces chance of JS filenames becoming too long for user's OS
to handle due to long Sha512 asset fingerprinting.

Minifies and fingerprints Academic's own JS for faster loading and to
prevent old versions getting cached by web browser.

Refactors Algolia search JS into its own file.

Close #768
See #794
2018-11-11 16:06:24 +00:00
Thom Wiggers 8d8cddfdb2 Load MathJax config without eval() (#735)
This allows stricter content security policies for 
`Content-Security-Policy` header.
2018-10-21 20:32:44 +01:00
George Cushen 6faf695727 Add slides feature
Example added to `exampleSite/content/slides/example-slides.md` and
linked from `exampleSite/content/talk/example-talk.md`.

Close #693
2018-09-16 16:39:30 +01:00