From 7b6dd3fa4dd2ad86ff68d63661d6221a39757b67 Mon Sep 17 00:00:00 2001 From: stefan123t Date: Tue, 12 Dec 2023 00:21:44 +0100 Subject: [PATCH] update build-docs.yml --- .github/workflows/build-docs.yaml | 12 ++++++------ .github/workflows/build-mkdocs.yaml | 2 +- .github/workflows/main.yml | 15 +++++++++++++++ mkdocs.yml | 20 ++++++++++---------- 4 files changed, 32 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index e6ffcf8..9cca798 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -37,12 +37,12 @@ jobs: git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - - name: Generate Parameter Page - run: | - cd param-docs - python generate-template-param-doc-pages.py # Creates a templated page for each parameter which does not yet have a page - tree parameter-pages - python concat-parameter-pages.py +# - name: Generate Parameter Page +# run: | +# cd param-docs +# python generate-template-param-doc-pages.py # Creates a templated page for each parameter which does not yet have a page +# tree parameter-pages +# python concat-parameter-pages.py - name: Store Documentation in the gh-pages branch so it gets pushed to the website run: mkdocs gh-deploy diff --git a/.github/workflows/build-mkdocs.yaml b/.github/workflows/build-mkdocs.yaml index fe52d12..be5be1f 100644 --- a/.github/workflows/build-mkdocs.yaml +++ b/.github/workflows/build-mkdocs.yaml @@ -10,7 +10,7 @@ name: Build Documentation on: push: branches: - - main + - main jobs: build-documentation: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8eddf1e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: build +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - run: pip install mkdocs + - run: mkdocs gh-deploy --force --clean --verbose diff --git a/mkdocs.yml b/mkdocs.yml index d3088ff..1ac7f5f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -33,14 +33,14 @@ markdown_extensions: - def_list #- mermaid2 -- minify: - minify_html: true - minify_js: true - minify_css: true - htmlmin_opts: - remove_comments: true - js_files: - - assets/js/main.js - css_files: - - assets/css/style.css +#- minify: +# minify_html: true +# minify_js: true +# minify_css: true +# htmlmin_opts: +# remove_comments: true +# js_files: +# - assets/js/main.js +# css_files: +# - assets/css/style.css