Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 8,891 Bytes
61d29fc 6dcf9fc 61d29fc 896453f 61d29fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Open Navigator',
tagline: 'The open path to everything local',
favicon: 'img/favicon.ico',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://www.communityone.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
// For HuggingFace Spaces, docs are served from /docs/ subdirectory
baseUrl: process.env.DOCUSAURUS_BASE_URL || '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'getcommunityone', // Usually your GitHub org/user name.
projectName: 'open-navigator', // Usually your repo name.
onBrokenLinks: 'warn',
// Custom fields to make environment variables available in client-side code
customFields: {
appUrl: process.env.APP_URL || (process.env.NODE_ENV === 'development' ? 'http://localhost:5173' : 'https://www.communityone.com'),
},
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: {
// If baseUrl already includes /docs/, serve at root. Otherwise add /docs/.
// Production (HF): baseUrl=/docs/ + routeBasePath=/ = /docs/intro ✓
// Development: baseUrl=/ + routeBasePath=docs = /docs/intro ✓
routeBasePath: process.env.DOCUSAURUS_BASE_URL ? '/' : 'docs',
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/getcommunityone/open-navigator-for-engagement/tree/main/website/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/getcommunityone/open-navigator-for-engagement/tree/main/website/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
// Google Analytics for tracking and SEO
gtag: {
trackingID: 'G-5EQV815915',
anonymizeIP: true,
},
// Sitemap configuration for better SEO
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
} satisfies Preset.Options,
],
],
themes: ['@docusaurus/theme-mermaid'],
markdown: {
mermaid: true,
},
themeConfig: {
// SEO metadata
metadata: [
{name: 'keywords', content: 'civic engagement, policy tracking, meeting minutes, nonprofit tracking, municipal government, advocacy, open data, local government'},
{name: 'description', content: 'Open Navigator - Track 90,000+ jurisdictions, 1.8M nonprofits, and analyze meeting minutes with AI. The open path to everything local.'},
{property: 'og:type', content: 'website'},
{property: 'og:site_name', content: 'Open Navigator'},
{name: 'twitter:card', content: 'summary_large_image'},
],
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 4, // Show h2-h4 headings for better navigation
},
mermaid: {
theme: { light: 'default', dark: 'dark' },
options: {
fontSize: 18,
fontFamily: 'ui-sans-serif, system-ui, sans-serif',
entityPadding: 20,
minEntityHeight: 120,
minEntityWidth: 180,
},
},
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'Open Navigator Home',
logo: {
alt: 'CommunityOne Logo',
src: 'img/communityone_logo.svg',
href: process.env.APP_URL || (process.env.NODE_ENV === 'development' ? 'http://localhost:5173' : 'https://www.communityone.com'),
target: '_self',
},
items: [
{
type: 'docSidebar',
sidebarId: 'gettingStartedSidebar',
position: 'left',
label: 'Getting Started',
},
{
type: 'docSidebar',
sidebarId: 'familiesSidebar',
position: 'left',
label: 'Families & Individuals',
},
{
type: 'docSidebar',
sidebarId: 'policyMakersSidebar',
position: 'left',
label: 'Policy Makers',
},
{
type: 'docSidebar',
sidebarId: 'developersSidebar',
position: 'left',
label: 'Developers',
},
{
to: 'docs/data-sources/citations',
label: 'Data and Terms',
position: 'left',
},
{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/getcommunityone/open-navigator-for-engagement',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Getting Started',
to: 'docs/intro',
},
{
label: 'Citations & Data Sources',
to: 'docs/data-sources/citations',
},
{
label: 'Data Sources',
to: 'docs/data-sources/overview',
},
{
label: 'For Developers',
to: 'docs/for-developers',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Launch Open Navigator',
href: process.env.APP_URL || (process.env.NODE_ENV === 'development' ? 'http://localhost:5173' : 'https://www.communityone.com'),
},
{
label: 'GitHub',
href: 'https://github.com/getcommunityone/open-navigator-for-engagement',
},
{
label: 'GroundVue (Partner)',
href: 'https://www.groundvue.org/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Instagram',
href: 'https://www.instagram.com/getcommunityone/',
},
{
label: 'Facebook',
href: 'https://www.facebook.com/getcommunityone',
},
{
label: 'X (Twitter)',
href: 'https://x.com/getcommunityone/',
},
{
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/getcommunityone',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/@getcommunityone',
},
{
label: 'Discord',
href: 'https://discord.gg/uH6Dytek',
},
],
},
{
title: 'Legal',
items: [
{
label: 'Privacy Policy',
to: 'docs/legal/privacy-policy',
},
{
label: 'Terms of Service',
to: 'docs/legal/terms-of-service',
},
{
label: 'Data Provider Terms',
to: 'docs/legal/data-provider-terms',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'License (MIT)',
href: 'https://github.com/getcommunityone/open-navigator-for-engagement/blob/main/LICENSE',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Community One. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;
|