-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin refactor #409
plugin refactor #409
Conversation
AppVeyor build 1.0.214 for commit 3b59832 failed. |
AppVeyor build 1.0.215 for commit 2e27107 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.216 for commit a1a5da9 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.217 for commit 6e535ad is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.218 for commit 2fb0a10 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.219 for commit 727b8ca is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
Ah that happened in 690aac1 and was likely an accident (I must have thought this was a link to After that will review this PR! Looking forward to trying the refactored plugins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net minus 700 lines... nice!
Played around with manuscript-1.0.219-727b8ca.html
and everything looks good, but that wasn't an exhaustive test since the rootstock manuscript is simple and not all the plugins are enabled. @vincerubinetti could you render a manuscript with all plugins active. Is there a place I can see the scite plugin?
moves repeated and shared/generic functions to separate "core" plugin
👍🏻
reformats plugins with Prettier
👍🏻
moves plugin specific CSS to plugins themselves
we can consider also closing #241 since these files now have mixed JS/CSS?
Going to try to give you a version of the Covid manuscript with all the plugins enabled. |
AppVeyor build 1.0.220 for commit 6201821 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
Sorry I uploaded the wrong file. Here's the correct one: covid-19-manuscript-all-plugins.zip You'll have to serve the index file from a server. Here's a preview of the Scite plugin: |
AppVeyor build 1.0.221 for commit a1919a5 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
That manuscript looks great! The scite plugin is cool. As far as the pre-existing plugins, I didn't notice any behavioral differences. Everything worked in Chrome. |
AppVeyor build 1.0.222 for commit c011344 is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
AppVeyor build 1.0.223 for commit 47fceaf failed. |
AppVeyor build 1.0.224 for commit eabe74b is now complete. Found 52 potential spelling error(s). Preview:content/02.delete-me.md:44:adipiscingcontent/02.delete-me.md:44:aliqua content/02.delete-me.md:44:amet content/02.delete-me.md:44:consectetur content/02.delete-me.md:44:dolore content/02.delete-me.md:44:eiusmod content/02.delete-me.md:44:elit content/02.delete-me.md:44:incididunt content/02.delete-me.md:44:ipsum content/02.delete-me.md:44:labore content/02.delete-me.md:44:Lorem content/02.delete-me.md:44:magna content/02... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks @vincerubinetti for this big refactor. I'll merge now and we can address any @agitter comments in a follow up.
Good plan. I want to review this but won't get to it immediately. |
I reviewed this now and don't have any additional comments. Thanks for the big updates @vincerubinetti. We've been using this in the COVID manuscript for the past week or so, and I haven't noticed any plugin-related issues. |
* Webpage: refactor plugins & add scite plugin merges manubot/rootstock#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) * Update scite plugin merges manubot/rootstock#415 * setup.bash: interactive script to guide setup merges manubot/rootstock#417 closes manubot/rootstock#401 * Add "gh repo create" to SETUP.md merges manubot/rootstock#419 closes manubot/rootstock#418 Co-authored-by: Daniel Himmelstein <daniel.himmelstein@gmail.com> Co-authored-by: Anthony Gitter <agitter@users.noreply.github.com> * fix link Co-authored-by: Vincent Rubinetti <vince.rubinetti@gmail.com> Co-authored-by: nfry321 <58332182+nfry321@users.noreply.github.com> Co-authored-by: Tiago Lubiana <tiago.lubiana.alves@usp.br> Co-authored-by: Daniel Himmelstein <daniel.himmelstein@gmail.com> Co-authored-by: Anthony Gitter <agitter@users.noreply.github.com>
merges manubot/rootstock#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)
Closes #268
Closes #241
(function () { ... } )()
anonymizer wrapper, and just make<script>
tag intomodule
to keep scope local and avoid function name conflicts. this reduces the indent of the whole script by one level.Originally I wanted all the CSS in the theme for the situation where we create another theme and need to style the plugins in that new theme too. But 1) the default theme was getting to unruly and monolithic 2) it makes more sense to group the plugin concerns together in one file 3) making a new theme has been pushed to the back burner for a long time and 4) when we do make a new theme, there are modern ways to solve the problem of styling the plugins (like CSS variables).