"""H5P repository mirror and index.

Clones the upstream H5P content-type repositories from GitHub into
a Bitbucket workspace so the pipeline is not at the mercy of GitHub
availability, and builds ``repository-index.json`` keyed by H5P
machine name.

Module-level constants:

``CACHE_DIR``
    Local directory holding bare clones of each mirrored repo.

``INDEX``
    Path to the repository index JSON file.

``MIRROR_BASE_URL`` / ``MIRROR_BITBUCKET_PROJECT``
    Bitbucket remote settings for pushed mirrors.

The submodules :mod:`~...repository.mirror` and
:mod:`~...repository.index` carry the actual operations.
"""
from pathlib import Path

CACHE_DIR = Path("data") / "mirrors"
INDEX = Path("data") / "repository-index.json"
MIRROR_BASE_URL = "git@bitbucket.org:byteb4rb1e"
MIRROR_BITBUCKET_PROJECT = "H5PMIR"

