Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 0 additions & 6 deletions docs/compiled/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"files": [
".DS_Store",
"de/.DS_Store",
"de/api/apiSpec.json",
"de/articles/_meta.json",
"de/articles/ai_integration.json",
Expand Down Expand Up @@ -29,13 +27,11 @@
"de/docs/introduction.json",
"de/docs/seo-and-performance/robot-txt.json",
"de/docs/seo-and-performance/sitemap-generation.json",
"en/.DS_Store",
"en/api/apiSpec.json",
"en/articles/_meta.json",
"en/articles/ai_integration.json",
"en/articles/importance_of_documentation.json",
"en/articles/welcome.json",
"en/docs/.DS_Store",
"en/docs/_meta.json",
"en/docs/api-reference/_meta.json",
"en/docs/api-reference/usage-guide.json",
Expand Down Expand Up @@ -68,7 +64,6 @@
"en/docs/seo-and-performance/_meta.json",
"en/docs/seo-and-performance/robot-txt.json",
"en/docs/seo-and-performance/sitemap-generation.json",
"es/.DS_Store",
"es/api/apiSpec.json",
"es/articles/_meta.json",
"es/articles/ai_integration.json",
Expand Down Expand Up @@ -96,7 +91,6 @@
"es/docs/introduction.json",
"es/docs/seo-and-performance/robot-txt.json",
"es/docs/seo-and-performance/sitemap-generation.json",
"fr/.DS_Store",
"fr/api/apiSpec.json",
"fr/articles/_meta.json",
"fr/articles/ai_integration.json",
Expand Down
4 changes: 2 additions & 2 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/public/context/docs.db
Binary file not shown.
20 changes: 19 additions & 1 deletion docs/src/app/aiSearch/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { getHeaderConfig } from '@/lib/headerConfig'
import { Header } from '@/components/layout/Header'
import { generateEmbedding } from '@/lib/aisearch/embeddings'
import { getDbWorker } from '@/lib/aisearch/dbWorker'
import { ExternalLink } from 'lucide-react'

function cosineSimilarity(a: number[], b: number[]): number {
if (a.some(isNaN) || b.some(isNaN)) {
Expand Down Expand Up @@ -263,8 +264,25 @@ export default function Home() {
return (
<div className="flex flex-col min-h-screen">
<Header {...headerConfig} currentLocale={`en`} currentType={`aiSearch`}/>
<div className="bg-gradient-to-r from-blue-100 to-purple-100 dark:from-blue-950 dark:to-purple-950 text-gray-800 dark:text-gray-200 py-3 transition-all duration-300 ease-in-out">
<div className="mx-auto flex items-center justify-center">
<div className="flex items-center space-x-3">
<span className="text-sm" aria-hidden="true">⭐</span>
<p className="text-md font-medium">
Enjoying our AI-powered documentation platform? Support us with a star on{' '}
<Link
href="https://github.com/Cloud-Code-AI/AkiraDocs"
target="_blank"
rel="noopener noreferrer"
Comment on lines +274 to +276
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: Potential security risk with external link.

Solution: Ensure that the external link includes 'rel="noopener noreferrer"' to prevent security vulnerabilities.
!! Make sure the following suggestion is correct before committing it !!

Suggested change
href="https://github.com/Cloud-Code-AI/AkiraDocs"
target="_blank"
rel="noopener noreferrer"
<Link
href="https://github.com/Cloud-Code-AI/AkiraDocs"
target="_blank"
rel="noopener noreferrer"
className="underline underline-offset-2 hover:text-blue-600 dark:hover:text-blue-400 inline-flex items-center transition-colors duration-200"
>

className="underline underline-offset-2 hover:text-blue-600 dark:hover:text-blue-400 inline-flex items-center transition-colors duration-200"
>
GitHub <ExternalLink className="h-3 w-3 ml-1" />
</Link>
</p>
</div>
</div>
</div>
<div className="min-h-screen py-12 px-4 sm:px-6 lg:px-8">

<div className="max-w-4xl mx-auto">
<SearchHeader
logo={searchConfig.logo}
Expand Down
Loading