@ampernic/vitepress-theme-alt-docs 0.1.13 → 0.1.15
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="isLandingPage && origin" class="products-sidebar">
|
|
2
|
+
<div v-if="isLandingPage && origin && currentDistro" class="products-sidebar">
|
|
3
3
|
<template v-for="group in groups" :key="group.title">
|
|
4
4
|
<div class="group">
|
|
5
5
|
<p v-if="group.title" class="group-title">{{ group.title }}</p>
|
|
@@ -92,7 +92,7 @@ interface SidebarGroup { title: string; distros: string[] }
|
|
|
92
92
|
const groups = computed((): SidebarGroup[] => {
|
|
93
93
|
const allDistros = Object.keys(versionsData.distros)
|
|
94
94
|
const sections = versionsData.sections ?? []
|
|
95
|
-
const sectionedSet = new Set(sections.flatMap(s => s.distros))
|
|
95
|
+
const sectionedSet = new Set(sections.flatMap((s: SectionInfo) => s.distros))
|
|
96
96
|
|
|
97
97
|
const unsectioned = allDistros.filter(d => !sectionedSet.has(d))
|
|
98
98
|
const regular = unsectioned.filter(d => !d.endsWith('-e2k'))
|
|
@@ -105,7 +105,7 @@ const groups = computed((): SidebarGroup[] => {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
for (const section of sections) {
|
|
108
|
-
const distros = section.distros.filter(d => allDistros.includes(d))
|
|
108
|
+
const distros = section.distros.filter((d: string) => allDistros.includes(d))
|
|
109
109
|
if (distros.length > 0) {
|
|
110
110
|
result.push({ title: section.name, distros })
|
|
111
111
|
}
|
|
@@ -120,36 +120,34 @@ const groups = computed((): SidebarGroup[] => {
|
|
|
120
120
|
</script>
|
|
121
121
|
|
|
122
122
|
<style scoped>
|
|
123
|
-
.products-sidebar {
|
|
124
|
-
padding: 12px 0;
|
|
125
|
-
}
|
|
126
123
|
.group {
|
|
127
|
-
|
|
124
|
+
padding-bottom: 24px;
|
|
128
125
|
}
|
|
129
126
|
.group-title {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
margin: 0 0 6px;
|
|
127
|
+
padding: 4px 0;
|
|
128
|
+
line-height: 24px;
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
font-weight: 700;
|
|
131
|
+
color: var(--vp-c-text-1);
|
|
132
|
+
transition: color 0.25s;
|
|
137
133
|
}
|
|
138
134
|
.item {
|
|
139
135
|
display: block;
|
|
140
|
-
padding: 4px
|
|
136
|
+
padding: 4px 0;
|
|
137
|
+
line-height: 24px;
|
|
141
138
|
font-size: 14px;
|
|
142
|
-
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
color: var(--vp-c-text-2);
|
|
143
141
|
text-decoration: none;
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
transition: color 0.25s;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
text-overflow: ellipsis;
|
|
146
146
|
}
|
|
147
147
|
.item:hover {
|
|
148
148
|
color: var(--vp-c-brand-1);
|
|
149
|
-
background: var(--vp-c-default-soft);
|
|
150
149
|
}
|
|
151
150
|
.item.active {
|
|
152
151
|
color: var(--vp-c-brand-1);
|
|
153
|
-
font-weight: 600;
|
|
154
152
|
}
|
|
155
153
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampernic/vitepress-theme-alt-docs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Shared VitePress theme for ALT Linux documentation",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"author": "Ampernic",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.14.0",
|
|
34
34
|
"markdown-it-kbd": "^1.0.0",
|
|
35
35
|
"vitepress-plugin-tabs": "^0.6.0",
|
|
36
|
-
"@ampernic/vitepress-plugin-alt-docs-versioning": "0.1.
|
|
36
|
+
"@ampernic/vitepress-plugin-alt-docs-versioning": "0.1.5",
|
|
37
|
+
"@ampernic/vitepress-plugin-cross-site-router": "0.1.2",
|
|
37
38
|
"@ampernic/vitepress-plugin-html-image": "0.1.2",
|
|
38
|
-
"@ampernic/vitepress-plugin-pagefind": "0.1.8"
|
|
39
|
-
"@ampernic/vitepress-plugin-cross-site-router": "0.1.2"
|
|
39
|
+
"@ampernic/vitepress-plugin-pagefind": "0.1.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"builtin-modules": "^3.3.0",
|