site_name: Little X Little for Developers
site_url: https://developers.littlexlittle.org/
site_description: Sign in with Little X Little — OpenID Connect identity platform for NGO sites and partners.
site_author: Little X Little
copyright: © 2026 Little X Little. Docs licensed under CC BY 4.0.

repo_name: littlexlittle/developers-docs
repo_url: https://github.com/littlexlittle/developers-docs
edit_uri: edit/main/docs/

theme:
  name: material
  language: en
  logo: assets/logo.svg
  favicon: assets/favicon.ico
  font:
    text: Inter
    code: JetBrains Mono
  palette:
    - media: "(prefers-color-scheme: light)"
      scheme: default
      primary: deep purple
      accent: amber
      toggle:
        icon: material/weather-night
        name: Switch to dark mode
    - media: "(prefers-color-scheme: dark)"
      scheme: slate
      primary: deep purple
      accent: amber
      toggle:
        icon: material/weather-sunny
        name: Switch to light mode
  features:
    - navigation.tabs
    - navigation.tabs.sticky
    - navigation.sections
    - navigation.expand
    - navigation.indexes
    - navigation.top
    - navigation.tracking
    - search.suggest
    - search.highlight
    - search.share
    - content.code.copy
    - content.code.annotate
    - content.tabs.link
    - content.action.edit
    - toc.follow
  icon:
    repo: fontawesome/brands/github

extra:
  social:
    - icon: fontawesome/brands/github
      link: https://github.com/littlexlittle
    - icon: fontawesome/brands/x-twitter
      link: https://x.com/littlexlittle
  status:
    new: New in this release
    deprecated: Deprecated, removal planned
  version:
    provider: mike
    default: stable
  analytics:
    provider: google
    property: !ENV [GOOGLE_ANALYTICS_KEY, '']
  generator: false

extra_css:
  - assets/extra.css

markdown_extensions:
  - abbr
  - admonition
  - attr_list
  - def_list
  - footnotes
  - md_in_html
  - tables
  - toc:
      permalink: true
      toc_depth: 3
  - pymdownx.betterem
  - pymdownx.caret
  - pymdownx.details
  # `:material-*:`, `:fontawesome-*:`, `:octicons-*:` shortcodes are rendered
  # as inline SVGs by Material for MkDocs only when the emoji extension is
  # wired up to Material's twemoji index + to_svg generator. Without these
  # two settings, pymdownx.emoji only handles plain Unicode emoji and any
  # `:material-foo:` will pass through as literal text.
  # Reference: https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/#with-an-icon
  - 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
  - pymdownx.tasklist:
      custom_checkbox: true
  - pymdownx.tilde

plugins:
  - search:
      separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
  - tags
  - minify:
      minify_html: true
      minify_js: true
      minify_css: true

nav:
  - Home: index.md
  - Quickstarts:
      - quickstarts/index.md
      - HTML only (1 line): quickstarts/html.md
      - JavaScript SDK: quickstarts/js-sdk.md
      - PHP SDK: quickstarts/php-sdk.md
      - OAuth from scratch: quickstarts/oauth-from-scratch.md
      - Mobile (preview): quickstarts/mobile.md
  - Guides:
      - guides/index.md
      - One-Tap prompt: guides/one-tap.md
      - Silent sign-in: guides/silent-signin.md
      - Account linking: guides/account-linking.md
      - Webhooks: guides/webhooks.md
      - Migrating from Sign in with Google: guides/migrate-from-google.md
      - Refresh tokens & rotation: guides/refresh-tokens.md
      - Logout (RP-initiated): guides/logout.md
      - PKCE explained: guides/pkce.md
  - Reference:
      - reference/index.md
      - Endpoints: reference/endpoints.md
      - Scopes: reference/scopes.md
      - Claims: reference/claims.md
      - Error codes: reference/errors.md
      - Rate limits: reference/rate-limits.md
      - Discovery & JWKS: reference/discovery.md
      - Webhook events: reference/webhook-events.md
  - Branding: branding.md
  - Sandbox: sandbox.md
  - Changelog: changelog.md
  - Status: https://status.littlexlittle.org
