Skip to content

Commit 4855b2f

Browse files
authored
(#235) Fix for the github actions workflow (#268)
1 parent 7268dde commit 4855b2f

File tree

4 files changed

+90
-4
lines changed

4 files changed

+90
-4
lines changed

.github/workflows/build-docs.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy documentation site to Pages
1+
name: Deploy documentation site to GitHub Pages
22

33
on:
44
push:
@@ -28,8 +28,34 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31-
- uses: actions/setup-python@v5
31+
- name: Install Python
32+
uses: actions/setup-python@v5
3233
with:
3334
python-version: 3.x
34-
- run: pip install mkdocs
35-
- run: mkdocs gh-deploy --clean --force --verbose
35+
36+
- name: Install mkdocs
37+
run: pip install mkdocs
38+
39+
- name: Setup Pages
40+
id: pages
41+
uses: actions/configure-pages@v5
42+
43+
- name: Generate site
44+
run : mkdocs build -f ./mkdocs.production.yml
45+
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: ./site
50+
51+
# Deployment job
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
needs: build
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
### Azure Developer CLI ###
22
.azure/
33

4+
### Mkdocs Site ###
5+
site/
6+
47
# Ignore codespaces / C# Dev Kit files
58
.mono
69

mkdocs.production.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
site_name: Datasync Community Toolkit
2+
site_url: https://CommunityToolkit.github.io/Datasync/
3+
repo_url: https://github.com/CommunityToolkit/Datasync/
4+
repo_name: GitHub
5+
6+
theme:
7+
name: readthedocs
8+
highlightjs: true
9+
locale: en
10+
11+
validation:
12+
omitted_files: warn
13+
absolute_links: warn
14+
unrecognized_links: warn
15+
anchors: warn
16+
17+
nav:
18+
- Getting started: index.md
19+
- In depth:
20+
- Server:
21+
- The basics: in-depth/server/index.md
22+
- Databases:
23+
- Azure SQL: in-depth/server/db/azuresql.md
24+
- Cosmos: in-depth/server/db/cosmos.md
25+
- In Memory: in-depth/server/db/in-memory.md
26+
- LiteDb: in-depth/server/db/litedb.md
27+
- MongoDb: in-depth/server/db/mongodb.md
28+
- MySQL: in-depth/server/db/mysql.md
29+
- PgSQL: in-depth/server/db/pgsql.md
30+
- SQLite: in-depth/server/db/sqlite.md
31+
- OpenApi:
32+
- NSwag: in-depth/server/openapi/nswag.md
33+
- Swashbuckle: in-depth/server/openapi/swashbuckle.md
34+
- ".NET 9.x": in-depth/server/openapi/net9.md
35+
- Client:
36+
- The basics: in-depth/client/index.md
37+
- Authentication: in-depth/client/auth.md
38+
- Online operations: in-depth/client/online.md
39+
- Advanced topics:
40+
- MAUI AOT: in-depth/client/advanced/maui-aot.md
41+
- Samples:
42+
- Todo App:
43+
- The server: samples/todoapp/server.md
44+
- Avalonia: samples/todoapp/avalonia.md
45+
- MAUI: samples/todoapp/maui.md
46+
- WinUI3: samples/todoapp/winui3.md
47+
- WPF: samples/todoapp/wpf.md
48+
49+
markdown_extensions:
50+
- smarty: {}
51+
- toc:
52+
permalink: "#"
53+
- sane_lists: {}
54+
- fenced_code: {}
55+
- tables: {}
56+
- admonition: {}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
site_name: Datasync Community Toolkit
2+
dev_addr: localhost:7000
23

34
theme:
45
name: readthedocs

0 commit comments

Comments
 (0)