Skip to content

Commit

Permalink
docs: update image frontmatter qbittorrent
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Apr 25, 2024
1 parent 1eba31b commit edc4ed2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .vitepress/theme/components/AKWDocsAsideMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import { type Ref, computed } from 'vue'
import VPImage from 'vitepress/dist/client/theme-default/components/VPImage.vue';
import { withBase, useData } from 'vitepress'
import { getLists, getLinks, getLicence } from '../composables/asidemeta'
import { fileURLToPath, URL } from 'node:url'
import AKWAsideMetaList from './AKWAsideMetaList.vue'
import AKWAsideMetaLink from './AKWAsideMetaLink.vue'
import thumb from '../../../docs/apps/qbittorrent/img/org.qbittorrent.qBittorrent.png'
const { frontmatter, theme } = useData()
const props = computed(() => {
Expand All @@ -21,9 +20,12 @@ const props = computed(() => {
const links = frontmatter.value.aggregation
const config = theme.value.asideMeta
const license = getLicence(metadata_license)
const aliasThumb = 'org.qbittorrent.qBittorrent.png'
const imgUrl = new URL(`./img/${aliasThumb}.png`, import.meta.url).href
console.log(import.meta.url);
return {
thumb: thumb,
thumb: imgUrl,
name: name,
title: summary,
developer: developer,
Expand Down
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"@nolebase/vitepress-plugin-enhanced-readabilities": "^1.22.4",
"markdown-it-kbd": "^2.2.2",
"vitepress": "^1.0.0-rc.25",
"vitepress-plugin-tabs": "^0.5.0"
"vitepress-plugin-tabs": "^0.5.0",
"node": "^22.0.0"
},
"scripts": {
"docs:dev": "vitepress dev",
Expand Down

0 comments on commit edc4ed2

Please sign in to comment.