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/ 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 ========