Skip to content

Commit

Permalink
Merge pull request CCBR#109 from CCBR/docs-update
Browse files Browse the repository at this point in the history
use mkdocs + mike for docs website
  • Loading branch information
kelly-sovacool authored Oct 1, 2024
2 parents 4582d82 + cd50b66 commit 834aa39
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 22 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docs-mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: docs
# this workflow requires:
# - an mkdocs config file (`mkdocs.yml`)
# - website dependencies in `docs/requirements.txt`
on:
workflow_dispatch:
release:
types:
- published
push:
branches:
- main
paths:
- "docs/**"
- "**.md"
- .github/workflows/docs-mkdocs.yml
- mkdocs.yml

jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: CCBR/actions/[email protected]
with:
github-token: ${{ github.token }}
20 changes: 0 additions & 20 deletions .github/workflows/docs.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: draft-release

on:
workflow_dispatch:
inputs:
version-tag:
description: |
Semantic version tag for next release.
If not provided, it will be determined based on conventional commit history.
Example: v2.5.11
required: false
type: string
default: ""

jobs:
draft-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required to include tags
- uses: CCBR/actions/[email protected]
with:
github-token: ${{ github.token }}
version-tag: ${{ github.event.inputs.version-tag }}
17 changes: 17 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: post-release

on:
release:
types:
- published

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: CCBR/actions/[email protected]
with:
github-token: ${{ github.token }}
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ site_author: Vishal Koparde, Ph.D.
# Repository
repo_name: CCBR/spacesavers2
repo_url: https://github.com/CCBR/spacesavers2
edit_uri: https://github.com/CCBR/spacesavers2/edit/main/

# Copyright
copyright: Copyright © 2023 CCBR
Expand Down Expand Up @@ -76,8 +77,8 @@ markdown_extensions:
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.keys
Expand Down

0 comments on commit 834aa39

Please sign in to comment.