(search) add little reminder comments to keep search and <Header> in sync

This commit is contained in:
Valentyne Stigloher 2024-12-28 00:12:14 +01:00
parent 4728f0433c
commit 9f5b83583d
2 changed files with 4 additions and 0 deletions

View File

@ -288,6 +288,8 @@ export default defineComponent({
'darkMode',
]),
links(): HeaderLink[] {
// remember to modify ~/server/api/search.get.ts, page kind too
const links: HeaderLink[] = [];
links.push({

View File

@ -147,6 +147,8 @@ const kinds: SearchKind[] = [
},
},
async getDocuments(config: Config): Promise<SearchDocument[]> {
// remember to modify ~/components/Header.vue too
const documents: SearchDocument[] = [];
const addDocument = ({ url, title, content }: { url: string; title: string; content?: string }) => {
documents.push({