Skip to content

Commit

Permalink
Update asset paths in HTML and README, and refine asset file naming i…
Browse files Browse the repository at this point in the history
…n Vite configuration + add favicons
  • Loading branch information
VincentLoy committed Dec 29, 2024
1 parent 8b81617 commit 7b7c63e
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![SimplyCountdown.js](docs/src/assets/images/simplyCountdown_banner.webp)
![SimplyCountdown.js](docs/src/public/images/simplyCountdown_banner.webp)

# SimplyCountdown.js

Expand Down
File renamed without changes.
Binary file added docs/dist/favicon/apple-touch-icon.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 docs/dist/favicon/favicon-16x16.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 docs/dist/favicon/favicon-32x32.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 docs/dist/favicon/favicon.ico
Binary file not shown.
Binary file added docs/dist/images/simplycountdown_web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions docs/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="apple-touch-icon" sizes="180x180" href="./favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png">
<link rel="shortcut icon" href="./favicon/favicon.ico">

<title>simplyCountdown.js | A Tiny and dead simple Javascript Countdown Library</title>
<meta name="author" content="Vincent Loy">
<meta name="description" content="simplyCountdown.js is an easy to use Javascript Countdown Library. You can easily customize it with your own CSS and versatile parameters.">

<meta property="og:title" content="simplyCountdown.js - A Tiny Javascript Countdown Library">
<meta property="og:description" content="A dead simple and lightweight countdown library for your web projects">
<meta property="og:image" content="[path-to-preview-image]">
<meta property="og:image" content="./images/simplycountdown_web.png">
<meta property="og:type" content="website">
<meta property="og:url" content="https://vincentloy.github.io/simplyCountdown.js/">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -52,7 +58,7 @@
}
</script>
<script type="module" crossorigin src="./assets/main.min.js"></script>
<link rel="stylesheet" crossorigin href="./assets/main.min.css">
<link rel="stylesheet" crossorigin href="./assets/main.min..css">
</head>
<body class="bg-slate-900 p-0 font-sans text-white" id="top">
<header class="bg-gradient-to-br from-indigo-600 to-violet-600 text-white pt-40 pb-20">
Expand Down
8 changes: 7 additions & 1 deletion docs/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="apple-touch-icon" sizes="180x180" href="public/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="public/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="public/favicon/favicon-16x16.png">
<link rel="shortcut icon" href="public/favicon/favicon.ico">

<title>simplyCountdown.js | A Tiny and dead simple Javascript Countdown Library</title>
<meta name="author" content="Vincent Loy">
<meta name="description" content="simplyCountdown.js is an easy to use Javascript Countdown Library. You can easily customize it with your own CSS and versatile parameters.">

<meta property="og:title" content="simplyCountdown.js - A Tiny Javascript Countdown Library">
<meta property="og:description" content="A dead simple and lightweight countdown library for your web projects">
<meta property="og:image" content="[path-to-preview-image]">
<meta property="og:image" content="./images/simplycountdown_web.png">
<meta property="og:type" content="website">
<meta property="og:url" content="https://vincentloy.github.io/simplyCountdown.js/">
<meta name="twitter:card" content="summary_large_image">
Expand Down
Binary file added docs/src/public/favicon/apple-touch-icon.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 docs/src/public/favicon/favicon-16x16.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 docs/src/public/favicon/favicon-32x32.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 docs/src/public/favicon/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file added docs/src/public/images/simplycountdown_web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ const docsConfig = defineConfig({
output: {
entryFileNames: "assets/[name].min.js",
chunkFileNames: "assets/[name].min.js",
assetFileNames: "assets/[name].min.[ext]",
assetFileNames: (assetInfo) => {
// here deprecated stuff, should improve later, maybe I misunderstood something
if (assetInfo.originalFileName?.includes("public/favicon")) {
return "favicon/[name][extname]";
} else if (assetInfo.name?.includes(".css")) {
return "assets/[name].min.[extname]";
}
return "ssssss/[name][extname]";
},
},
},
},
Expand Down

0 comments on commit 7b7c63e

Please sign in to comment.