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
20 changes: 10 additions & 10 deletions packages/akiradocs/public/context/en_docs.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
[Document: docs/introduction.json]
Title: Introduction
<strong>Akira Docs</strong> is a modern documentation platform that combines the power of AI with an intuitive block-based content system. This guide will help you understand the core concepts and features.
Key Features
AI-powered search
Block-based content editing
Responsive design
Customizable themes
Markdown support
-------------
[Document: articles/welcome.json]
Title: Welcome to Akira Doc
Get started with Akira Docs - Next-gen documentation powered by AI
Expand Down Expand Up @@ -66,6 +56,16 @@ ai_assistant:
Next Steps
Explore our [Advanced AI Features](/advanced-ai-features) guide to learn more about specialized use cases and integration possibilities.
-------------
[Document: docs/introduction.json]
Title: Introduction
<strong>Akira Docs</strong> is a modern documentation platform that combines the power of AI with an intuitive block-based content system. This guide will help you understand the core concepts and features.
Key Features
AI-powered search
Block-based content editing
Responsive design
Customizable themes
Markdown support
-------------
[Document: docs/guides/analytics.json]
Title: Analytics Integration
Learn how to add analytics tracking to your documentation
Expand Down
6 changes: 3 additions & 3 deletions packages/akiradocs/src/components/layout/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function Navigation({ locale, items }: NavigationProps) {
return (
<ErrorBoundary FallbackComponent={ErrorFallback}>
<aside className="w-64 bg-sidebar-background/50 text-sidebar-foreground border-r border-border/40 h-[calc(100vh-4rem)] sticky top-16 backdrop-blur-sm">
<ScrollArea className="h-full py-4">
<nav className="px-3 space-y-1">
<ScrollArea className="h-full py-6 px-4">
<nav className="space-y-2">
{Object.entries(items)
.filter(([key]) => key !== "defaultRoute")
.map(([key, item]) => (
Comment on lines 39 to 41
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 performance issues with navigation rendering.

Solution: Consider using memoization or virtualization techniques for rendering large lists of navigation items.
!! Make sure the following suggestion is correct before committing it !!

Suggested change
{Object.entries(items)
.filter(([key]) => key !== "defaultRoute")
.map(([key, item]) => (
const memoizedItems = useMemo(() => Object.entries(items).filter(([key]) => key !== 'defaultRoute'),[items]); return memoizedItems.map(([key, item]) => (<NavItem key={key}item={item}/>));

Expand Down Expand Up @@ -140,7 +140,7 @@ export function ApiSidebar() {
<ErrorBoundary FallbackComponent={ErrorFallback}>
<aside className="w-64 bg-sidebar-background text-sidebar-foreground border-r h-[calc(100vh-4rem)] sticky top-16 shadow-sm">
<ScrollArea className="h-full py-6 px-4">
<nav>
<nav className="space-y-2">
{navigation.map((item, index) => (
<ApiNavItem key={index} item={item} />
))}
Expand Down
12 changes: 6 additions & 6 deletions packages/akiradocs/src/components/layout/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ export function TableOfContents({ publishDate, modifiedDate, author, locale }: T

return (
<div className="w-64 border-l border-border sticky top-16 h-[calc(100vh-4rem)] hidden xl:block">
<ScrollArea className="h-full py-2 px-4">
<nav>
<ScrollArea className="h-full py-6 px-4">
<nav className="space-y-2">
{(author || modifiedDate) && (
<>
<div className="mb-4 text-sm">
<div className="mb-6">
{author && author !== 'Anonymous' && (
<div className="flex items-center gap-2 mb-2 p-2.5 rounded-lg bg-muted/30 backdrop-blur-sm">
<div className="h-7 w-7 rounded-full bg-primary/10 flex items-center justify-center">
Expand Down Expand Up @@ -104,7 +104,7 @@ export function TableOfContents({ publishDate, modifiedDate, author, locale }: T
{t('common.labels.onThisPage')}
</h4>

<ul className="space-y-2 ml-1">
<ul className="space-y-2">
{headings.map((heading) => {
const level = parseInt(heading.tagName[1]) - 2;
return (
Expand All @@ -113,8 +113,8 @@ export function TableOfContents({ publishDate, modifiedDate, author, locale }: T
href={`#${heading.id}`}
onClick={(e) => handleClick(e, heading.id)}
className={`
text-sm block py-1.5 transition-colors duration-200 rounded-md
${level > 0 ? 'pl-' + (level * 4) : ''}
text-sm block px-3 py-2 transition-colors duration-200 rounded-md
${level > 0 ? 'pl-' + (level * 4 + 3) : ''}
${
activeId === heading.id
? 'text-primary font-medium bg-primary/5'
Expand Down
20 changes: 0 additions & 20 deletions packages/editor/backend/app/main.py

This file was deleted.

11 changes: 0 additions & 11 deletions packages/editor/backend/app/models/file.py

This file was deleted.

42 changes: 0 additions & 42 deletions packages/editor/backend/app/routes/files.py

This file was deleted.

55 changes: 0 additions & 55 deletions packages/editor/backend/app/services/file_service.py

This file was deleted.

12 changes: 0 additions & 12 deletions packages/editor/backend/app/utils/path_utils.py

This file was deleted.

Loading
Loading