I'd like to deploy fluffy as a self-contained app, which would require vendoring some of the external third-party dependencies.
From a cursory search, it looks like the only dependencies are Google Fonts and jQuery.
I'm happy to work on an implementation, if you had any preferences or thoughts on how you'd prefer to go about it.
Google Fonts
This could be a flag in settings.py that would use default system fonts rather than a custom font. (Though I haven't looked at the {S,}CSS files to see how the fonts are specified.)
Maybe an easier solution would be to have a toggle for Google Fonts, and then guarding the stylesheet behind a conditional:
|
<title>{{branding}}</title> |
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Josefin+Slab:700|Open+Sans:wght@400;700" /> |
|
<link rel="stylesheet" href="{{asset_url('app.css')}}" /> |
|
<link rel="icon" href="{{asset_url('img/favicon.ico')}}" /> |
Then the browser would fall back to the default fonts:
|
body { |
|
background-color: #005178; |
|
font-family: "Open Sans", Helvetica, Arial, sans-serif; |
|
} |
jQuery
For jQuery, a copy would be saved somewhere in fluffy/static/ (maybe fluffy/static/vendor/js?). jQuery is licensed MIT, which probably makes it compatible with including it in the repo.
I'd like to deploy fluffy as a self-contained app, which would require vendoring some of the external third-party dependencies.
From a cursory search, it looks like the only dependencies are Google Fonts and jQuery.
I'm happy to work on an implementation, if you had any preferences or thoughts on how you'd prefer to go about it.
Google Fonts
This could be a flag in
settings.pythat would use default system fonts rather than a custom font.(Though I haven't looked at the {S,}CSS files to see how the fonts are specified.)Maybe an easier solution would be to have a toggle for Google Fonts, and then guarding the stylesheet behind a conditional:
fluffy/fluffy/templates/layouts/base.html
Lines 7 to 11 in cb4de23
Then the browser would fall back to the default fonts:
fluffy/fluffy/static/scss/app.scss
Lines 12 to 15 in cb4de23
jQuery
For jQuery, a copy would be saved somewhere in
fluffy/static/(maybefluffy/static/vendor/js?). jQuery is licensed MIT, which probably makes it compatible with including it in the repo.