### 
# Related docs: https://py-pdf.github.io/fpdf2/Development.html#documentation
#
# material theme docs: https://squidfunk.github.io/mkdocs-material/
### 
site_name: fpdf2
site_url: https://py-pdf.github.io/fpdf2/
site_author: Lucas Cimon et al
site_description: fpdf2 - minimalist PDF creation library for Python

repo_url: https://github.com/py-pdf/fpdf2
repo_name: py-pdf/fpdf2

docs_dir: docs/
site_dir: public/
use_directory_urls: false
edit_uri: edit/master/docs

theme:
  name: material
  custom_dir: docs/overrides/
  features:
    - navigation.top
    - toc.follow
  palette:
    # Palette toggle for dark mode
    - media: "(prefers-color-scheme: dark)"
      scheme: slate
      toggle:
        icon: material/brightness-4
        name: Switch to light mode
    # Palette toggle for light mode
    - media: "(prefers-color-scheme: light)"
      scheme: default
      toggle:
        icon: material/brightness-7
        name: Switch to dark mode

markdown_extensions:
  - admonition
    # Related theme doc: https://squidfunk.github.io/mkdocs-material/reference/admonitions/
  - md_in_html
  - pymdownx.critic
  - pymdownx.emoji:
      emoji_index: !!python/name:material.extensions.emoji.twemoji
      emoji_generator: !!python/name:material.extensions.emoji.to_svg
  - pymdownx.highlight
  - pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:pymdownx.superfences.fence_code_format
  - toc:
      permalink: true

plugins:
  - search
  - include-markdown
  - mknotebooks
  - minify:
      minify_html: true
      htmlmin_opts:
        remove_comments: true
  - privacy
  - redirects:
      redirect_maps:
        'CombineWithChartingLibs.md': 'Maths.md'
        'CombineWithMistletoeoToUseMarkdown.md': 'CombineWithMarkdown.md'
  - check_toc
  #- git-committers:
  #    repository: py-pdf/fpdf2
  #    branch: master
  - git-revision-date-localized
  - with-pdf:  # https://github.com/orzih/mkdocs-with-pdf
      output_path: fpdf2-manual.pdf
      cover_title: fpdf2 manual
      cover_subtitle: A minimalist PDF creation library for Python
      author: ' '
      copyright: ' '
      exclude_pages:
        - 'Tutorial-bn'
        - 'Tutorial-de'
        - 'Tutorial-es'
        - 'Tutorial-fr'
        - 'Tutorial-gr'
        - 'Tutorial-he'
        - 'Tutorial-hi'
        - 'Tutorial-id'
        - 'Tutorial-it'
        - 'Tutorial-ja'
        - 'Tutorial-km'
        - 'Tutorial-nl'
        - 'Tutorial-pl'
        - 'Tutorial-pt'
        - 'Tutorial-ru'
        - 'Tutorial-tr'
        - 'Tutorial-zh'
        - 'Tutorial-sl'
      #cover: false
      #back_cover: true
      #custom_template_path: TEMPLATES PATH
      #toc_title: TOC TITLE TEXT
      #heading_shift: false
      #toc_level: 3
      #ordered_chapter_level: 2
      #excludes_children:
      #    - 'release-notes/:upgrading'
      #convert_iframe:
      #    - src: IFRAME SRC
      #      img: POSTER IMAGE URL
      #      text: ALTERNATE TEXT
      #two_columns_level: 3
      #render_js: true
      #headless_chrome_path: headless-chromium
      #enabled_if_env: ENABLE_PDF_EXPORT
      #debug_html: true
      #show_anchors: true
      #verbose: true

hooks:
  - docs/overrides/.hooks/log_manager.py

