diff --git a/.vitepress/config.mts b/.vitepress/config.mts index dad9c7d..1e6b217 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -1,84 +1,89 @@ -import { defineConfig } from 'vitepress' +import { defineConfig } from "vitepress"; // https://vitepress.dev/reference/site-config export default defineConfig({ title: "Protomaps Docs", + head: [["link", { rel: "icon", type: "image/png", href: "/favicon.png" }]], description: "Technical Documentation for Protomaps", cleanUrls: true, themeConfig: { - logo: '/logo.svg', + logo: "/logo.svg", // https://vitepress.dev/reference/default-theme-config nav: [ - { text: 'Guides', link: '/' }, - { text: 'protomaps.com', link: 'https://protomaps.com' }, - { text: 'Sponsor on GitHub', link: 'https://github.com/sponsors/protomaps' } + { text: "Guides", link: "/" }, + { text: "protomaps.com", link: "https://protomaps.com" }, + { + text: "Sponsor on GitHub", + link: "https://github.com/sponsors/protomaps", + }, ], sidebar: [ { - text: 'Introduction', + text: "Introduction", collapsed: true, items: [ - { text: 'What is Protomaps?', link: '/' }, - { text: 'Getting Started', link: '/guide/getting-started' } - ] + { text: "What is Protomaps?", link: "/" }, + { text: "Getting Started", link: "/guide/getting-started" }, + ], }, { - text: 'PMTiles', + text: "PMTiles", collapsed: true, items: [ - { text: 'Concepts', link: '/pmtiles/' }, - { text: 'Creating PMTiles', link: '/pmtiles/create' }, - { text: 'Cloud Storage', link: '/pmtiles/cloud-storage' }, - { text: 'pmtiles CLI', link: '/pmtiles/cli' } - ] + { text: "Concepts", link: "/pmtiles/" }, + { text: "Creating PMTiles", link: "/pmtiles/create" }, + { text: "Cloud Storage", link: "/pmtiles/cloud-storage" }, + { text: "pmtiles CLI", link: "/pmtiles/cli" }, + ], }, { - text: 'PMTiles in the browser', + text: "PMTiles in the browser", collapsed: true, items: [ - { text: 'MapLibre GL', link: '/pmtiles/maplibre' }, - { text: 'Leaflet', link: '/pmtiles/leaflet' }, - { text: 'OpenLayers', link: '/pmtiles/openlayers' }, - ] + { text: "MapLibre GL", link: "/pmtiles/maplibre" }, + { text: "Leaflet", link: "/pmtiles/leaflet" }, + { text: "OpenLayers", link: "/pmtiles/openlayers" }, + ], }, { - text: 'Accelerating PMTiles', + text: "Accelerating PMTiles", collapsed: true, items: [ - { text: 'Overview', link: '/deploy/' }, - { text: 'Cost Calculator', link: '/deploy/cost' }, - { text: 'AWS', link: '/deploy/aws' }, - { text: 'Cloudflare', link: '/deploy/cloudflare' }, - { text: 'Server (Caddy)', link: '/deploy/server' } - ] + { text: "Overview", link: "/deploy/" }, + { text: "Cost Calculator", link: "/deploy/cost" }, + { text: "AWS", link: "/deploy/aws" }, + { text: "Cloudflare", link: "/deploy/cloudflare" }, + { text: "Server (Caddy)", link: "/deploy/server" }, + ], }, { - text: 'OSM Basemaps', + text: "OSM Basemaps", collapsed: true, items: [ - { text: 'Downloads', link: '/basemaps/downloads' }, - { text: 'Basemap Layers', link: '/basemaps/layers' }, - { text: 'Basemap Styles', link: '/basemaps/styles' }, - { text: 'MapLibre GL', link: '/basemaps/maplibre' }, - { text: 'Leaflet', link: '/basemaps/leaflet' }, - { text: 'OpenLayers', link: '/basemaps/openlayers' } - ] - } + { text: "Downloads", link: "/basemaps/downloads" }, + { text: "Basemap Layers", link: "/basemaps/layers" }, + { text: "Basemap Styles", link: "/basemaps/styles" }, + { text: "MapLibre GL", link: "/basemaps/maplibre" }, + { text: "Leaflet", link: "/basemaps/leaflet" }, + { text: "OpenLayers", link: "/basemaps/openlayers" }, + ], + }, ], socialLinks: [ - { icon: 'github', link: 'https://github.com/protomaps' }, - { icon: 'mastodon', link: 'https://mapstodon.space/@protomaps' }, - { icon: 'twitter', link: 'https://twitter.com/protomaps' }, + { icon: "github", link: "https://github.com/protomaps" }, + { icon: "mastodon", link: "https://mapstodon.space/@protomaps" }, + { icon: "twitter", link: "https://twitter.com/protomaps" }, ], search: { - provider: 'local' + provider: "local", }, footer: { - message: 'An open source mapping system released under the BSD and ODbL licenses.', - copyright: '© 2019-present Protomaps LLC' - } - } -}) + message: + "An open source mapping system released under the BSD and ODbL licenses.", + copyright: "© 2019-present Protomaps LLC", + }, + }, +}); diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000..ae05d54 Binary files /dev/null and b/public/favicon.png differ