From fa6c6c882dc3c2842cbc209c029a3e3c31fe2ef7 Mon Sep 17 00:00:00 2001 From: Vignesh Vaidyanathan <62492557+VigneshVSV@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:30:54 +0100 Subject: [PATCH] submodule prevent recursion --- .github/workflows/ci.yaml | 3 ++- .gitmodules | 1 + README.md | 14 +++++++++++--- docs/introduction/installation.md | 11 ++++++++--- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f09de3e..7de78fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,8 +29,9 @@ jobs: submodules: false # Don't recurse as hololinked references this docs repo back as a submodule, + # --checkout is needed as the submodule is set to update = none in .gitmodules - name: Check out the repo submodule - run: git submodule update --init --depth 1 repo/hololinked + run: git submodule update --init --checkout --depth 1 repo/hololinked - name: Install cosign if: github.event_name != 'pull_request' diff --git a/.gitmodules b/.gitmodules index f9d0aba..b7dc47a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "hololinked"] path = repo/hololinked url = https://github.com/hololinked-dev/hololinked.git + update = none diff --git a/README.md b/README.md index dae8f27..b1ba5a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ # hololinked docs -Documentation in material mkdocs for [hololinked](https://github.com/hololinked-dev/hololinked). +Documentation in zensical for [hololinked](https://github.com/hololinked-dev/hololinked). + +The build installs hololinked from the `repo/hololinked` submodule. It is not checked out by default, not even with `--recurse-submodules`, because hololinked refers back to this repository as a submodule. Check it out explicitly: + +```bash +git clone https://github.com/hololinked-dev/docs.git +cd docs +git submodule update --init --checkout repo/hololinked +``` To build the documentation, while setting up a local development environment with `uv` (`pip install uv`), run: @@ -8,13 +16,13 @@ To build the documentation, while setting up a local development environment wit uv venv source .venv/bin/activate # or venv\Scripts\activate on Windows uv sync --no-install-project -mkdocs build +zensical build ``` or ```bash -mkdocs serve +zensical serve ``` ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hololinked-dev/docs/ci.yaml?label=Build%20And%20Publish%20Website) diff --git a/docs/introduction/installation.md b/docs/introduction/installation.md index 4fbada0..b433e37 100644 --- a/docs/introduction/installation.md +++ b/docs/introduction/installation.md @@ -16,8 +16,7 @@ conda install -c conda-forge hololinked One may also clone it from github & install directly (in develop mode): ```sh -git clone --no-recurse-submodules https://github.com/hololinked-dev/hololinked.git -# the submodules can be quite hefty and are not necessary +git clone https://github.com/hololinked-dev/hololinked.git cd hololinked pip install -e . ``` @@ -25,10 +24,16 @@ pip install -e . With `uv`: ```sh -git clone --no-recurse-submodules https://github.com/hololinked-dev/hololinked.git +git clone https://github.com/hololinked-dev/hololinked.git cd hololinked uv venv source .venv/bin/activate # for Linux/Mac .venv\Scripts\activate # for Windows uv sync ``` + +The `docs` submodule is not needed to install or develop hololinked, and is not checked out by default. To check it out: + +```sh +git submodule update --init --checkout docs +```