nav:
- 'Project Home':                     'index.md'
- 'Tutorial':
  - 'Jupyter notebook':               'notebook.ipynb'
  - 'Tutorial in English':            'Tutorial.md'
  - 'বাংলা':                           'Tutorial-bn.md'
  - 'Tutorial auf Deutsch':           'Tutorial-de.md'
  - 'Tutorial en español':            'Tutorial-es.md'
  - 'Tutorial en français':           'Tutorial-fr.md'
  - 'Φροντιστήριο στα ελληνικά':      'Tutorial-gr.md'
  - 'מדריך בעברית':                   'Tutorial-he.md'
  - 'हिंदी में ट्यूटोरियल':                 'Tutorial-hi.md'
  - 'Panduan dalam Bahasa Indonesia': 'Tutorial-id.md'
  - 'Tutorial in italiano':           'Tutorial-it.md'
  - '日本語チュートリアル':                 'Tutorial-ja.md'
  - 'ភាសខ្មែរ':                         'Tutorial-km.md'
  - 'Handleiding in Dutch':           'Tutorial-nl.md'
  - 'Poradnik w języku polskim':      'Tutorial-pl.md'
  - 'Tutorial em português':          'Tutorial-pt.md'
  - 'Учебник на русском языке':       'Tutorial-ru.md'
  - 'Türkçe Kılavuz':                 'Tutorial-tr.md'
  - '简体中文教程':                     'Tutorial-zh.md'
  - 'Vodnik po uporabi knjižnice':    'Tutorial-sl.md'
- 'Page Layout':
  - 'Page Format and Orientation':    'PageFormatAndOrientation.md'
  - 'Margins':                        'Margins.md'
  - 'Templates':                      'Templates.md'
  - 'Text Flow Regions':
      - 'Basics':                     'TextRegion.md'
      - 'Text Columns':               'TextColumns.md'
  - 'Tables':                         'Tables.md'
- 'Text Content':
  - 'Adding Text':                    'Text.md'
  - 'Line breaks':                    'LineBreaks.md'
  - 'Page breaks':                    'PageBreaks.md'
  - 'Text styling':                   'TextStyling.md'
  - 'Fonts and Unicode':              'Unicode.md'
  - 'Text Shaping':                   'TextShaping.md'
  - 'Emojis, Symbols & Dingbats':     'EmojisSymbolsDingbats.md'
  - 'HTML':                           'HTML.md'
- 'Graphics Content':
  - 'Images':                         'Images.md'
  - 'Shapes':                         'Shapes.md'
  - 'Transformations':                'Transformations.md'
  - 'Transparency':                   'Transparency.md'
  - 'Patterns':                       'Patterns.md'
  - 'Barcodes':                       'Barcodes.md'
  - 'Drawing':                        'Drawing.md'
  - 'SVG':                            'SVG.md'
  - 'Charts & Graphs':                'Maths.md'
- 'PDF Features':
  - 'Links':                          'Links.md'
  - 'Metadata':                       'Metadata.md'
  - 'Annotations':                    'Annotations.md'
  - 'Presentation Mode':              'Presentations.md'
  - 'Document outline & table of contents': 'DocumentOutlineAndTableOfContents.md'
  - 'Page Labels':                    'PageLabels.md'
  - 'Encryption':                     'Encryption.md'
  - 'Signing':                        'Signing.md'
  - 'File attachments':               'FileAttachments.md'
- 'Mixing other libs':
  - 'Combine with pypdf':             'CombineWithPypdf.md'
  - 'Combine with Markdown':          'CombineWithMarkdown.md'
  - 'Combine with livereload':        'CombineWithLivereload.md'
  - 'Combine with borb':              'CombineWithBorb.md'
  - 'Combine with pdfrw':             'CombineWithPdfrw.md'
  - 'Matplotlib, Pandas, Plotly, Pygal': 'CombineWithChartingLibs.md'
  - 'Usage in web APIs':              'UsageInWebAPI.md'
  - 'Rendering spreadsheets as PDF tables': 'RenderingSpreadsheetsAsPDFTables.md'
  - 'Templating with Jinja':          'TemplatingWithJinja.md'
  - 'Combine with Rough.js':          'CombineWithRoughJS.md'
- 'Development':
  - 'Development guidelines':         'Development.md'
  - 'Logging':                        'Logging.md'
  - 'fpdf2 internals':                'Internals.md'
- 'API':                              'https://py-pdf.github.io/fpdf2/fpdf/'
- 'Changelog':                        'https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md'
- 'History':                          'History.md'

extra:
  social:
    - icon: fontawesome/brands/github
      link: https://github.com/py-pdf/fpdf2
    - icon: fontawesome/brands/python
      link: https://pypi.org/project/fpdf2/
