Skip to content

Commit feb00fa

Browse files
authored
Docs fixes (#6)
* - moved all docs to /docs - updated jobs and such - fixed arch overview page * updated docs (contents, formatting), added spec file * now downloading json wiht openapi spec instead of hosting it
1 parent 3747af3 commit feb00fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1303
-2006
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,21 @@ on:
55
branches: [ main ]
66
paths:
77
- 'docs/**'
8-
- 'backend/docs/**'
9-
- 'files_for_readme/ARCHITECTURE_IN_DETAILS.md'
10-
- 'backend/tests/load/README.md'
118
- 'mkdocs.yml'
129
- '.github/workflows/docs.yml'
1310
pull_request:
14-
branches:
15-
- main
11+
branches: [ main ]
1612
paths:
1713
- 'docs/**'
18-
- 'backend/docs/**'
19-
- 'files_for_readme/ARCHITECTURE_IN_DETAILS.md'
20-
- 'backend/tests/load/README.md'
2114
- 'mkdocs.yml'
2215
- '.github/workflows/docs.yml'
23-
workflow_dispatch: # Allow manual trigger
16+
workflow_dispatch:
2417

2518
permissions:
2619
contents: write
2720
pages: write
2821
id-token: write
2922

30-
# Allow only one concurrent deployment
3123
concurrency:
3224
group: pages
3325
cancel-in-progress: false
@@ -38,8 +30,6 @@ jobs:
3830
steps:
3931
- name: Checkout repository
4032
uses: actions/checkout@v4
41-
with:
42-
fetch-depth: 0 # Full history for git info
4333

4434
- name: Set up Python
4535
uses: actions/setup-python@v5
@@ -51,77 +41,16 @@ jobs:
5141
with:
5242
key: mkdocs-${{ hashFiles('mkdocs.yml') }}
5343
path: ~/.cache/pip
54-
restore-keys: |
55-
mkdocs-
44+
restore-keys: mkdocs-
5645

57-
- name: Install MkDocs and dependencies
58-
run: |
59-
pip install --upgrade pip
60-
pip install \
61-
mkdocs-material \
62-
mkdocs-mermaid2-plugin \
63-
pymdown-extensions
46+
- name: Install MkDocs
47+
run: pip install mkdocs-material mkdocs-mermaid2-plugin mkdocs-swagger-ui-tag
6448

65-
- name: Prepare documentation structure
49+
- name: Download OpenAPI spec
6650
run: |
67-
# Create directory structure for docs
68-
mkdir -p docs/architecture
69-
mkdir -p docs/reference
70-
mkdir -p docs/components/sse
71-
mkdir -p docs/components/workers
72-
mkdir -p docs/operations
73-
mkdir -p docs/security
74-
mkdir -p docs/testing
75-
mkdir -p docs/stylesheets
76-
mkdir -p docs/assets/images
77-
78-
# Copy images and assets
79-
cp files_for_readme/*.png docs/architecture/
80-
cp files_for_readme/*.svg docs/architecture/ 2>/dev/null || true
81-
cp files_for_readme/logo.png docs/assets/images/
82-
83-
# Copy architecture docs
84-
cp files_for_readme/ARCHITECTURE_IN_DETAILS.md docs/architecture/overview.md
85-
cp backend/docs/services-overview.md docs/architecture/
86-
cp backend/docs/kafka-topic-architecture.md docs/architecture/
87-
cp backend/docs/lifecycle.md docs/architecture/
88-
89-
# Copy API reference
90-
cp backend/docs/api-reference.md docs/reference/
91-
92-
# Copy component docs - services overview
93-
cp backend/docs/services-overview.md docs/components/
94-
95-
# Copy SSE docs
96-
cp backend/docs/sse-partitioned-architecture.md docs/components/sse/
97-
cp backend/docs/execution-sse-flow.md docs/components/sse/
98-
cp backend/docs/workers/sse-architecture.md docs/components/sse/
99-
100-
# Copy worker docs
101-
cp backend/docs/workers/pod_monitor.md docs/components/workers/
102-
cp backend/docs/workers/result_processor.md docs/components/workers/
103-
104-
# Copy other component docs
105-
cp backend/docs/dead-letter-queue.md docs/components/
106-
cp backend/docs/schema-manager.md docs/components/
107-
108-
# Copy operations docs
109-
cp backend/docs/tracing.md docs/operations/
110-
cp backend/docs/metrics-contextvars.md docs/operations/
111-
cp backend/docs/cpu-time-measurement.md docs/operations/
112-
cp backend/docs/notification-types.md docs/operations/
113-
cp backend/docs/troubleshooting-result-processor-di-crash.md docs/operations/
114-
115-
# Copy security docs
116-
cp backend/docs/security/policies.md docs/security/
117-
118-
# Copy testing docs
119-
cp backend/tests/load/README.md docs/testing/load-testing.md
120-
121-
# Create minimal extra.css if not exists
122-
if [ ! -f docs/stylesheets/extra.css ]; then
123-
echo "/* Custom styles for Integr8sCode docs */" > docs/stylesheets/extra.css
124-
fi
51+
curl -s https://api.integr8scode.cc/openapi.json | \
52+
jq '. + {servers: [{url: "https://api.integr8scode.cc", description: "Production"}]}' \
53+
> docs/reference/openapi.json
12554
12655
- name: Build documentation
12756
run: mkdocs build --strict
@@ -132,7 +61,6 @@ jobs:
13261
path: site/
13362

13463
deploy:
135-
# Only deploy on push to main (not PRs)
13664
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
13765
needs: build
13866
runs-on: ubuntu-latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="./files_for_readme/logo.png" alt="Integr8sCode Logo" width="250" height="250">
2+
<img src="./docs/assets/images/logo.png" alt="Integr8sCode Logo" width="250" height="250">
33
<h1 align="center"><b>Integr8sCode</b></h1>
44
</p>
55
<p align="center">
@@ -128,7 +128,7 @@ cause `match-case` was introduced first in `Python 3.10`.
128128
> [!TIP]
129129
> Full documentation is available at https://hardmax71.github.io/Integr8sCode/
130130
131-
<img src="./files_for_readme/system_diagram.png" alt="system diagram">
131+
<img src="./docs/assets/images/system_diagram.png" alt="system diagram">
132132

133133
The platform is built on three main pillars:
134134

backend/docs/api-reference.md

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)