Skip to content

Commit 5603214

Browse files
authored
clean up the mkdocs config (#1)
* clean up mkdocs configuration * update the tds docs workflow to generate tds docs and a link on the PR
1 parent 7fd6f7b commit 5603214

File tree

4 files changed

+21
-27
lines changed

4 files changed

+21
-27
lines changed

.github/workflows/docs_pr.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,3 @@ jobs:
3838
name: docs
3939
path: upload
4040
if-no-files-found: error
41-
- name: Post comment with preview URL
42-
run: |
43-
curl -L -X POST \
44-
-H "Accept: application/vnd.github+json" \
45-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
46-
"https://api.github.com/repos/bcumming/kb-poc/issues/${{ github.event.pull_request.number }}/comments" \
47-
-d '{
48-
"body": "preview available: https://docs.tds.cscs.ch/${{ github.event.pull_request.number }}"
49-
}'

.github/workflows/docs_pr_upload.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ jobs:
2424
ls -alh
2525
PR_NBR=$(cat pr_number.txt)
2626
curl --data-binary @site.tar.gz -H "Authorization: Bearer ${{ secrets.UPLOAD_TOKEN }}" https://docs.tds.cscs.ch/upload?path=$PR_NBR
27+
- name: Post comment with preview URL
28+
run: |
29+
curl -L -X POST \
30+
-H "Accept: application/vnd.github+json" \
31+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
32+
"https://api.github.com/repos/eth-cscs/cscs-docs/issues/${{ github.event.pull_request.number }}/comments" \
33+
-d '{
34+
"body": "preview available: https://docs.tds.cscs.ch/${{ github.event.pull_request.number }}"
35+
}'

mkdocs.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
site_name: CSCS Knowledge Base
2-
# TODO: change to match target deployment
3-
#site_url: https://eth-cscs.github.io/
1+
site_name: CSCS Documentation
2+
# TODO: change to https://docs.cscs.ch when the time comes
3+
site_url: https://eth-cscs.github.io/
44

55
# provide a link to the docs in top RHS corner
66
repo_url: https://github.com/eth-cscs/cscs-docs
77
# provide a link to "edit this page" to each page
88
edit_uri: edit/main/docs/
9-
9+
extra_css:
10+
- stylesheets/extra.css
11+
plugins:
12+
- search:
13+
pipeline:
14+
- trimmer
15+
- autorefs
1016
nav:
1117
- Welcome: index.md
1218
- 'Alps':
@@ -55,7 +61,6 @@ nav:
5561
theme:
5662
name: material
5763
language: en
58-
#custom_dir: docs/.overrides
5964
features:
6065
- content.code.copy
6166
# add an "edit this page" icon on each page
@@ -92,18 +97,10 @@ theme:
9297
toggle:
9398
icon: material/brightness-4
9499
name: Switch to light mode
95-
96100
logo: assets/cscs-logo.png
97101
font:
98102
text: Roboto
99103
code: Roboto Mono
100-
101-
plugins:
102-
- search:
103-
pipeline:
104-
- trimmer
105-
- autorefs
106-
107104
markdown_extensions:
108105
- admonition
109106
- def_list
@@ -140,6 +137,3 @@ markdown_extensions:
140137
# - javascripts/mathjax.js
141138
# - https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
142139

143-
extra_css:
144-
- stylesheets/extra.css
145-

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The source CSCS documentation [docs.cscs.ch](httpa://docs.cscs.ch)
1313
1414
Clone this repository on your PC/laptop, then view the documentation in a browser run `./serve`:
1515
```bash
16-
> git clone [email protected]:${githubusername}/kb.git
17-
> cd kb
16+
> git clone [email protected]:${githubusername}/cscs-docs.git
17+
> cd cscs-docs
1818
> ./serve
1919
...
2020
INFO - [08:33:34] Serving on http://127.0.0.1:8000/

0 commit comments

Comments
 (0)