mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-08-01 07:54:47 +00:00
💚 Fix CSS Style lost
This commit is contained in:
@@ -33,6 +33,8 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build docs site
|
- name: Build docs site
|
||||||
|
env:
|
||||||
|
DOCS_BASE: /
|
||||||
run: npm run docs:build
|
run: npm run docs:build
|
||||||
|
|
||||||
- name: Configure Pages
|
- name: Configure Pages
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ type ApiDocEntry = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const repoSlug = process.env.GITHUB_REPOSITORY?.split('/')[1] ?? 'BitLogger'
|
const repoSlug = process.env.GITHUB_REPOSITORY?.split('/')[1] ?? 'BitLogger'
|
||||||
const docsBase = process.env.GITHUB_ACTIONS ? `/${repoSlug}/` : '/'
|
const docsBase = process.env.DOCS_BASE ?? (process.env.GITHUB_ACTIONS ? `/${repoSlug}/` : '/')
|
||||||
const repository = 'https://github.com/Nanaloveyuki/BitLogger'
|
const repository = 'https://github.com/Nanaloveyuki/BitLogger'
|
||||||
|
|
||||||
function splitWords(input: string): string[] {
|
function splitWords(input: string): string[] {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, shallowRef } from 'vue'
|
import { computed, shallowRef } from 'vue'
|
||||||
|
import { withBase } from 'vitepress'
|
||||||
|
|
||||||
import { docsData } from '../../generated/docs-data.mjs'
|
import { docsData } from '../../generated/docs-data.mjs'
|
||||||
|
|
||||||
@@ -77,10 +78,10 @@ const resultCount = computed(() =>
|
|||||||
<p>{{ category.entries.length }} entries</p>
|
<p>{{ category.entries.length }} entries</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="entry in category.entries.slice(0, 8)" :key="entry.slug">
|
<li v-for="entry in category.entries.slice(0, 8)" :key="entry.slug">
|
||||||
<a :href="entry.link">{{ entry.title }}</a>
|
<a :href="withBase(entry.link)">{{ entry.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a v-if="category.entries.length > 8" class="api-more" href="/api/">
|
<a v-if="category.entries.length > 8" class="api-more" :href="withBase('/api/')">
|
||||||
Browse {{ category.entries.length - 8 }} more in sidebar
|
Browse {{ category.entries.length - 8 }} more in sidebar
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
import { withBase } from 'vitepress'
|
||||||
|
|
||||||
import { docsData } from '../../generated/docs-data.mjs'
|
import { docsData } from '../../generated/docs-data.mjs'
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ const groupCount = computed(() => docsData.api.groups.length)
|
|||||||
<p class="hub-eyebrow">Popular Areas</p>
|
<p class="hub-eyebrow">Popular Areas</p>
|
||||||
<ul class="hub-chip-list">
|
<ul class="hub-chip-list">
|
||||||
<li v-for="category in topCategories" :key="category.id">
|
<li v-for="category in topCategories" :key="category.id">
|
||||||
<a class="hub-chip" href="/api/">
|
<a class="hub-chip" :href="withBase('/api/')">
|
||||||
<span>{{ category.label }}</span>
|
<span>{{ category.label }}</span>
|
||||||
<small>{{ category.entryCount }}</small>
|
<small>{{ category.entryCount }}</small>
|
||||||
</a>
|
</a>
|
||||||
@@ -49,7 +50,7 @@ const groupCount = computed(() => docsData.api.groups.length)
|
|||||||
<p class="hub-eyebrow">Release Trail</p>
|
<p class="hub-eyebrow">Release Trail</p>
|
||||||
<ul class="hub-link-list">
|
<ul class="hub-link-list">
|
||||||
<li v-for="item in recentChanges" :key="item.version">
|
<li v-for="item in recentChanges" :key="item.version">
|
||||||
<a :href="item.link">Version {{ item.version }}</a>
|
<a :href="withBase(item.link)">Version {{ item.version }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user