From d9dbef8055f3f0346f995677fa5efa5bd44e69bd Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Mon, 6 Apr 2026 22:21:24 +0800 Subject: [PATCH 1/2] docs: add GitLab CI integration --- .gitlab-ci.yml | 18 ++++++++++++++++++ docs/index.rst | 24 +++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ee55d3d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +image: python:3.12 + +stages: + - docs + +cache: + key: sphinxnotes-incrbuild + paths: + - /tmp/sphinxnotes-incrbuild + +pages: + stage: docs + script: + - pip install sphinxnotes-incrbuild + - sphinxnotes-incrbuild docs public + artifacts: + paths: + - public diff --git a/docs/index.rst b/docs/index.rst index 4cca956..329b6f6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -105,7 +105,29 @@ __ https://github.com/marketplace/actions/sphinx-to-github-pages GitLab CI --------- -TODO +``sphinxnotes-incrbuild`` can be used in GitLab CI with the cache mechanism: + +.. code-block:: yaml + :emphasize-lines: 4-5,10 + + image: python:3.12 + + stages: + - docs + + cache: + key: sphinxnotes-incrbuild + paths: + - /tmp/sphinxnotes-incrbuild + + pages: + stage: docs + script: + - pip install sphinxnotes-incrbuild + - sphinxnotes-incrbuild docs public + artifacts: + paths: + - public Contents ======== From 7a556e5a706f352bf529fabacb83fd29e7998e44 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Mon, 11 May 2026 12:26:46 +0800 Subject: [PATCH 2/2] chore: Ignore .worktrees Co-authored-by: MiniMax Model --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 52736b3..709f68e 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,5 @@ poetry.lock docs/_build/ # sphinxnotes-any >= 2.5 docs/.any* + +.worktrees/