Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
codesue committed May 30, 2023
0 parents commit 2a1fae9
Show file tree
Hide file tree
Showing 15 changed files with 1,630 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Builds and deploys docs to GitHub Pages
name: Publish Docs

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued. However, do NOT cancel in-progress runs in order
# to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

env:
source-dir: examples/mkdocs # The directory containing the MkDocs configuration file
output-dir: site # The directory containing the generated site

jobs:
# Build docs with MkDocs
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Pages
uses: actions/configure-pages@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade mkdocs-walt
- name: Build with MkDocs
working-directory: ${{ env.source-dir }}
run: mkdocs build -d ${{ env.output-dir }} --verbose --clean --strict
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{ env.source-dir }}/${{ env.output-dir }}

# Deployment to GitHub Pages
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# MacOS
**/.DS_Store

# IDEs
.idea/*
.vscode/*

# Virtual environments
.venv/*
env/*
**/env
**/venv

# pyenv
.python-version

# Jupyter Notebook
.ipynb_checkpoints

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# mkdocs documentation
**/site/

# Sphinx documentation
docs/_build/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Byte-compiled / optimized / DLL files
__pycache__/
**/*.py[cod]
**/*$py.class

# C extensions
**/*.so
Loading

0 comments on commit 2a1fae9

Please sign in to comment.