Skip to content

Commit

Permalink
docs(project-docs): set up mkdocs, github actions and doc rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVonNeumann committed Dec 15, 2024
1 parent ecadee6 commit e2412c7
Show file tree
Hide file tree
Showing 32 changed files with 477 additions and 855 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Publish documentation

on:
workflow_dispatch: # Allow manual triggers
push:
tags-ignore:
- '**' # Ignore any tags here
branches:
- master
#
# Trigger when either files in the docs folder,
# the requirements.txt file or the mkdocs.yml file
# are edited and commited.
paths:
- 'docs/**'
- 'requirements.txt'
- 'mkdocs.yml'

# These permissions are required for it to work
permissions:
contents: read
pages: write
id-token: write

# Makes sure only one workflow runs at a time.
concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
buildAndDeploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.pages_url }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python 3.x
uses: actions/setup-python@v4
with:
python_version: '3.x' # Uses latest 3.x version.
- name: Install dependencies
# Alternatively: pip install mkdocs
run: pip install mkdocs mkdocs-material
- name: Build Docs
run: mkdocs build
- name: Configure GitHub Pages
# I have no idea if this actually needed...
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'site/' # MkDocs builds to site/ by default
- name: Deploy to GitHub Pages
id: deployment # This is required for environment
uses: actions/deploy-pages@v2
32 changes: 0 additions & 32 deletions .readthedocs.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

File renamed without changes.
8 changes: 8 additions & 0 deletions docs/developer_contribution_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Developer Contribution Guide

Use commitizen for commit messages:
https://commitizen.github.io/cz-cli/

Use Conventional Commits for commit messages:
https://www.conventionalcommits.org/en/v1.0.0/

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e2412c7

Please sign in to comment.