diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy-documentation.yml new file mode 100644 index 0000000..95da6dc --- /dev/null +++ b/.github/workflows/deploy-documentation.yml @@ -0,0 +1,27 @@ +name: deploy-documentation + +on: [push, pull_request, workflow_dispatch] + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install dependencies + run: | + pip install sphinx sphinx_rtd_theme myst_parser + - name: Sphinx build + run: | + sphinx-build docs/source docs/_build + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/cma/feat-deploy-documentation' }} + with: + publish_branch: gh-pages + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: _build/ + force_orphan: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index ac228f0..d2a6fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # IDE .idea/ +.vscode/ # Documentation build/ diff --git a/doc/Makefile b/docs/Makefile similarity index 100% rename from doc/Makefile rename to docs/Makefile diff --git a/doc/source/Project/benchmark.rst b/docs/source/Project/benchmark.rst similarity index 100% rename from doc/source/Project/benchmark.rst rename to docs/source/Project/benchmark.rst diff --git a/doc/source/Project/index.rst b/docs/source/Project/index.rst similarity index 100% rename from doc/source/Project/index.rst rename to docs/source/Project/index.rst diff --git a/doc/source/client_mobile/index.rst b/docs/source/client_mobile/index.rst similarity index 100% rename from doc/source/client_mobile/index.rst rename to docs/source/client_mobile/index.rst diff --git a/doc/source/client_mobile/installation.rst b/docs/source/client_mobile/installation.rst similarity index 100% rename from doc/source/client_mobile/installation.rst rename to docs/source/client_mobile/installation.rst diff --git a/doc/source/client_web/context.rst b/docs/source/client_web/context.rst similarity index 100% rename from doc/source/client_web/context.rst rename to docs/source/client_web/context.rst diff --git a/doc/source/client_web/index.rst b/docs/source/client_web/index.rst similarity index 100% rename from doc/source/client_web/index.rst rename to docs/source/client_web/index.rst diff --git a/doc/source/client_web/installation.rst b/docs/source/client_web/installation.rst similarity index 100% rename from doc/source/client_web/installation.rst rename to docs/source/client_web/installation.rst diff --git a/doc/source/conf.py b/docs/source/conf.py similarity index 100% rename from doc/source/conf.py rename to docs/source/conf.py diff --git a/doc/source/contributing.rst b/docs/source/contributing.rst similarity index 100% rename from doc/source/contributing.rst rename to docs/source/contributing.rst diff --git a/doc/source/index.rst b/docs/source/index.rst similarity index 100% rename from doc/source/index.rst rename to docs/source/index.rst diff --git a/doc/source/server/index.rst b/docs/source/server/index.rst similarity index 100% rename from doc/source/server/index.rst rename to docs/source/server/index.rst diff --git a/doc/source/server/installation.rst b/docs/source/server/installation.rst similarity index 100% rename from doc/source/server/installation.rst rename to docs/source/server/installation.rst