Skip to content

Commit

Permalink
docs: set up pipeline (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsmrynk authored Apr 30, 2024
1 parent 5aa5c0b commit 4d30cd5
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and deploy docs

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Configure Git credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Set cache id
run: |
echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Cache dependencies
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install mkdocs-material
- name: Build and deploy docs
run: |
mkdocs gh-deploy -f dev/mkdocs.yaml --force
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

[![CI](https://img.shields.io/github/actions/workflow/status/mrsmrynk/aviary/ci.yaml?branch=main&color=black&label=CI&logo=GitHub)](https://github.com/mrsmrynk/aviary/actions/workflows/ci.yaml)
[![Coverage](https://img.shields.io/codecov/c/github/mrsmrynk/aviary/main?color=black&label=Coverage&logo=codecov&logoColor=white)](https://app.codecov.io/gh/mrsmrynk/aviary)
[![Docs](https://img.shields.io/github/actions/workflow/status/mrsmrynk/aviary/docs.yaml?branch=main&color=black&label=Docs&logo=materialformkdocs&logoColor=white)](https://mrsmrynk.github.io/aviary)

</div>
14 changes: 14 additions & 0 deletions dev/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
site_name: aviary
docs_dir: ../docs
theme:
name: material
language: en
features:
- navigation.instant
extra:
generator: false
social:
- icon: fontawesome/brands/github
link: https://github.com/geospaitial-lab
copyright:
© 2024 geospaitial lab
1 change: 1 addition & 0 deletions dev/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-r ../requirements.txt

mkdocs-material==9.5.20
pip-audit==2.7.2
pre-commit==3.7.0
pytest==8.2.0
Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Lorem Ipsum

Lorem Ipsum

0 comments on commit 4d30cd5

Please sign in to comment.