undocs 0.4.8 → 0.4.10

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/app/app.vue CHANGED
@@ -14,6 +14,9 @@ useSeoMeta({
14
14
  })
15
15
 
16
16
  useHead({
17
+ htmlAttrs: {
18
+ lang: appConfig.docs.lang || 'en',
19
+ },
17
20
  link: [
18
21
  {
19
22
  rel: 'icon',
@@ -1,7 +1,10 @@
1
+ <script setup lang="ts">
2
+ const appConfig = useAppConfig()
3
+ </script>
4
+
1
5
  <template>
2
6
  <USeparator class="-mb-[10px]">
3
- <!-- <OrgLogo class="w-5 h-5 z-10" /> -->
4
- <img :src="useAppConfig().docs.logo" class="w-10 h-10" />
7
+ <img :src="appConfig.docs.logo" :alt="`${appConfig.site.name} logo`" class="w-10 h-10" />
5
8
  </USeparator>
6
9
  <UFooter>
7
10
  <template #left>
@@ -32,7 +32,14 @@ const state = computed(() => (props.open ? 'close' : 'normal'))
32
32
  </script>
33
33
 
34
34
  <template>
35
- <UButton size="sm" variant="ghost" color="neutral" class="-me-1.5" square>
35
+ <UButton
36
+ size="sm"
37
+ variant="ghost"
38
+ color="neutral"
39
+ class="-me-1.5"
40
+ square
41
+ :aria-label="open ? 'Close menu' : 'Open menu'"
42
+ >
36
43
  <svg
37
44
  xmlns="http://www.w3.org/2000/svg"
38
45
  class="size-5"
@@ -66,7 +66,7 @@ usePageSEO({
66
66
  </template>
67
67
  </UPageHeader>
68
68
 
69
- <template #right>
69
+ <template v-if="page.body?.toc?.links?.length" #right>
70
70
  <UContentToc title="On this page" :links="page.body?.toc?.links || []" highlight />
71
71
  </template>
72
72
 
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Disallow:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,6 +10,11 @@
10
10
  "type": "string",
11
11
  "description": "Documentation directory\n\nNote: This option will be automatically set"
12
12
  },
13
+ "lang": {
14
+ "type": "string",
15
+ "description": "The language of the documentation site.",
16
+ "default": "en"
17
+ },
13
18
  "name": {
14
19
  "type": "string",
15
20
  "description": "The name of the documentation site."