# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: LeafWiki
spec:
    description: |
        LeafWiki is a self-hosted documentation app for people who think in folders, not feeds. A single Go binary that stores Markdown files on disk with SQLite for search and metadata. Lightweight, fast, and mobile-friendly with built-in full-text search and live preview editor.
    coverImage: https://avatars.githubusercontent.com/u/193648660
    icon: https://avatars.githubusercontent.com/u/193648660
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access LeafWiki
    tags:
        - Tool
        - Productivity
    readme: |
        # LeafWiki

        A self-hosted documentation app built as a single Go binary. Store notes and documentation as Markdown files organized in folders, with SQLite powering the search.

        ## What You Can Do After Deployment

        1. **Visit your domain** — LeafWiki is ready immediately, no setup required
        2. **Create pages** — write documentation in Markdown with live preview
        3. **Organize in folders** — structure your content in a familiar folder hierarchy
        4. **Search** — full-text search across all your pages powered by SQLite
        5. **Edit anywhere** — mobile-friendly interface works on all devices

        ## Key Features

        - Single Go binary deployment
        - Markdown files stored on disk
        - SQLite for search and metadata
        - Built-in editor with live preview
        - Full-text search
        - Folder-based organization
        - Mobile-friendly interface
        - No external database required

        ## License

        MIT — [GitHub](https://github.com/perber/leafwiki)
    services:
        - name: leafwiki
          icon: https://avatars.githubusercontent.com/u/193648660
          template: PREBUILT_V2
          spec:
            source:
                image: ghcr.io/perber/leafwiki:v0.8.4
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/data
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            LeafWiki es una aplicacion de documentacion autoalojada para quienes piensan en carpetas. Un unico binario Go que almacena archivos Markdown en disco con SQLite para busqueda y metadatos. Ligera, rapida y compatible con moviles, con busqueda de texto completo y editor con vista previa en vivo.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a LeafWiki
        readme: |
            # LeafWiki

            Aplicacion de documentacion autoalojada como unico binario Go. Almacena notas y documentacion como archivos Markdown en carpetas, con SQLite para la busqueda.

            ## Que puedes hacer despues del despliegue

            1. **Visita tu dominio** — LeafWiki esta listo, sin configuracion necesaria
            2. **Crea paginas** — escribe documentacion en Markdown con vista previa en vivo
            3. **Organiza en carpetas** — estructura tu contenido en jerarquia de carpetas
            4. **Busca** — busqueda de texto completo con SQLite
            5. **Edita en cualquier lugar** — interfaz compatible con moviles

            ## Licencia

            MIT — [GitHub](https://github.com/perber/leafwiki)
    id-ID:
        description: |
            LeafWiki adalah aplikasi dokumentasi self-hosted untuk orang yang berpikir dalam folder. Satu binary Go yang menyimpan file Markdown di disk dengan SQLite untuk pencarian dan metadata. Ringan, cepat, dan ramah mobile dengan pencarian teks lengkap dan editor pratinjau langsung.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses LeafWiki
        readme: |
            # LeafWiki

            Aplikasi dokumentasi self-hosted sebagai satu binary Go. Simpan catatan dan dokumentasi sebagai file Markdown dalam folder, dengan SQLite untuk pencarian.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — LeafWiki langsung siap, tanpa pengaturan
            2. **Buat halaman** — tulis dokumentasi dalam Markdown dengan pratinjau langsung
            3. **Organisasi dalam folder** — struktur konten dalam hierarki folder
            4. **Cari** — pencarian teks lengkap dengan SQLite
            5. **Edit di mana saja** — antarmuka ramah mobile

            ## Lisensi

            MIT — [GitHub](https://github.com/perber/leafwiki)
    ja-JP:
        description: |
            LeafWiki はフォルダで考える人のためのセルフホスト型ドキュメントアプリです。単一の Go バイナリで、Markdown ファイルをディスクに保存し、SQLite で検索とメタデータを管理。軽量・高速・モバイル対応で、全文検索とライブプレビューを内蔵。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: LeafWiki にアクセスするためのドメイン
        readme: |
            # LeafWiki

            セルフホスト型ドキュメントアプリ。単一 Go バイナリ。Markdown ファイルでノートやドキュメントを保存、フォルダ構造で整理、SQLite で検索。

            ## デプロイ後にできること

            1. **ドメインにアクセス** — セットアップ不要ですぐに使えます
            2. **ページを作成** — Markdown で記述、ライブプレビュー対応
            3. **フォルダで整理** — おなじみのフォルダ階層でコンテンツを構造化
            4. **検索** — SQLite による全文検索
            5. **どこでも編集** — モバイル対応のインターフェース

            ## ライセンス

            MIT — [GitHub](https://github.com/perber/leafwiki)
    ko-KR:
        description: |
            LeafWiki는 폴더로 생각하는 사람을 위한 셀프 호스팅 문서 앱입니다. 단일 Go 바이너리로 Markdown 파일을 디스크에 저장하고 SQLite로 검색과 메타데이터를 관리합니다. 가볍고 빠르며 모바일 친화적이며 전문 검색과 라이브 프리뷰를 내장합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: LeafWiki에 접속할 도메인
        readme: |
            # LeafWiki

            셀프 호스팅 문서 앱. 단일 Go 바이너리. Markdown 파일로 노트와 문서를 저장, 폴더 구조로 정리, SQLite로 검색.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 설정 없이 바로 사용 가능
            2. **페이지 작성** — Markdown으로 작성, 실시간 미리보기
            3. **폴더로 정리** — 익숙한 폴더 계층 구조로 콘텐츠 구성
            4. **검색** — SQLite 기반 전문 검색
            5. **어디서나 편집** — 모바일 친화적 인터페이스

            ## 라이선스

            MIT — [GitHub](https://github.com/perber/leafwiki)
    th-TH:
        description: |
            LeafWiki เป็นแอปเอกสารแบบ self-hosted สำหรับคนที่คิดเป็นโฟลเดอร์ Go binary เดียวที่เก็บไฟล์ Markdown บนดิสก์ ใช้ SQLite สำหรับค้นหาและเมตาดาต้า เบา เร็ว รองรับมือถือ พร้อมค้นหาแบบเต็มและตัวแก้ไขแบบพรีวิวสด
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง LeafWiki
        readme: |
            # LeafWiki

            แอปเอกสารแบบ self-hosted เป็น Go binary เดียว เก็บบันทึกและเอกสารเป็นไฟล์ Markdown ในโฟลเดอร์ ใช้ SQLite สำหรับค้นหา

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            1. **เข้าสู่โดเมน** — LeafWiki พร้อมใช้ทันที ไม่ต้องตั้งค่า
            2. **สร้างหน้า** — เขียนเอกสารด้วย Markdown พร้อมพรีวิวสด
            3. **จัดระเบียบในโฟลเดอร์** — จัดโครงสร้างเนื้อหาในลำดับชั้นโฟลเดอร์
            4. **ค้นหา** — ค้นหาข้อความเต็มด้วย SQLite
            5. **แก้ไขได้ทุกที่** — อินเทอร์เฟซรองรับมือถือ

            ## สัญญาอนุญาต

            MIT — [GitHub](https://github.com/perber/leafwiki)
    zh-CN:
        description: |
            LeafWiki 是自托管的文档管理应用，适合习惯用文件夹思考的人。单一 Go 可执行文件，以 Markdown 文件存储文档，SQLite 提供搜索和元数据。轻量、快速、支持移动设备，内置全文搜索和实时预览编辑器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 LeafWiki 的域名
        readme: |
            # LeafWiki

            自托管的文档管理应用，单一 Go 可执行文件。以 Markdown 文件存储笔记和文档，文件夹结构整理，SQLite 驱动搜索。

            ## 部署后可以做什么

            1. **打开域名** — LeafWiki 立即可用，无需设置
            2. **创建页面** — 使用 Markdown 编写文档，支持实时预览
            3. **文件夹整理** — 以熟悉的文件夹层次结构组织内容
            4. **搜索** — SQLite 驱动的全文搜索
            5. **随处编辑** — 移动设备友好界面

            ## 授权

            MIT — [GitHub](https://github.com/perber/leafwiki)
    zh-TW:
        description: |
            LeafWiki 是自架的文件管理應用程式，適合習慣用資料夾思考的人。單一 Go 執行檔，以 Markdown 檔案存儲文件，SQLite 提供搜尋和中繼資料。輕量、快速、支援行動裝置，內建全文搜尋和即時預覽編輯器。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 LeafWiki 的網域
        readme: |
            # LeafWiki

            自架的文件管理應用程式，單一 Go 執行檔。以 Markdown 檔案儲存筆記和文件，資料夾結構整理，SQLite 驅動搜尋。

            ## 部署後可以做什麼

            1. **開啟網域** — LeafWiki 立即可用，無需設定
            2. **建立頁面** — 使用 Markdown 撰寫文件，支援即時預覽
            3. **資料夾整理** — 以熟悉的資料夾階層結構組織內容
            4. **搜尋** — SQLite 驅動的全文搜尋
            5. **隨處編輯** — 行動裝置友善介面

            ## 授權

            MIT — [GitHub](https://github.com/perber/leafwiki)
