Commit Graph

5 Commits

Author SHA1 Message Date
Jay Bryant
e5cafe4625 Use local storage rather than a cookie
I learnt that local storage is the preferred way to save a user's preferences. A cookie is sent to the server on every request, which makes for needless traffic. I "borrowed" the idea from the Spring Framework docs.
2020-04-17 10:52:25 +02:00
Drummond Dawson
53ec8f6084 Polish DocumentToggle.js
* Declare duplicate jQuery selectors as variables
* Remove extra semicolons after function declarations
* Remove leftover jquery.js from Java/XML toggle implementation

When the Java/XML toggle implementation was introduced,
jquery-3.2.1.min.js replaced the old jquery script in toggle.adoc
and the old jquery script was accidentally leftover as a result.
2019-11-26 14:15:36 +01:00
Mahmoud Ben Hassine
1622a742b1 Add js to redirect old anchors to new ones 2019-10-24 15:45:28 +02:00
Jay Bryant
3f126fe0ff Fixed a refresh bug in the document toggle
While working on another feature, I noticed that the document toggle wasn't updating the ToC. I fixed that. (It matters only in the case where entire headings are toggled, but we do have one such case.)
2019-08-01 09:59:19 -05:00
Jay Bryant
145bacc34a Use spring-doc-resources 2019-04-05 21:48:24 +02:00