desy-html 16.0.0 → 16.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/index.html +8 -0
- package/package.json +1 -1
- package/vite.config.js +12 -12
package/docs/index.html
CHANGED
|
@@ -147,6 +147,14 @@ cd desy-html</code></pre>
|
|
|
147
147
|
|
|
148
148
|
<h2>Changelog (English)</h2>
|
|
149
149
|
<p>What's new in the latest version of desy-html</p>
|
|
150
|
+
<h3>v.16.0.2</h3>
|
|
151
|
+
<ul class="text-sm">
|
|
152
|
+
<li>Fixed a bug in footer logos urls.</li>
|
|
153
|
+
</ul>
|
|
154
|
+
<h3>v.16.0.1</h3>
|
|
155
|
+
<ul class="text-sm">
|
|
156
|
+
<li>Fixed a bug in header logos urls.</li>
|
|
157
|
+
</ul>
|
|
150
158
|
<h3>v.16.0.0</h3>
|
|
151
159
|
<ul class="text-sm">
|
|
152
160
|
<li>Added branding system to customize header and footer logos and texts.</li>
|
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -592,23 +592,23 @@ async function rewriteHtmlImagePaths() {
|
|
|
592
592
|
const filePath = path.join(distDir, htmlFile);
|
|
593
593
|
let content = await fs.promises.readFile(filePath, 'utf8');
|
|
594
594
|
|
|
595
|
-
// Replace src="/images/ with src="
|
|
596
|
-
let modified = content.replace(/src="(\/images\/)/g, 'src="
|
|
595
|
+
// Replace src="/images/ with src="./images/
|
|
596
|
+
let modified = content.replace(/src="(\/images\/)/g, 'src="./images/');
|
|
597
597
|
|
|
598
|
-
// Replace srcset="/images/ with srcset="
|
|
599
|
-
modified = modified.replace(/srcset="(\/images\/)/g, 'srcset="
|
|
598
|
+
// Replace srcset="/images/ with srcset="./images/
|
|
599
|
+
modified = modified.replace(/srcset="(\/images\/)/g, 'srcset="./images/');
|
|
600
600
|
|
|
601
|
-
// Replace src="/branding/logos/ with src="
|
|
602
|
-
modified = modified.replace(/src="(\/branding\/logos\/)/g, 'src="
|
|
601
|
+
// Replace src="/branding/logos/ with src="./images/
|
|
602
|
+
modified = modified.replace(/src="(\/branding\/logos\/)/g, 'src="./images/');
|
|
603
603
|
|
|
604
|
-
// Replace srcset="/branding/logos/ with srcset="
|
|
605
|
-
modified = modified.replace(/srcset="(\/branding\/logos\/)/g, 'srcset="
|
|
604
|
+
// Replace srcset="/branding/logos/ with srcset="./images/
|
|
605
|
+
modified = modified.replace(/srcset="(\/branding\/logos\/)/g, 'srcset="./images/');
|
|
606
606
|
|
|
607
|
-
// Replace src="/branding/images/ with src="
|
|
608
|
-
modified = modified.replace(/src="(\/branding\/images\/)/g, 'src="
|
|
607
|
+
// Replace src="/branding/images/ with src="./images/
|
|
608
|
+
modified = modified.replace(/src="(\/branding\/images\/)/g, 'src="./images/');
|
|
609
609
|
|
|
610
|
-
// Replace srcset="/branding/images/ with srcset="
|
|
611
|
-
modified = modified.replace(/srcset="(\/branding\/images\/)/g, 'srcset="
|
|
610
|
+
// Replace srcset="/branding/images/ with srcset="./images/
|
|
611
|
+
modified = modified.replace(/srcset="(\/branding\/images\/)/g, 'srcset="./images/');
|
|
612
612
|
|
|
613
613
|
if (modified !== content) {
|
|
614
614
|
await fs.promises.writeFile(filePath, modified);
|