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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desy-html",
3
- "version": "16.0.0",
3
+ "version": "16.0.2",
4
4
  "description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
5
5
  "type": "module",
6
6
  "author": {
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="../images/
596
- let modified = content.replace(/src="(\/images\/)/g, 'src="../images/');
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="../images/
599
- modified = modified.replace(/srcset="(\/images\/)/g, 'srcset="../images/');
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="../images/
602
- modified = modified.replace(/src="(\/branding\/logos\/)/g, 'src="../images/');
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="../images/
605
- modified = modified.replace(/srcset="(\/branding\/logos\/)/g, 'srcset="../images/');
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="../images/
608
- modified = modified.replace(/src="(\/branding\/images\/)/g, 'src="../images/');
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="../images/
611
- modified = modified.replace(/srcset="(\/branding\/images\/)/g, 'srcset="../images/');
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);