site_name: Scrapling
site_description: Scrapling - Easy, effortless Web Scraping as it should be!
site_author: Karim Shoair
repo_url: https://github.com/D4Vinci/Scrapling
site_url: https://scrapling.readthedocs.io/en/latest/
repo_name: D4Vinci/Scrapling
copyright: Copyright &copy; 2025 Karim Shoair - <a href="#__consent">Change cookie settings</a>

theme:
  name: material
  language: en
  logo: assets/logo.png
  favicon: assets/favicon.ico
  palette:
    scheme: slate
    primary: black
    accent: deep purple
  font:
    text: Open Sans
    code: JetBrains Mono
  icon:
    repo: fontawesome/brands/github-alt
  features:
    - announce.dismiss
    - navigation.top
    - navigation.footer
    - navigation.instant
    - navigation.indexes
    - navigation.sections
    - navigation.tracking
    - navigation.instant
    - navigation.instant.progress
#    - navigation.tabs
#    - navigation.expand
#    - toc.integrate
    - search.share
    - search.suggest
    - search.highlight
    - content.tabs.link
    - content.width.full
    - content.action.view
    - content.action.edit
    - content.code.copy
    - content.code.annotate
    - content.code.annotation

nav:
  - Introduction: index.md
  - Overview: overview.md
  - What's New in v0.3: 'https://github.com/D4Vinci/Scrapling/releases/tag/v0.3'
  - Performance Benchmarks: benchmarks.md
  - User Guide:
    - Parsing:
      - Querying elements: parsing/selection.md
      - Main classes: parsing/main_classes.md
      - Adaptive scraping: parsing/adaptive.md
    - Fetching:
      - Fetchers basics: fetching/choosing.md
      - HTTP requests: fetching/static.md
      - Dynamic websites: fetching/dynamic.md
      - Dynamic websites with hard protections: fetching/stealthy.md
    - Command Line Interface:
      - Overview: cli/overview.md
      - Interactive shell: cli/interactive-shell.md
      - Extract commands: cli/extract-commands.md
    - Integrations:
      - AI MCP server: ai/mcp-server.md
  - Tutorials:
    - A Free Alternative to AI for Robust Web Scraping: tutorials/replacing_ai.md
    - Migrating from BeautifulSoup: tutorials/migrating_from_beautifulsoup.md
    - Using Scrapeless browser: tutorials/external.md
#    - Migrating from AutoScraper: tutorials/migrating_from_autoscraper.md
  - Development:
    - API Reference:
      - Selector: api-reference/selector.md
      - Fetchers: api-reference/fetchers.md
      - MCP Server: api-reference/mcp-server.md
      - Custom Types: api-reference/custom-types.md
    - Writing your retrieval system: development/adaptive_storage_system.md
    - Using Scrapling's custom types: development/scrapling_custom_types.md
  - Support and Advertisement: donate.md
  - Contributing: 'https://github.com/D4Vinci/Scrapling/blob/main/CONTRIBUTING.md'
  - Changelog: 'https://github.com/D4Vinci/Scrapling/releases'

markdown_extensions:
  - admonition
  - abbr
#  - mkautodoc
  - pymdownx.emoji
  - pymdownx.details
  - pymdownx.superfences
  - pymdownx.highlight:
      anchor_linenums: true
  - pymdownx.inlinehilite
  - pymdownx.snippets
  - pymdownx.tabbed:
      alternate_style: true
  - tables
  - codehilite:
      css_class: highlight
  - toc:
      permalink: true

plugins:
  - search
#  - social:
#      cards_layout_options:
#        background_color: "#1f1f1f"
#        font_family: Roboto
  - mkdocstrings:
      handlers:
        python:
          paths: [scrapling]
          options:
            docstring_style: sphinx
            show_source: true
            show_root_heading: true
            show_if_no_docstring: true
            inherited_members: true
            members_order: source
            separate_signature: true
            unwrap_annotated: true
            filters:
              - '!^_'
            merge_init_into_class: true
            docstring_section_style: spacy
            signature_crossrefs: true
            show_symbol_type_heading: true
            show_symbol_type_toc: true

extra:
  homepage: https://scrapling.readthedocs.io/en/latest/
  social:
    - icon: fontawesome/brands/github
      link: https://github.com/D4Vinci/Scrapling
    - icon: fontawesome/brands/python
      link: https://pypi.org/project/scrapling/
    - icon: fontawesome/brands/x-twitter
      link: https://x.com/Scrapling_dev
    - icon: fontawesome/brands/discord
      link: https://discord.gg/EMgGbDceNQ
  analytics:
    provider: google
    property: G-CS3DKLY73Z
    feedback:
      title: Was this page helpful?
      ratings:
        - icon: material/emoticon-happy-outline
          name: This page was helpful
          data: 1
          note: >-
            Thanks for your feedback!
        - icon: material/emoticon-sad-outline
          name: This page could be improved
          data: 0
          note: >-
            Thanks for your feedback!
  consent:
    title: Cookie consent
    description: >-
      We use cookies to recognize your repeated visits and preferences, as well
      as to measure the effectiveness of our documentation and whether users
      find what they're searching for. With your consent, you're helping us to
      make our documentation better.

extra_css:
  - stylesheets/extra.css