# Project information
site_name: Git training
site_author: Jacques Dainat
site_url: 'https://e-cop.pages.ird.fr/isi-formation-git/'
site_description: Git training
site_dir: public # When you build your site, all of the files are written to the directory assigned to the site_dir configuration option (defaults to "site")

# Repository
repo_name: 'isi-git'
repo_url: 'https://forge.ird.fr/e-cop/isi-formation-git'
edit_uri: edit/main/docs/ # Allow to replace edit/master/docs use by default

# Configuration
theme:
  name: material
  logo: pages/images/IRD.png # logo top left page
  search_index_only: true
  include_search_page: true
  features:
    - announce.dismiss
    - content.action.edit
    - content.action.view
    - content.code.annotate
    - content.code.copy
  # - content.tabs.link
    - content.tooltips
    - header.autohide
    # - navigation.expand
    - navigation.footer
    - navigation.indexes
    # - navigation.instant
    # - navigation.prune
    # - navigation.sections # collapse subsections
    - navigation.tabs
    # - navigation.tabs.sticky
    - navigation.top
    - navigation.tracking
    - search.highlight
    - search.share
    - search.suggest
    - toc.follow
    - toc.integrate # remove table of content on the right side
  palette:
    - scheme: default
      primary: indigo
      accent: indigo
      toggle:
        icon: material/brightness-7
        name: Switch to dark mode
    - scheme: slate
      primary: indigo
      accent: indigo
      toggle:
        icon: material/brightness-4
        name: Switch to light mode

# Extensions
markdown_extensions:
  - admonition
  - pymdownx.details
  - pymdownx.superfences
  - pymdownx.tabbed
  - pymdownx.snippets:
     base_path: docs
  - attr_list
  - tables
  - toc:
      permalink: '#'

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

# Customization
extra:
#  homepage:  # Page displayed when clicking the logo
  history_buttons: false
  # --- set whole scope variables ---
  contact: jacques.dainat@ird.fr
  institute: IRD
  unit: ISI
  color_table_header: "#333a99"

# page tree
nav:
    - Home: index.md
    - About this course: pages/about.md
    - Git tutorial:       
        - Introduction: pages/git/git-1-introduction.md
        - Setup: pages/git/git-setup.md
        - Creating a git repository: pages/git/git-2-creating-repositories.md
        - Committing changes: pages/git/git-3-committing-changes.md
        - Undoing and recovering: pages/git/git-undoing-and-recovering.md
        - Ignoring files: pages/git/git-4-ignoring-files.md
        - Branching and merging: pages/git/git-5-branches.md
        - Tagging commits: pages/git/git-6-tags.md
        - Working remotly: pages/git/git-7-working-remotely.md
        - Conflict: pages/git/git-8-conflicts.md
        - La forge IRD: pages/git/git-forge.md
        - Graphical Interface:
            - RStudio: pages/git/git-9-rstudio.md
            - VScode: pages/git/git-9-vscode.md
            - Exercices: pages/git/git-9-exercices.md
        - Wrap-up: 
            - License: pages/git/license.md
        - Extra material: pages/git/git-9-extra-material.md
    - Cheat sheet:
        - Git Cheat sheet: pages/cheat_sheet/git/git.md
        - Git cheat-sheet official: pages/cheat_sheet/git/git_official.md
        - Bash Cheat sheet: pages/cheat_sheet/bash/bash.md
        - Interesting ressources: pages/cheat_sheet/interesting_ressources.md
