From 032b6ce4a1877b89e210e037b8135c3796ffedff Mon Sep 17 00:00:00 2001 From: CXM <16154023+littlecxm@users.noreply.github.com> Date: Tue, 29 Mar 2022 20:37:23 +0800 Subject: [PATCH] fix: fix bugs (#197) * ci: fix typo * chore: remove old files * chore: update readme * chore: fix typo --- .../DOCUMENT_TEMPLATE.md | 0 .github/workflows/recreate_on_push.yaml | 45 ++++--- README.md | 94 ++++++-------- readthedocs_custom/armbian-navbar.html | 11 -- readthedocs_custom/base.html | 119 ------------------ tools/mkArmbianDocs.py | 13 +- 6 files changed, 68 insertions(+), 214 deletions(-) rename templates/Example_Documentation-template.md => .github/DOCUMENT_TEMPLATE.md (100%) delete mode 100644 readthedocs_custom/armbian-navbar.html delete mode 100644 readthedocs_custom/base.html diff --git a/templates/Example_Documentation-template.md b/.github/DOCUMENT_TEMPLATE.md similarity index 100% rename from templates/Example_Documentation-template.md rename to .github/DOCUMENT_TEMPLATE.md diff --git a/.github/workflows/recreate_on_push.yaml b/.github/workflows/recreate_on_push.yaml index ee646313..5189b5e5 100644 --- a/.github/workflows/recreate_on_push.yaml +++ b/.github/workflows/recreate_on_push.yaml @@ -5,40 +5,39 @@ name: Create offline documentation on: push: - branches: [ master ] + branches: [master] workflow_dispatch: jobs: build: - runs-on: ubuntu-latest strategy: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel - pip -r requirements.txt - - name: Run mkdocs --clean - run: | - mkdocs build --clean - - - name: Upload pdf - uses: actions/upload-artifact@v2 - with: - name: artifact - path: site/pdf/document.pdf - + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + pip install -r requirements.txt + - name: Run mkdocs --clean + run: | + mkdocs build --clean + + - name: Upload pdf + uses: actions/upload-artifact@v2 + with: + name: artifact + path: site/pdf/document.pdf + Deploy: - needs: [ build ] + needs: [build] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index e57a6c59..e80f373c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ [](https://github.com/armbian/documentation/actions/workflows/recreate_on_push.yaml) +
+
+
+
+