From 93183b96a1982d1a81254f923d6f1e6f7d558108 Mon Sep 17 00:00:00 2001 From: levisingularity Date: Tue, 13 Aug 2024 15:14:41 -0300 Subject: [PATCH] test --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ docs/404.html | 8 ++++++++ mkdocs.yml | 11 +++++------ 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 docs/404.html diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e2f2380b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Test + +on: + push: + branches: fix/404-docs + +jobs: + publish: + environment: prod + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ^3.10 + + - name: Install Poetry + run: | + pip install poetry + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + + - name: Update Documentation + run: | + poetry lock --no-update + poetry export --with doc -f requirements.txt | pip install -r /dev/stdin + mkdocs gh-deploy --force diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 00000000..eab4817c --- /dev/null +++ b/docs/404.html @@ -0,0 +1,8 @@ +{% extends "main.html" %} + + + +{% block content %} + +

404 - Not found

+{% endblock %} diff --git a/mkdocs.yml b/mkdocs.yml index 2b251b05..8ceacb6c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,17 +2,17 @@ site_name: Distributed Atomspace repo_url: https://github.com/singnet/das-query-engine repo_name: singnet/das-query-engine edit_uri: tree/master/docs - -validation: - links: - absolute_links: relative_to_docs +custom_dir: overrides theme: name: material font: text: Roboto code: Roboto Mono - + +static_templates: + - 404.html + watch: - hyperon_das @@ -28,4 +28,3 @@ plugins: options: show_source: false - search - \ No newline at end of file