Skip to content

Commit

Permalink
fix the link to metadata again and small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreaubert committed Mar 23, 2024
1 parent f5a21f2 commit 23d1f3b
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 25 deletions.
Binary file added datas/icons/icon-bookshelves-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datas/icons/icon-bookshelves-144x144.webp
Binary file not shown.
Binary file added datas/icons/icon-bookshelves-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datas/icons/icon-bookshelves-48x48.webp
Binary file not shown.
10 changes: 7 additions & 3 deletions generate_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,20 @@ def main():
"3d3a.png",
"asr.png",
"asr-small.png",
"BIC America.jpg'",
"BIC America.jpg",
"bose.png",
"Buchardt Audio.png'",
"Buchardt Audio.png",
"eac.png",
"favicon-16x16.png",
"favicon.ico",
"fulcrum-acoustic.png",
"icon-bookshelves.png",
"icon-bookshelves.svg",
"icon-bookshelves.png",
"icon-bookshelves.webp",
"icon-bookshelves-48x48.png",
"icon-bookshelves-48x48.webp",
"icon-bookshelves-144x144.png",
"icon-bookshelves-144x144.webp",
"icon-bookshelves-zigzag.svg",
"infinity.png",
"infinity-small.png",
Expand Down
2 changes: 1 addition & 1 deletion generate_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def dump_metadata(meta):

def check_link(hashed_filename):
# add a link to make it easier for other scripts to find the metadata
if "metadata" in hashed_filename:
if "metadata" in hashed_filename and len(hashed_filename.split('-')) == 2 and 'head' not in hashed_filename:
try:
os.symlink(Path(hashed_filename).name, cpaths.CPATH_DOCS_METADATA_JSON)
except OSError as e:
Expand Down
47 changes: 29 additions & 18 deletions src/website/manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{
"name": "Spinorama",
"short_name": "Spinorama",
"start_url": ".",
"display": "standalone",
"background_color": "#fff",
"description": "Speaker measurements",
"icons": [
{
"src": "icons/icon-bookshelves.svg",
"sizes": "48x48",
"type": "image/svg+xml"
},
{
"src": "icons/icon-bookshelves.svg",
"sizes": "144x144",
"type": "image/svg+xml"
}
]
"manifest_version": 3,
"name": "Spinorama",
"short_name": "Spinorama",
"start_url": ".",
"display": "standalone",
"background_color": "#fff",
"description": "Speaker measurements",
"icons": [
{
"src": "icons/icon-bookshelves-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "icons/icon-bookshelves-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "icons/icon-bookshelves.svg",
"sizes": "640x512",
"type": "image/svg+xml"
},
{
"src": "icons/icon-bookshelves.png",
"sizes": "640x512",
"type": "image/png"
}
]
}
4 changes: 1 addition & 3 deletions update_pictures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# convert is from imagemagick package
sourcedir=datas
targetdir=docs
mkdir -p ${targetdir}/logos
mkdir -p ${targetdir}/icons
mkdir -p ${targetdir}/pictures
mkdir -p ${targetdir}/help_pictures
Expand Down Expand Up @@ -51,8 +50,7 @@ for d in "${sourcedir}/pictures"; do
done
done
# copy logs
mkdir -p docs/logos docs/icons
cp datas/logos/* docs/pictures
mkdir -p docs/icons
cp datas/icons/* docs/icons
# copy help pictures
find ./src/website/help_pictures -type f -name '*.png'| while read pict; do
Expand Down

0 comments on commit 23d1f3b

Please sign in to comment.