mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add update/fetch assets script
This commit is contained in:
parent
47dd776ca6
commit
aa953082eb
3 changed files with 24 additions and 7 deletions
6
app/static/bootstrap.css
vendored
6
app/static/bootstrap.css
vendored
File diff suppressed because one or more lines are too long
23
app/static/update_assets.sh
Normal file
23
app/static/update_assets.sh
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compile SCSS
|
||||||
|
sass --style expanded styles.scss styles.css
|
||||||
|
sass --style expanded structure.scss structure.css
|
||||||
|
|
||||||
|
# https://github.com/feimosi/baguetteBox.js (MIT license)
|
||||||
|
curl -o js/lightbox/baguetteBox.css -L https://github.com/feimosi/baguetteBox.js/raw/dev/dist/baguetteBox.min.css
|
||||||
|
curl -o js/lightbox/baguetteBox.js -L https://github.com/feimosi/baguetteBox.js/raw/dev/dist/baguetteBox.min.js
|
||||||
|
|
||||||
|
# https://github.com/fatihege/downarea (MIT license)
|
||||||
|
curl -o js/markdown/downarea.css -L https://github.com/fatihege/downarea/raw/main/src/downarea.min.css
|
||||||
|
curl -o js/markdown/downarea.js -L https://github.com/fatihege/downarea/raw/main/src/downarea.min.js
|
||||||
|
|
||||||
|
# https://htmx.org/ (Zero-Clause BSD)
|
||||||
|
curl -o js/htmx.min.js -L https://unpkg.com/htmx.org@2.0.0
|
||||||
|
|
||||||
|
# https://momentjs.com/ (MIT license)
|
||||||
|
curl -o js/moment-with-locales.min.js -L https://momentjs.com/downloads/moment-with-locales.min.js
|
||||||
|
|
||||||
|
# ToDo: coolfieldset.js
|
||||||
|
|
||||||
|
# ToDo: Feather webfont
|
|
@ -40,7 +40,7 @@
|
||||||
<meta name="HandheldFriendly" content="True">
|
<meta name="HandheldFriendly" content="True">
|
||||||
<meta name="MobileOptimized" content="320">
|
<meta name="MobileOptimized" content="320">
|
||||||
{% block styles -%}
|
{% block styles -%}
|
||||||
<link href="{{ url_for('static', filename='bootstrap.css') }}" type="text/css" rel="stylesheet" />
|
{{ bootstrap.load_css() }}
|
||||||
<link href="{{ url_for('static', filename='structure.css', changed=getmtime('structure.css')) }}" type="text/css" rel="stylesheet" />
|
<link href="{{ url_for('static', filename='structure.css', changed=getmtime('structure.css')) }}" type="text/css" rel="stylesheet" />
|
||||||
<link href="{{ url_for('static', filename='styles.css', changed=getmtime('styles.css')) }}" type="text/css" rel="stylesheet" />
|
<link href="{{ url_for('static', filename='styles.css', changed=getmtime('styles.css')) }}" type="text/css" rel="stylesheet" />
|
||||||
<link href="{{ url_for('static', filename='themes/high_contrast/styles.css') }}" type="text/css" rel="alternate stylesheet" title="High contrast" />
|
<link href="{{ url_for('static', filename='themes/high_contrast/styles.css') }}" type="text/css" rel="alternate stylesheet" title="High contrast" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue