Skip to content

Commit

Permalink
Merge pull request #542 from LandonTClipp/docs
Browse files Browse the repository at this point in the history
Add scaffolding for mkdocs
  • Loading branch information
LandonTClipp committed Feb 10, 2023
2 parents 91fc584 + 4b5d37f commit 632f81c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
46 changes: 13 additions & 33 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,21 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

name: static pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
branches:
- master
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

contents: write
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mockery.prof
dist
.idea
docs/ve
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs-material
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
site_name: mockery
theme:
name: material


0 comments on commit 632f81c

Please sign in to comment.