Skip to content

Commit 834aa39

Browse files
Merge pull request #109 from CCBR/docs-update
use mkdocs + mike for docs website
2 parents 4582d82 + cd50b66 commit 834aa39

File tree

5 files changed

+73
-22
lines changed

5 files changed

+73
-22
lines changed

.github/workflows/docs-mkdocs.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docs
2+
# this workflow requires:
3+
# - an mkdocs config file (`mkdocs.yml`)
4+
# - website dependencies in `docs/requirements.txt`
5+
on:
6+
workflow_dispatch:
7+
release:
8+
types:
9+
- published
10+
push:
11+
branches:
12+
- main
13+
paths:
14+
- "docs/**"
15+
- "**.md"
16+
- .github/workflows/docs-mkdocs.yml
17+
- mkdocs.yml
18+
19+
jobs:
20+
mkdocs:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- uses: CCBR/actions/[email protected]
27+
with:
28+
github-token: ${{ github.token }}

.github/workflows/docs.yml

-20
This file was deleted.

.github/workflows/draft-release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: draft-release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version-tag:
7+
description: |
8+
Semantic version tag for next release.
9+
If not provided, it will be determined based on conventional commit history.
10+
Example: v2.5.11
11+
required: false
12+
type: string
13+
default: ""
14+
15+
jobs:
16+
draft-release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # required to include tags
22+
- uses: CCBR/actions/[email protected]
23+
with:
24+
github-token: ${{ github.token }}
25+
version-tag: ${{ github.event.inputs.version-tag }}

.github/workflows/post-release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: post-release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
cleanup:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- uses: CCBR/actions/[email protected]
16+
with:
17+
github-token: ${{ github.token }}

mkdocs.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ site_author: Vishal Koparde, Ph.D.
44
# Repository
55
repo_name: CCBR/spacesavers2
66
repo_url: https://github.com/CCBR/spacesavers2
7+
edit_uri: https://github.com/CCBR/spacesavers2/edit/main/
78

89
# Copyright
910
copyright: Copyright © 2023 CCBR
@@ -76,8 +77,8 @@ markdown_extensions:
7677
- pymdownx.critic
7778
- pymdownx.details
7879
- pymdownx.emoji:
79-
emoji_index: !!python/name:material.extensions.emoji.twemoji
80-
emoji_generator: !!python/name:material.extensions.emoji.to_svg
80+
emoji_index: !!python/name:materialx.emoji.twemoji
81+
emoji_generator: !!python/name:materialx.emoji.to_svg
8182
- pymdownx.highlight
8283
- pymdownx.inlinehilite
8384
- pymdownx.keys

0 commit comments

Comments
 (0)