Skip to content

Commit

Permalink
Webpage: refactor plugins & add scite plugin
Browse files Browse the repository at this point in the history
merges #409

* moves repeated and shared/generic functions to separate "core" plugin
* reorganizes html.yaml config into first and third party plugins
* removes functionality to set plugin options from url
* reformats plugins with Prettier (eg 4 space tabs to 2 space)
* removes anonymizer wrapper. Just make <script> tag into module to keep scope local
  and avoid function name conflicts. this reduces the indent of the whole script by one level.
* moves plugin specific CSS to plugins themselves
* adds scite plugin (uncomment to enable)
  • Loading branch information
vincerubinetti authored Feb 5, 2021
1 parent 2191d92 commit 87c1195
Show file tree
Hide file tree
Showing 18 changed files with 3,212 additions and 3,901 deletions.
24 changes: 15 additions & 9 deletions build/pandoc/defaults/html.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@
to: html5
output-file: output/manuscript.html
# include-before-body:
# - build/plugins/d3.html
### third-party plugins
#- build/plugins/d3.html
include-after-body:
### theme
- build/themes/default.html
# - build/plugins/inline-svg.html
- build/plugins/anchors.html
### first-party plugins
- build/plugins/core.html # needed for all first-party plugins
- build/plugins/accordion.html
- build/plugins/tooltips.html
- build/plugins/anchors.html
- build/plugins/attributes.html
#- build/plugins/inline-svg.html
- build/plugins/jump-to-first.html
- build/plugins/lightbox.html
- build/plugins/link-highlight.html
- build/plugins/table-of-contents.html
- build/plugins/lightbox.html
- build/plugins/attributes.html
- build/plugins/math.html
- build/plugins/hypothesis.html
- build/plugins/tooltips.html
### third-party plugins
- build/plugins/analytics.html
- build/plugins/hypothesis.html
- build/plugins/mathjax.html
#- build/plugins/scite.html
variables:
math: ''
math: ""
html-math-method:
method: mathjax
Loading

0 comments on commit 87c1195

Please sign in to comment.