Skip to content

Commit aecf784

Browse files
committed
docs: reorganize documentation site and simplify README
Signed-off-by: Jemin Huh <[email protected]>
1 parent a64abcb commit aecf784

19 files changed

Lines changed: 1638 additions & 746 deletions

File tree

.github/workflows/docs-site.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Docs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "docs-overrides/**"
8+
- "mkdocs.yml"
9+
- "docs/requirements.txt"
10+
- ".github/workflows/docs-site.yml"
11+
push:
12+
paths:
13+
- "docs/**"
14+
- "docs-overrides/**"
15+
- "mkdocs.yml"
16+
- "docs/requirements.txt"
17+
- ".github/workflows/docs-site.yml"
18+
workflow_dispatch:
19+
20+
permissions:
21+
contents: read
22+
23+
concurrency:
24+
group: docs-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
build:
29+
name: Build Docs
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Set up Python
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: "3.12"
39+
40+
- name: Install docs dependencies
41+
run: pip install -r docs/requirements.txt
42+
43+
- name: Build documentation
44+
run: mkdocs build --strict
45+
46+
- name: Upload Pages artifact
47+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch))
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: site
51+
52+
deploy:
53+
name: Deploy Docs
54+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch))
55+
needs: build
56+
runs-on: ubuntu-latest
57+
permissions:
58+
contents: read
59+
pages: write
60+
id-token: write
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
steps:
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
HELP.md
22
.DS_Store
3+
.venv/
34
target/
45
!.mvn/wrapper/maven-wrapper.jar
56
!**/src/main/**/target/
@@ -47,3 +48,4 @@ vite.generated.ts
4748
!/electron/package-lock.json
4849
/src/main/bundles/
4950
/log
51+
site/

README.md

Lines changed: 91 additions & 733 deletions
Large diffs are not rendered by default.

docs-overrides/main.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
{% set page_title = page.title ~ " - " ~ config.site_name if page and page.title else config.site_name %}
6+
{% set page_description = page.meta.description if page and page.meta and page.meta.description else config.site_description %}
7+
{% set page_url = config.site_url ~ page.url if page and page.url else config.site_url %}
8+
{% set social_image = config.site_url ~ "assets/images/icon.png" %}
9+
<link rel="canonical" href="{{ page_url | e }}">
10+
<meta property="og:site_name" content="{{ config.site_name | e }}">
11+
<meta property="og:type" content="website">
12+
<meta property="og:title" content="{{ page_title | e }}">
13+
<meta property="og:description" content="{{ page_description | e }}">
14+
<meta property="og:url" content="{{ page_url | e }}">
15+
<meta property="og:image" content="{{ social_image | e }}">
16+
<meta name="twitter:card" content="summary_large_image">
17+
<meta name="twitter:title" content="{{ page_title | e }}">
18+
<meta name="twitter:description" content="{{ page_description | e }}">
19+
<meta name="twitter:image" content="{{ social_image | e }}">
20+
{% endblock %}

docs/assets/images/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Images
2+
3+
Place documentation screenshots and diagrams for MkDocs pages in this directory.
4+
5+
The repository already contains demo images at the project root, but keeping documentation assets under `docs/assets/images/` makes MkDocs packaging simpler and more predictable.

docs/assets/images/icon.png

212 KB
Loading

0 commit comments

Comments
 (0)