diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -154,6 +154,7 @@ These are the javascript files currently used by Abridge: - search_index.en.js: search index generated by zola at each build for elasticlunr. - elasticlunr.min.js: search library for client side searching. - search.js: to make use of elasticlunr from our sites search box for both suggestions and the results page. +- codecopy.js: add a Copy Button to code blocks, to copy contents of the code block to clipboard. - theme.js: very tiny script to facilitate local storage for the theme switcher. (never bundle, gets loaded separate) - theme_button.js: tiny script for the theme switcher function when you click the theme switch button. - prestyle.js: Used to preload css files `<link rel="preload"` - this script changes these to `<link rel="stylesheet"` once the page has finished loading, this allows us to load stylesheets for external fonts, fontawesome, or katex in a non blocking fashion. @@ -234,6 +235,7 @@ The following options should be under the `[extra]` in `config.toml` - `security_header_referrer` - This is mostly used for tracking, the default is set to "strict-origin-when-cross-origin" [info](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) - `security_header_csp` - Content Security policy, to enfore security rules: [observatory](https://observatory.mozilla.org), [csp-google](https://csp-evaluator.withgoogle.com/) +- `integrity` - Useful to set false during development, should normally be set to true. - `js_search_index` - The search index file to include in the header, comment out to disable. - `js_prestyle` - The script file used to preload: FontAwesome, Katex, external Google Fonts. - `js_search` - The search script file to include in the header, comment out to disable. |
