site_name: Changemaker Lite
site_description: Build Power. Not Rent It. Own your digital infrastructure.
site_url: https://cmlite.org
site_author: Bunker Operations
docs_dir: docs
site_dir: site
use_directory_urls: true

# Repository
repo_url: https://gitea.bnkops.com/admin/changemaker.lite
repo_name: changemaker.lite
edit_uri: src/branch/main/mkdocs/docs

# Theme
theme:
  name: material
  custom_dir: docs/overrides
  logo: assets/logo.png  # Commented out until logo exists
  favicon: assets/favicon.png  # Commented out until favicon exists
  palette:
    - scheme: slate
      primary: deep purple
      accent: amber
      toggle:
        icon: material/weather-night
        name: Switch to light mode
    - scheme: default
      primary: deep purple
      accent: amber
      toggle:
        icon: material/weather-sunny
        name: Switch to dark mode
  font:
    text: Inter
    code: JetBrains Mono
  features:
    - announce.dismiss
    - content.action.edit
    - content.action.view
    - content.code.annotate
    - content.code.copy
    - content.tooltips
    - navigation.expand
    - navigation.footer
    - navigation.indexes
    # - navigation.instant
    # - navigation.instant.prefetch
    # - navigation.instant.progress
    - navigation.path
    - navigation.prune
    - navigation.sections
    - navigation.tabs
    - navigation.tabs.sticky
    - navigation.top
    - navigation.tracking
    - search.highlight
    - search.share
    - search.suggest
    - toc.follow

# Plugins
plugins:
  - search:
      separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
  - social:
      cards_layout_options:
        background_color: "#5BCEFA"
        color: "#FFFFFF"
  - blog:
      blog_dir: blog
      post_date_format: medium
      archive_name: Archive
      categories_name: Categories
  - tags

# Extra CSS and JS
extra_css:
  - stylesheets/extra.css
  - stylesheets/home.css

extra_javascript:
  - javascripts/home.js
  - javascripts/github-widget.js
  - javascripts/gitea-widget.js

hooks: 
  - docs/hooks/repo_widget_hook.py

# Markdown Extensions
markdown_extensions:
  - abbr
  - admonition
  - attr_list
  - def_list
  - footnotes
  - md_in_html
  - toc:
      permalink: true
      title: On this page
  - pymdownx.arithmatex:
      generic: true
  - pymdownx.betterem:
      smart_enable: all
  - pymdownx.caret
  - pymdownx.details
  - pymdownx.emoji:
      emoji_index: !!python/name:material.extensions.emoji.twemoji
      emoji_generator: !!python/name:material.extensions.emoji.to_svg
  - pymdownx.highlight:
      anchor_linenums: true
      line_spans: __span
      pygments_lang_class: true
  - pymdownx.inlinehilite
  - pymdownx.keys
  - pymdownx.mark
  - pymdownx.smartsymbols
  - pymdownx.snippets
  - pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:pymdownx.superfences.fence_code_format
  - pymdownx.tabbed:
      alternate_style: true
      combine_header_slug: true
  - pymdownx.tasklist:
      custom_checkbox: true
  - pymdownx.tilde

# Extra configuration
extra:
  generator: false
  social:
    - icon: fontawesome/brands/github
      link: https://gitea.bnkops.com/admin
      name: Gitea Repository
    - icon: fontawesome/solid/paper-plane
      link: https://listmonk.bnkops.com/subscription/form
      name: Newsletter

# Copyright
copyright: >
  Copyright &copy; 2024 The Bunker Operations –
  <a href="#__consent">Change cookie settings</a>

# Navigation - Updated to match existing files
nav:
  - Home: index.md
  - Philosophy:
      - phil/index.md
      - Who Reads Your Secrets: https://docs.bnkops.com/archive/repo.archive/thatreallyblondehuman/Thoughts%20%F0%9F%A4%94/If%20you%20do%20politics%20who%20is%20reading%20your%20secrets%20-%20why%20you%20should%20de-corp%20your%20software%20stack/
      - How To Not Get Got Making Content: https://docs.bnkops.com/archive/repo.archive/thatreallyblondehuman/Thoughts%20%F0%9F%A4%94/How%20not%20to%20get%20got%20making%20content%20v2/
      - Digital Organizing: https://docs.bnkops.com/archive/repo.archive/thatreallyblondehuman/Thoughts%20%F0%9F%A4%94/Distributed%20Digital%20Organizing%20is%20The%20Way%20Out/
      - What is Security Culture: https://docs.bnkops.com/archive/repo.archive/Zines%20We%20Like%20%F0%9F%98%8E/What%20Is%20Security%20Culture%20%E2%98%A0/#what-is-security-culture
      - Cost Comparison: phil/cost-comparison.md
  - Getting Started: 
    - build/index.md
    - Build Server: build/server.md
    - Build Map: build/map.md
    - Build Influence: build/influence.md
    - Build Site: build/site.md
    - Services:
        - services/index.md
        - Homepage: services/homepage.md
        - Code Server: services/code-server.md
        - MKDocs: services/mkdocs.md
        - Static Server: services/static-server.md
        - Listmonk: services/listmonk.md
        - PostgreSQL: services/postgresql.md
        - n8n: services/n8n.md
        - NocoDB: services/nocodb.md
        - Gitea: services/gitea.md
        - Map: services/map.md
        - Mini QR: services/mini-qr.md
    - Configuration:
        - config/index.md
        - Cloudflare: config/cloudflare-config.md
        - MKdocs: config/mkdocs.md
        - Code Server: config/coder.md
        - Map: config/map.md
    - Manuals: 
        - manual/index.md
        - Map: manual/map.md
    - Advanced Configuration: 
        - adv/index.md
        - SSH + Tailscale + Ansible: adv/ansible.md
        - SSH + VScode: adv/vscode-ssh.md
  - Blog:
      - blog/index.md
