fix: add custom (built) buefy css to repo
this makes things simpler, and no real reason not to include it
This commit is contained in:
parent
4c0754ee01
commit
00fd484669
5 changed files with 9 additions and 24 deletions
|
|
@ -44,20 +44,16 @@ def main(global_config, **settings):
|
|||
# make config objects
|
||||
wutta_config = base.make_wutta_config(settings)
|
||||
pyramid_config = base.make_pyramid_config(settings)
|
||||
app = wutta_config.get_app()
|
||||
|
||||
# custom buefy css
|
||||
app = wutta_config.get_app()
|
||||
path = app.resource_path("wuttafarm.web.static:css/wuttafarm-buefy.css")
|
||||
if os.path.exists(path):
|
||||
|
||||
# TODO: this is not robust enough, probably..but works for me/now
|
||||
wutta_config.setdefault(
|
||||
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
|
||||
)
|
||||
|
||||
# nb. ensure buefy version matches what we use for custom css
|
||||
wutta_config.setdefault("wuttaweb.libver.buefy", "0.9.29")
|
||||
wutta_config.setdefault("wuttaweb.libver.buefy_css", "0.9.29")
|
||||
# TODO: this is not robust enough, probably..but works for me/now
|
||||
wutta_config.setdefault(
|
||||
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
|
||||
)
|
||||
# nb. ensure buefy version matches what we use for custom css
|
||||
wutta_config.setdefault("wuttaweb.libver.buefy", "0.9.29")
|
||||
wutta_config.setdefault("wuttaweb.libver.buefy_css", "0.9.29")
|
||||
|
||||
# bring in the rest of WuttaFarm
|
||||
pyramid_config.include("wuttafarm.web.static")
|
||||
|
|
|
|||
1
src/wuttafarm/web/static/css/wuttafarm-buefy.css
Normal file
1
src/wuttafarm/web/static/css/wuttafarm-buefy.css
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue