Skip to content

Colota - Android GPS Location tracker

4.5 KB
Raw Blame
import { themes as prismThemes } from "prism-react-renderer"
import type { Config } from "@docusaurus/types"
import type * as Preset from "@docusaurus/preset-classic"
const config: Config = {
  title: "Colota",
  tagline: "Self-hosted GPS tracking for Android",
  favicon: "img/favicon.png",

  future: {
    v4: true
  },

  url: "https://colota.app",
  baseUrl: "/",

  organizationName: "dietrichmax",
  projectName: "colota",

  onBrokenLinks: "throw",

  headTags: [
    {
      tagName: "link",
      attributes: {
        rel: "alternate",
        type: "application/rss+xml",
        title: "Colota Releases",
        href: "https://colota.app/releases.xml"
      }
    }
  ],

  staticDirectories: ["static", "../../packages/shared"],

  i18n: {
    defaultLocale: "en",
    locales: ["en"]
  },

  presets: [
    [
      "classic",
      {
        docs: {
          sidebarPath: "./sidebars.ts",
          editUrl: "https://github.com/dietrichmax/colota/tree/main/apps/docs/"
        },
        blog: false,
        theme: {
          customCss: "./src/css/custom.css"
        }
      } satisfies Preset.Options
    ]
  ],

  plugins: [
    [
      "@docusaurus/plugin-client-redirects",
      {
        redirects: [
          { from: "/docs/guides/app-shortcuts", to: "/docs/guides/automation" },
          { from: "/docs/configuration/gps-settings", to: "/docs/configuration/tracking-settings" },
          // Short, shareable install URL. The docs page is the single source for install channels.
          { from: "/download", to: "/docs/getting-started/installation" }
        ]
      }
    ]
  ],

  themeConfig: {
    colorMode: {
      respectPrefersColorScheme: true
    },
    navbar: {
      title: "Colota",
      logo: {
        alt: "Colota",
        src: "img/app-icon.png"
      },
      items: [
        {
          type: "docSidebar",
          sidebarId: "docsSidebar",
          position: "left",
          label: "Docs"
        },
        {
          to: "/releases",
          label: "Releases",
          position: "left"
        },
        {
          to: "/privacy-policy",
          label: "Privacy Policy",
          position: "left"
        },
        {
          href: "https://github.com/dietrichmax/colota",
          label: "GitHub",
          position: "right"
        }
      ]
    },
    footer: {
      style: "dark",
      links: [
        {
          title: "Download",
          items: [
            {
              label: "Google Play",
              href: "https://play.google.com/store/apps/details?id=com.Colota&hl=en-US"
            },
            {
              label: "F-Droid",
              href: "https://f-droid.org/packages/com.Colota/"
            },
            {
              label: "IzzyOnDroid",
              href: "https://apt.izzysoft.de/packages/com.Colota/"
            }
          ]
        },
        {
          title: "Docs",
          items: [
            {
              label: "Getting Started",
              to: "/docs/getting-started/installation"
            },
            {
              label: "Configuration",
              to: "/docs/configuration/sync-presets"
            },
            {
              label: "Integrations",
              to: "/docs/integrations/api-templates"
            },
            {
              label: "Guides",
              to: "/docs/guides/geofencing"
            }
          ]
        },
        {
          title: "Project",
          items: [
            {
              label: "GitHub",
              href: "https://github.com/dietrichmax/colota"
            },
            {
              label: "Issues",
              href: "https://github.com/dietrichmax/colota/issues"
            },
            {
              label: "Discussions",
              href: "https://github.com/dietrichmax/colota/discussions"
            },
            {
              label: "GitHub Releases",
              href: "https://github.com/dietrichmax/colota/releases"
            }
          ]
        },
        {
          title: "Support",
          items: [
            {
              label: "Donate",
              href: "https://mxd.codes/support"
            }
          ]
        }
      ],
      copyright: `Copyright © ${new Date().getFullYear()} <a href="https://mxd.codes">Max Dietrich</a> and contributors. Licensed under AGPL-3.0. <a href="/privacy-policy">Privacy Policy</a>`
    },
    prism: {
      theme: prismThemes.github,
      darkTheme: prismThemes.dracula,
      additionalLanguages: ["bash", "json"]
    }
  } satisfies Preset.ThemeConfig
}

export default config