From b742582a1efb8395e2295d297960e956999ce80a Mon Sep 17 00:00:00 2001 From: Dragos Niculescu Date: Tue, 24 Dec 2024 00:58:10 +0200 Subject: [PATCH] Add GitHub Pages website --- docs/assets/index.html | 28 ++++++++ docs/assets/index.js | 158 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 docs/assets/index.html create mode 100644 docs/assets/index.js diff --git a/docs/assets/index.html b/docs/assets/index.html new file mode 100644 index 0000000..f87323b --- /dev/null +++ b/docs/assets/index.html @@ -0,0 +1,28 @@ + + + + + + FileFusion - File Concatenation Tool for LLMs + + + + + + + +
+ + + \ No newline at end of file diff --git a/docs/assets/index.js b/docs/assets/index.js new file mode 100644 index 0000000..a972941 --- /dev/null +++ b/docs/assets/index.js @@ -0,0 +1,158 @@ +import { Alert, AlertDescription } from '@/components/ui/alert'; +import { FileCode, FileJson, Moon, Sun, Terminal } from 'lucide-react'; +import React from 'react'; + +const HomePage = () => { + const [isDark, setIsDark] = React.useState(true); + + React.useEffect(() => { + // Apply dark mode class to document + document.documentElement.classList.toggle('dark', isDark); + }, [isDark]); + + return ( +
+ {/* Header */} +
+
+
+

FileFusion

+
+ + +
+
+
+
+ + {/* Hero Section */} +
+
+
+

+ File Concatenation Tool Optimized for LLM Usage +

+

+ Concatenate files into formats optimized for Large Language Models while preserving metadata +

+ +
+
+
+ + {/* Features Section */} +
+
+
+ +

Multiple Output Formats

+

+ Export your concatenated files in XML, JSON, or YAML formats +

+
+
+ +

Pattern Matching

+

+ Use glob patterns to include or exclude files +

+
+
+ +

CLI Interface

+

+ Simple command-line interface for easy integration +

+
+
+
+ + {/* Examples Section */} +
+
+

Examples

+ +
+ + +

+ # Basic usage - process all Go files in current directory +

+

+ filefusion --pattern "*.go" --output result.xml . +

+
+
+ + + +

+ # Multiple patterns and exclusions +

+

+ filefusion --pattern "*.go,*.json" --exclude "vendor/**,*.test.go" --output api.json ./api +

+
+
+ + + +

+ # Size limits and YAML output +

+

+ filefusion --max-file-size 5MB --max-output-size 20MB --output docs.yaml ./docs +

+
+
+ + + +

+ # Process multiple directories +

+

+ filefusion --pattern "*.go" ./cmd ./internal ./pkg +

+
+
+
+
+
+ + {/* Footer */} + +
+ ); +}; + +export default HomePage; \ No newline at end of file