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