From 005d6f27232f690e2185808b8bf45d18561f56e3 Mon Sep 17 00:00:00 2001 From: Zeheng Li Date: Thu, 25 Apr 2024 16:32:33 -0600 Subject: [PATCH] clean up --- .github/workflows/gh-deploy.yml | 15 +++++++++++++++ .github/workflows/pcu.yml | 13 +++++++++++++ mkdocs.yml | 6 ++++++ requirements-dev.txt | 6 +----- requirements-docs.txt | 5 +++++ 5 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/gh-deploy.yml create mode 100644 .github/workflows/pcu.yml create mode 100644 requirements-docs.txt diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml new file mode 100644 index 0000000..9fbe767 --- /dev/null +++ b/.github/workflows/gh-deploy.yml @@ -0,0 +1,15 @@ +name: GitHub Pages +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + - run: pip install -r requirements-docs.txt + - run: mkdocs gh-deploy --force diff --git a/.github/workflows/pcu.yml b/.github/workflows/pcu.yml new file mode 100644 index 0000000..665f991 --- /dev/null +++ b/.github/workflows/pcu.yml @@ -0,0 +1,13 @@ +name: pcu +on: + push: + branches: [main] + schedule: + - cron: "0 12 * * 1" +jobs: + refreshDeps: + runs-on: ubuntu-latest + steps: + - uses: zehengl/refresh-python-dependency@main + with: + path: requirements-dev.txt diff --git a/mkdocs.yml b/mkdocs.yml index 371311d..bf7acc1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -46,3 +46,9 @@ markdown_extensions: - md_in_html extra_css: - css/neoteroi-mkdocs.css +extra: + social: + - icon: fontawesome/brands/github + link: https://github.com/zehengl + - icon: fontawesome/brands/linkedin + link: https://linkedin.com/in/zehengl diff --git a/requirements-dev.txt b/requirements-dev.txt index ca25228..10c474e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,8 +1,4 @@ -r requirements.txt +-r requirements-docs.txt jupyterlab==4.1.6 -mkdocs-glightbox==0.3.7 -mkdocs-material==9.5.19 -mkdocs-minify-plugin==0.8.0 -mkdocs==1.6.0 -neoteroi-mkdocs==1.0.5 pip-check-updates==0.27.0 diff --git a/requirements-docs.txt b/requirements-docs.txt new file mode 100644 index 0000000..29c1340 --- /dev/null +++ b/requirements-docs.txt @@ -0,0 +1,5 @@ +mkdocs-glightbox==0.3.7 +mkdocs-material==9.5.19 +mkdocs-minify-plugin==0.8.0 +mkdocs==1.6.0 +neoteroi-mkdocs==1.0.5