Skip to content

Commit 0a8793d

Browse files
authored
Add edit and view links, add last modified date (#1)
1 parent a29ef65 commit 0a8793d

4 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.12"
16+
- name: Install dependencies
17+
run: |
18+
pip install -r requirements.txt
19+
- name: Build site
20+
run: |
21+
mkdocs build

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
deploy-pages:
9-
name: Deploy to pages
9+
name: Pages
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2

mkdocs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repo_url: https://github.com/kangasta/cicd-examples
66
copyright: Copyright © 2020 Toni Kangas
77

88
docs_dir: examples/
9+
edit_uri: edit/main/examples/
910

1011
nav:
1112
- Home: index.md
@@ -42,10 +43,18 @@ theme:
4243
favicon: favicon.png
4344
language: en
4445
features:
46+
- content.action.edit
47+
- content.action.view
4548
- navigation.instant
4649
- navigation.sections
50+
4751
plugins:
4852
- search
53+
- git-committers:
54+
repository: kangasta/cicd-examples
55+
branch: main
56+
- git-revision-date-localized:
57+
enable_creation_date: true
4958

5059
markdown_extensions:
5160
- pymdownx.highlight:

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Dependencies for auto-generating and developing docs
22
mkdocs~=1.5
33
mkdocs-material~=9.5
4+
mkdocs-git-revision-date-localized-plugin~=1.2
5+
mkdocs-git-committers-plugin-2~=2.4

0 commit comments

Comments
 (0)