Skip to content

Commit 4d7b30b

Browse files
committed
chore: update Sphinx documentation build paths and fix directory structure
1 parent 2e43c26 commit 4d7b30b

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ on:
33
push:
44
branches:
55
- main # Set this to your default branch
6-
6+
workflow_dispatch:
7+
# Grant GITHUB_TOKEN the permissions to deploy to Pages
78
permissions:
8-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
912

1013
jobs:
1114
build:
@@ -31,8 +34,8 @@ jobs:
3134
- name: Build Sphinx Documentation
3235
run: |
3336
cd docs
34-
mkdir -p source/_static
35-
uv run sphinx-build -M html source build -W
37+
mkdir -p _static
38+
uv run sphinx-build -M html ./ _build -W
3639
3740
deploy:
3841
environment:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ wheels/
1010
.venv
1111
uv.lock
1212
input.txt
13+
14+
# Sphinx build artifacts
1315
docs/_build/
16+
docs/tether.*.rst
17+
docs/modules.rst

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ This will:
5252

5353
## License
5454

55-
[Apache-2.0](./LICENSE)
55+
[Apache-2.0](https://github.com/Khushiyant/tether/blob/main/LICENSE)
5656

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
import re
34
# Ensure Sphinx can find the source code
45
sys.path.insert(0, os.path.abspath("../src"))
56

@@ -8,7 +9,7 @@ def get_project_metadata():
89
import pathlib
910
import sys
1011

11-
pyproject_path = pathlib.Path(__file__).parents[2] / "pyproject.toml"
12+
pyproject_path = pathlib.Path(__file__).parents[1] / "pyproject.toml"
1213
if sys.version_info >= (3, 11):
1314
import tomllib
1415

@@ -61,4 +62,8 @@ def get_project_metadata():
6162
"source_repository": "https://github.com/Khushiyant/tenso",
6263
"source_branch": "main",
6364
"source_directory": "docs/source/",
64-
}
65+
}
66+
67+
suppress_warnings = [
68+
'myst.xref_missing', # Suppress MyST cross-reference errors
69+
]

0 commit comments

Comments
 (0)