Skip to content

DIRACGrid/mkdocs-diracx-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MkDocs DiracX Plugin

An MkDocs plugin that aggregates documentation from multiple DiracX ecosystem repositories into a unified documentation site.

Installation

pip install git+https://github.com/DIRACGrid/mkdocs-diracx-plugin.git

Usage

Add the plugin to your mkdocs.yml configuration:

plugins:
  - diracx:
      repos:
        - url: https://github.com/DIRACGrid/diracx-charts
          branch: master
          include:
            - docs
            - diracx
        - url: https://github.com/DIRACGrid/diracx-web
          branch: main
          include:
            - docs

Configuration

Repository Options

  • url: Repository URL (remote) or local filesystem path
  • branch: Git branch to checkout (ignored for local paths)
  • include: List of directories/files to include from the repository

Example Configurations

Remote repositories:

plugins:
  - diracx:
      repos:
        - url: https://github.com/DIRACGrid/diracx-charts
          branch: master
          include: [docs, diracx]

Local repositories:

plugins:
  - diracx:
      repos:
        - url: /path/to/local/repo
          include: [docs]

How It Works

  1. Creates a temporary directory during the build process
  2. Copies the main documentation repository
  3. For each configured repository:
    • Remote: Clones and uses git sparse-checkout for efficiency
    • Local: Copies specified directories directly
  4. Merges all documentation into a single site structure
  5. Supports live reload during mkdocs serve

About

Plugin to build the diracx documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages