@baybreezy/docd 0.0.4 → 0.0.5
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.
|
@@ -20,6 +20,9 @@ export function useDocd() {
|
|
|
20
20
|
const github = computed(
|
|
21
21
|
() => ((appConfig.docd as DocdConfig | undefined)?.github ?? {}) as DocdGithubConfig
|
|
22
22
|
);
|
|
23
|
+
const hasGithub = computed(
|
|
24
|
+
() => !!(github.value?.repo && github.value?.branch && github.value?.contentDir)
|
|
25
|
+
);
|
|
23
26
|
|
|
24
27
|
/* =====================================
|
|
25
28
|
= Footer =
|
|
@@ -82,6 +85,7 @@ export function useDocd() {
|
|
|
82
85
|
isDashed,
|
|
83
86
|
extraLinks,
|
|
84
87
|
github,
|
|
88
|
+
hasGithub,
|
|
85
89
|
hideSearch,
|
|
86
90
|
// transition
|
|
87
91
|
activeName,
|
package/app/layouts/docs.vue
CHANGED
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
class="mt-auto flex h-(--header-height) items-center justify-between gap-3 border-t px-2"
|
|
23
23
|
:class="isDashed ? 'border-dashed' : ''"
|
|
24
24
|
>
|
|
25
|
-
<template v-if="
|
|
25
|
+
<template v-if="hasGithub">
|
|
26
26
|
<DocsGithubLink />
|
|
27
27
|
</template>
|
|
28
28
|
<div class="ml-auto flex items-center gap-1.5">
|
|
29
|
-
<template v-if="
|
|
29
|
+
<template v-if="hasGithub && (!hideThemeCustomizer || !hideLightDarkToggle)">
|
|
30
30
|
<UiDivider
|
|
31
31
|
:type="isDashed ? 'dashed' : 'solid'"
|
|
32
32
|
orientation="vertical"
|
|
@@ -60,5 +60,6 @@
|
|
|
60
60
|
|
|
61
61
|
<script lang="ts" setup>
|
|
62
62
|
const { navigation } = await useDocPage();
|
|
63
|
-
const { isDashed, github, hideSearch, hideLightDarkToggle, hideThemeCustomizer } =
|
|
63
|
+
const { isDashed, github, hasGithub, hideSearch, hideLightDarkToggle, hideThemeCustomizer } =
|
|
64
|
+
useDocd();
|
|
64
65
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baybreezy/docd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A Nuxt layer for building documentation sites with UI Thing.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@baybreezy/file-extension-icon": "^0.0.4",
|
|
34
34
|
"@iconify-json/lucide": "^1.2.103",
|
|
35
35
|
"@iconify-json/simple-icons": "^1.2.79",
|
|
36
|
-
"@iconify/utils": "^3.1.
|
|
36
|
+
"@iconify/utils": "^3.1.1",
|
|
37
37
|
"@morev/vue-transitions": "^3.0.5",
|
|
38
38
|
"@nuxt/content": "3.13.0",
|
|
39
39
|
"@nuxt/fonts": "^0.14.0",
|