Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
8069af1
feat(search): client side fts
larbish Aug 13, 2026
2f703a0
feat: add agent skills discovery via `/.well-known/skills` (#19)
atinux Aug 13, 2026
44c8e0e
fix(responsive): remove playground in hero on mobile
larbish Aug 14, 2026
8ea6404
run on worker
larbish Aug 14, 2026
c9a22f7
Merge branch 'main' into feat/client-side-fts-search
larbish Aug 18, 2026
d26bc6f
use comark-cms latest
larbish Aug 19, 2026
06e5eec
app search nav groups
larbish Aug 19, 2026
a783a63
debug system
larbish Aug 19, 2026
74dfd6e
Merge branch 'main' into feat/client-side-fts-search
larbish Aug 19, 2026
d1b2cbc
pnpm lock file
larbish Aug 19, 2026
060607b
up
larbish Aug 19, 2026
4017871
up
larbish Aug 20, 2026
6b95a04
use resolveContentSha
larbish Aug 20, 2026
0c602ab
Merge branch 'main' into feat/client-side-fts-search
larbish Aug 27, 2026
fccb570
up tests
larbish Aug 27, 2026
ba0354a
fix lock
larbish Aug 27, 2026
4ac9598
Merge branch 'main' into feat/client-side-fts-search
larbish Aug 28, 2026
d7f91e9
use nuxt-workers
larbish Aug 28, 2026
8658fc4
fix lockfile
larbish Aug 28, 2026
c04e129
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 2, 2026
321bb5e
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 3, 2026
a593fbd
improvements
larbish Sep 3, 2026
1f52fe8
Apply comark 4.0 changes
larbish Sep 3, 2026
b5bc5ca
try warm with function invocation
larbish Sep 4, 2026
8e65942
feat: built time snapshot
larbish Sep 4, 2026
1b49f44
Merge branch 'main' into feat/client-side-fts-search
atinux Sep 4, 2026
aa28e59
snapshot improvements
larbish Sep 7, 2026
8ed1944
add metrics
larbish Sep 7, 2026
83fb86f
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 7, 2026
2378af0
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 8, 2026
d6a2ca8
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 8, 2026
01457f6
improve icon bundle
larbish Sep 8, 2026
1b4a029
feat(content): pin instances per commit with withRef() (#42)
atinux Sep 8, 2026
e462783
small cache / driver refactor
larbish Sep 8, 2026
8a9b20f
refactor: move preview in a new util
larbish Sep 9, 2026
31e7e7b
simplify icon collections
larbish Sep 9, 2026
291fc31
nitro icon aliases
larbish Sep 9, 2026
b5ad6da
chore: update comark-content
atinux Sep 9, 2026
14a6ff0
chore: fix import snapshot + add manifest.json
atinux Sep 9, 2026
fd85d3e
always use sha to pin instance in production (no ref)
larbish Sep 9, 2026
972f26e
chore: add renovate config
benjamincanac Sep 9, 2026
d543244
chore: pin pnpm version
benjamincanac Sep 9, 2026
6423017
chore: add node engines
benjamincanac Sep 9, 2026
fd587bc
chore(pnpm): scope minimum release age excludes to comark packages
benjamincanac Sep 9, 2026
8472957
chore(deps): use `@nuxt/ui` 4.11.1 release
benjamincanac Sep 9, 2026
937adb6
Update pnpm-lock.yaml
atinux Sep 9, 2026
fdd81de
feat(cache): persist production content ref
atinux Sep 9, 2026
a31954e
fix(cache): bound production ref staleness
atinux Sep 9, 2026
bdbc1fa
chore: follow coderabbit advice
atinux Sep 9, 2026
00eb564
Merge branch 'main' into feat/client-side-fts-search
atinux Sep 9, 2026
ab69ef6
fix(cache): rotate bounded ref namespace
atinux Sep 9, 2026
09a4f13
chore(pnpm): scope comark release-age exemptions
atinux Sep 9, 2026
400ec0a
fix: build
atinux Sep 9, 2026
6559d78
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 10, 2026
3a9bdd2
use agent-discovery utils
larbish Sep 10, 2026
5056ac4
no prerendering skills
larbish Sep 10, 2026
eb9dede
Merge branch 'main' into feat/client-side-fts-search
atinux Sep 10, 2026
a12be8e
fix(config): keep an explicit `schemaOrg: false` disabled
benjamincanac Sep 10, 2026
2424b27
refactor(config): assign seeded options through the typed view
benjamincanac Sep 10, 2026
37e6d5a
fix(prose): keep default link styles for inline code
benjamincanac Sep 10, 2026
e8200ff
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 10, 2026
1d75c41
chore(search): import comark-content from runtime package
larbish Sep 10, 2026
4df4146
Merge branch 'main' into feat/client-side-fts-search
atinux Sep 11, 2026
f5c574b
chore: update deps
atinux Sep 11, 2026
e6a75cb
chore: up comark and comark-content
larbish Sep 14, 2026
5bb4d3a
avoid multiple sha fetch
larbish Sep 14, 2026
8f535b5
feat: preview search
larbish Sep 14, 2026
bc217e4
update content
larbish Sep 15, 2026
c1daf8a
rollback content
larbish Sep 15, 2026
bf7ce50
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 15, 2026
1a919a5
small search refactor
larbish Sep 15, 2026
5cd74f8
adding azerty in introduction
larbish Sep 15, 2026
5b1ab78
fix: update commit history cache
larbish Sep 15, 2026
3e7308d
fix debug
larbish Sep 15, 2026
3c93ab1
move client only in app.vue
larbish Sep 15, 2026
1f1893c
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 15, 2026
8a263e7
feat: improve history on preview branches
larbish Sep 15, 2026
cfa3a78
feat(history): add main badge on all commits
larbish Sep 16, 2026
0ae7757
add file name in header
larbish Sep 16, 2026
e710751
Merge branch 'main' into feat/client-side-fts-search
larbish Sep 16, 2026
0e7766d
fix modal result prefix
larbish Sep 16, 2026
30c1678
remove azerty
larbish Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default defineAppConfig({
// info: 'i-tabler-info-square-rounded-filled',
},
},
// `seo.siteName`, `header.title` and `github.*` are deliberately NOT defaulted here: modules/config.ts seeds
// `seo.siteName`, `header.title` and `github.*` are deliberately NOT defaulted here: modules/config/ seeds
// them into `nuxt.options.appConfig`, and app.config values — even empty strings — would win over those.
header: {
to: '/',
Expand Down
46 changes: 15 additions & 31 deletions app/app.vue
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
<script setup lang="ts">
import type { NavigationItem } from 'comark-content'
import type { SearchSection } from './utils/search-sections'
import { useRoute } from 'vue-router'

const { seo, docs } = useAppConfig()

const content = useDocsContent()
const route = useRoute()

const { data: navigation } = await useAsyncData('navigation', () => content.value.client.navigation(), {
watch: [() => content.value.base],
})
const {
data: files,
status,
execute: loadSearchSections,
} = useLazyAsyncData('search-sections', () => content.value.client.searchSections(), {
server: false,
watch: [() => content.value.base],
immediate: false,
})

onNuxtReady(() => loadSearchSections())
const [{ data: navigation }, { data: sha }] = await Promise.all([
useAsyncData('navigation', () => content.value.client.navigation(), {
watch: [() => content.value.routeBase],
}),
useAsyncData(
() => `content-head:${content.value.apiBase}`,
() => $fetch<{ sha: string | null }>(`${content.value.apiBase}/head`).then(({ sha }) => sha),
{ default: () => null, watch: [() => content.value.apiBase] }
),
])

const nuxtApp = useNuxtApp()
const navTree = computed<NavigationItem[]>(() => prefixNavigation(navigation.value ?? [], content.value.base))
const navTree = computed<NavigationItem[]>(() => prefixNavigation(navigation.value ?? [], content.value.routeBase))
const resolveNavigationLayout = () => {
return resolveRouteLayout(navigation.value, route, content.value.base ? content.value.path : route.path)
return resolveRouteLayout(navigation.value, route, content.value.routeBase ? content.value.path : route.path)
}
const navigationLayout = ref(resolveNavigationLayout())
onNuxtReady(() => {
nuxtApp.hook('page:finish', () => {
navigationLayout.value = resolveNavigationLayout()
})
})
const searchFiles = computed<SearchSection[]>(() =>
(files.value ?? []).map((section) => {
const [path, hash] = section.id.split('#')
return { ...section, id: prefixLink(path!, content.value.base) + (hash ? `#${hash}` : '') }
})
)

useHead({
meta: [{ name: 'viewport', content: 'width=device-width, initial-scale=1' }],
Expand All @@ -64,8 +54,8 @@ useSeoMeta({

provide('navigation', navTree)
provide('layout', navigationLayout)
provide('sha', sha)

// const colorMode = useColorMode()
const historyOpen = useVersionHistory()

const { assistant } = useAppConfig()
Expand Down Expand Up @@ -108,13 +98,7 @@ defineShortcuts({
<AppFooter />

<ClientOnly>
<LazyUContentSearch
:files="searchFiles"
:navigation="navTree"
:transition="false"
:loading="status !== 'success'"
:placeholder="status !== 'success' ? 'Loading...' : undefined"
/>
<AppSearch :navigation="navTree" />
<LazyVersionHistory />
<LazyAssistantChat v-if="assistant?.enabled && assistantMounted" />
</ClientOnly>
Expand Down
7 changes: 4 additions & 3 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ const content = useDocsContent()
const historyOpen = useVersionHistory()
const assistantOpen = useAssistant()
const navigation = useMainNavigation()
const { available: searchAvailable } = useSearch()
</script>

<template>
<UHeader :to="prefixLink(header?.to || '/', content.base)">
<UHeader :to="prefixLink(header?.to || '/', content.routeBase)">
<template #left>
<AppHeaderBrand />
</template>
Expand All @@ -16,7 +17,7 @@ const navigation = useMainNavigation()

<template #right>
<UContentSearchButton
v-if="header?.search"
v-if="header?.search && searchAvailable"
:collapsed="false"
:icon="false"
class="text-muted font-normal hidden lg:inline-flex min-w-[150px]"
Expand Down Expand Up @@ -61,7 +62,7 @@ const navigation = useMainNavigation()
<div class="flex flex-col justify-between h-full">
<div class="flex flex-col gap-4">
<UContentSearchButton
v-if="header?.search"
v-if="header?.search && searchAvailable"
:collapsed="false"
size="xl"
class="w-full font-normal"
Expand Down
2 changes: 1 addition & 1 deletion app/components/AppHeaderBrand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ onMounted(() => {
</div>

<NuxtLink
:to="prefixLink(header?.to || '/', cms.base)"
:to="prefixLink(header?.to || '/', cms.routeBase)"
:aria-label="header?.logo?.alt || header?.title"
class="text-highlighted!"
>
Expand Down
66 changes: 66 additions & 0 deletions app/components/AppSearch.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<script setup lang="ts">
import type { NavigationItem } from 'comark-content'

const props = defineProps<{
navigation: NavigationItem[]
}>()

const { search, status, available } = useSearch()

const appConfig = useAppConfig()

interface PageItem {
label: string
prefix?: string
suffix?: string
to: string
icon: string
}

/** Leaf pages, flattened; ancestor titles become the `Section > Page` prefix the palette renders. */
function pageItems(items: NavigationItem[], ancestors: string[] = []): PageItem[] {
return items.flatMap((item) => {
if (item.children?.length) return pageItems(item.children, [...ancestors, item.title])
if (!item.path || item.page === false) return []
return [{
label: item.title,
prefix: ancestors.length ? `${ancestors.join(' > ')} >` : undefined,
suffix: item.description,
to: item.path,
icon: (item.icon as string | undefined) || appConfig.ui.icons.file,
}]
})
}

function browseOnly(query: string, items?: PageItem[]): PageItem[] {
return query ? [] : (items ?? [])
}

// One group per top-level section, mirroring how `UContentSearch` groups navigation when it can.
const groups = computed(() => {
if (props.navigation.some((item) => item.children?.length)) {
return props.navigation
.filter((section) => section.children?.length)
.map((section) => ({
id: section.path,
label: section.title,
items: pageItems(section.children ?? []),
postFilter: browseOnly,
}))
.filter((group) => group.items.length > 0)
}
return [{ id: 'docs', items: pageItems(props.navigation), postFilter: browseOnly }]
})
</script>

<template>
<LazyUContentSearch
v-if="available"
:search="search"
:search-status="status"
:navigation="navigation"
:groups="groups"
:transition="false"
:loading="status === 'loading'"
/>
</template>
2 changes: 1 addition & 1 deletion app/components/AssistantChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DefaultChatTransport, isReasoningUIPart, isTextUIPart, isToolUIPart, ge
import { useChat } from '@ai-sdk/vue'
import { isPartStreaming, isToolStreaming } from '@nuxt/ui/utils/ai'
import rangi from 'comark/plugins/rangi'
import { geistTheme } from '../../utils/geist-theme'
import { geistTheme } from '../../utils/geist'

const MAX_INPUT = 1000

Expand Down
Loading
Loading