Skip to content

Commit ea60bc0

Browse files
committed
Split documentation into multiple pages
1 parent da8ae50 commit ea60bc0

52 files changed

Lines changed: 557 additions & 76 deletions

Some content is hidden

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

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
4747
- name: Stage API into docs tree
4848
run: |
49-
rm -rf docs/api
50-
mkdir -p docs/api
51-
cp -r Documentation~/api/_site/* docs/api/
52-
cp docs/api-stub/index.html docs/api/index.html
49+
rm -rf docs~/api
50+
mkdir -p docs~/api
51+
cp -r Documentation~/api/_site/* docs~/api/
52+
cp docs~/api-stub/index.html docs~/api/index.html
5353
5454
- name: Install MkDocs
5555
run: pip install -r requirements-docs.txt
@@ -60,7 +60,7 @@ jobs:
6060
- name: Upload Pages artifact
6161
uses: actions/upload-pages-artifact@v3
6262
with:
63-
path: site
63+
path: site~
6464

6565
deploy:
6666
needs: build

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ jobs:
6969
-x ".cursorignore" \
7070
-x "Tests/*" \
7171
-x "Documentation~/*" \
72-
-x "docs/*" \
72+
-x "docs~/*" \
73+
-x "overrides~/*" \
7374
-x "mkdocs.yml" \
7475
-x "requirements-docs.txt" \
75-
-x "site/*"
76+
-x "site~/*"
7677
7778
- name: Create GitHub Release
7879
uses: softprops/action-gh-release@v2

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
!Documentation~/**/*.csproj
33
*.csproj.meta
44

5-
# Documentation builds (Documentation~ trailing ~ = Unity ignores folder on import)
6-
site/
7-
docs/api/
5+
# Documentation builds (~ suffix = Unity ignores folder on import)
6+
site~/
7+
docs~/api/
8+
docs.meta
9+
overrides.meta
10+
site.meta
811
Documentation~/api/
912
Documentation~/**/*.meta
1013
Documentation~/**/bin/

Documentation~/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This folder is named **`Documentation~`** so Unity **ignores it entirely** when mathx is imported as a UPM package (trailing `~` is a Unity convention).
44

5+
The same applies to **`docs~`**, **`overrides~`**, and **`site~`** at the package root — MkDocs guides, theme overrides, and local build output.
6+
57
DocFX stubs use `Stubs/Unity.Stubs.stub` (not `.cs`). Never commit `bin/`, `obj/`, or `.dll` outputs — Unity loads them as plugins and conflicts with `Mathematics.Mathx.asmdef`.
68

79
## Prerequisites
@@ -19,18 +21,18 @@ dotnet tool install -g docfx # once
1921
docfx metadata docfx.json
2022
docfx build docfx.json
2123

22-
# Merge API into docs before MkDocs (included in site output)
23-
rm -rf docs/api
24-
mkdir -p docs/api
25-
cp -r Documentation~/api/_site/* docs/api/
26-
cp docs/api-stub/index.html docs/api/index.html
24+
# Merge API into docs~ before MkDocs (included in site~ output)
25+
rm -rf docs~/api
26+
mkdir -p docs~/api
27+
cp -r Documentation~/api/_site/* docs~/api/
28+
cp docs~/api-stub/index.html docs~/api/index.html
2729

2830
# Guides (MkDocs Material)
2931
cd ..
3032
pip install -r requirements-docs.txt
3133
mkdocs build
3234
```
3335

34-
Open `site/index.html` locally, or run `mkdocs serve` for live reload (guides only until API is copied).
36+
Open `site~/index.html` locally, or run `mkdocs serve` for live reload (guides only until API is copied).
3537

3638
Published site: [ltmx.github.io/Unity.mathx](https://ltmx.github.io/Unity.mathx/)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Topic guides: [fluent chains](https://ltmx.github.io/Unity.mathx/guides/fluent-c
133133

134134
Edit Mode tests ship in `Tests/` (Unity Test Framework). Package tests require `"testables": ["com.ltmx.mathematics.mathx"]` in your **project** `Packages/manifest.json` (plus `com.unity.test-framework`). Then open **Window → General → Test Runner → Edit Mode**.
135135

136-
See [docs/quality.md](docs/quality.md) or the [Quality page](https://ltmx.github.io/Unity.mathx/quality/) for setup, golden-value regeneration, and IL2CPP validation.
136+
See [docs~/QUALITY.md](docs~/QUALITY.md) or the [Quality page](https://ltmx.github.io/Unity.mathx/quality/) for setup, golden-value regeneration, and IL2CPP validation.
137137

138138
<br>
139139

docs/assets/logo.svg.meta

Lines changed: 0 additions & 53 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)