Closed tassoman closed 1 year ago
When you build the artifacts, logo images are missing.
I followed GitLab deploy guide then I read PR 1451 and I configured default theme like this:
outDir: '../public', base: '/group/repository/', themeConfig: { logo: { light: '/i/logo-light.png', dark: '/i/logo-dark.png', alt: 'My Alt Text', }, },
Finally, I've created docs/i/logo-light.png and the dark one. Works fine during development. Images get rendered, they are abt 14Kb
docs/i/logo-light.png
Expected to be fine also after build. But it's missing logo files. There's only ita.jpeg who's embedded by using
ita.jpeg
tassoman@i2000014518:~/devel/GitLab/myrepo$(main) ls -alhR public/ public/: totale 56K drwxrwxr-x 3 tassoman tassoman 4,0K mar 3 18:25 . drwxrwxr-x 6 tassoman tassoman 4,0K mar 3 18:25 .. -rw-rw-r-- 1 tassoman tassoman 9,7K mar 3 18:25 404.html drwxrwxr-x 2 tassoman tassoman 4,0K mar 3 18:25 assets -rw-rw-r-- 1 tassoman tassoman 24 mar 3 18:25 hashmap.json -rw-rw-r-- 1 tassoman tassoman 27K mar 3 18:25 index.html public/assets: totale 716K drwxrwxr-x 2 tassoman tassoman 4,0K mar 3 18:25 . drwxrwxr-x 3 tassoman tassoman 4,0K mar 3 18:25 .. -rw-rw-r-- 1 tassoman tassoman 136K mar 3 18:25 app.9d50fb2d.js -rw-rw-r-- 1 tassoman tassoman 18K mar 3 18:25 index.md.2dde5316.js -rw-rw-r-- 1 tassoman tassoman 1,8K mar 3 18:25 index.md.2dde5316.lean.js -rw-rw-r-- 1 tassoman tassoman 18K mar 3 18:25 inter-italic-cyrillic.ea42a392.woff2 -rw-rw-r-- 1 tassoman tassoman 28K mar 3 18:25 inter-italic-cyrillic-ext.33bd5a8e.woff2 -rw-rw-r-- 1 tassoman tassoman 23K mar 3 18:25 inter-italic-greek.8f4463c4.woff2 -rw-rw-r-- 1 tassoman tassoman 12K mar 3 18:25 inter-italic-greek-ext.4fbe9427.woff2 -rw-rw-r-- 1 tassoman tassoman 45K mar 3 18:25 inter-italic-latin.bd3b6f56.woff2 -rw-rw-r-- 1 tassoman tassoman 63K mar 3 18:25 inter-italic-latin-ext.bd8920cc.woff2 -rw-rw-r-- 1 tassoman tassoman 8,6K mar 3 18:25 inter-italic-vietnamese.6ce511fb.woff2 -rw-rw-r-- 1 tassoman tassoman 17K mar 3 18:25 inter-roman-cyrillic.5f2c6c8c.woff2 -rw-rw-r-- 1 tassoman tassoman 26K mar 3 18:25 inter-roman-cyrillic-ext.e75737ce.woff2 -rw-rw-r-- 1 tassoman tassoman 22K mar 3 18:25 inter-roman-greek.d5a6d92a.woff2 -rw-rw-r-- 1 tassoman tassoman 12K mar 3 18:25 inter-roman-greek-ext.ab0619bc.woff2 -rw-rw-r-- 1 tassoman tassoman 42K mar 3 18:25 inter-roman-latin.2ed14f66.woff2 -rw-rw-r-- 1 tassoman tassoman 59K mar 3 18:25 inter-roman-latin-ext.0030eebd.woff2 -rw-rw-r-- 1 tassoman tassoman 8,3K mar 3 18:25 inter-roman-vietnamese.14ce25a6.woff2 -rw-rw-r-- 1 tassoman tassoman 47K mar 3 18:25 ita.42a9fca8.jpeg <<<<<<<<<<<<<<<<<<<< -rw-rw-r-- 1 tassoman tassoman 90K mar 3 18:25 style.4da33c5a.css
System: OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish) CPU: (8) x64 Intel(R) Core(TM) i7-4702MQ CPU @ 2.20GHz Memory: 3.75 GB / 7.46 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.6.0 - ~/.nvm/versions/node/v16.14.0/bin/npm Browsers: Chromium: 110.0.5481.100 Firefox: 110.0.1 npmPackages: vitepress: ^1.0.0-alpha.49 => 1.0.0-alpha.49
No response
Put them at docs/public/i/logo-light.png (no need to change the config)
docs/public/i/logo-light.png
Undocumented at https://vitepress.vuejs.org/guide/asset-handling
Describe the bug
When you build the artifacts, logo images are missing.
Reproduction
I followed GitLab deploy guide then I read PR 1451 and I configured default theme like this:
Finally, I've created
docs/i/logo-light.png
and the dark one.Works fine during development. Images get rendered, they are abt 14Kb
Expected behavior
Expected to be fine also after build. But it's missing logo files.
There's only
ita.jpeg
who's embedded by usingSystem Info
Additional context
No response
Validations