Skip to content

Commit 0ef21fb

Browse files
authored
docs: remove pdoc assets, build & host them in readthedocs (#632)
* docs: generate pdoc assets as a readthedocs pre_build job * Delete already-existing pdoc assets * Move pdoc output to _readthedocs/html/ * Try pointing to a different path * Create a dummy html file, change 'jobs' to 'commands' * Roll back to 'jobs', 'commands' deactivates all default jobs * Attempt to fix path * Try post build instead of pre * Try again with _readthedocs/html folder * Try changing _readthedocs path * Move back to pre build * Try local pip checkout for sqlmesh
1 parent c78f625 commit 0ef21fb

File tree

137 files changed

+7
-107142
lines changed

Some content is hidden

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

137 files changed

+7
-107142
lines changed

.circleci/config.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ jobs:
2121
- run:
2222
name: Publish Python package
2323
command: make publish
24-
- run:
25-
name: Update API Documentation
26-
command: |
27-
pip install pdoc sqlmesh
28-
make api-docs
29-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
30-
git config --local user.name "github-actions[bot]"
31-
git add docs
32-
git commit -m "CI: Auto-generated documentation" -a | exit 0
33-
- run:
34-
name: Deploy API Documentation
35-
command: |
36-
GITHUB_TOKEN="$GITHUB_TOKEN" \
37-
git push origin main
3824

3925
gh-release:
4026
docker:

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.8"
7+
jobs:
8+
pre_build:
9+
- pip install -e .
10+
- make api-docs
711

812
mkdocs:
913
configuration: mkdocs.yml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ docs-serve:
7272
mkdocs serve
7373

7474
api-docs:
75-
python pdoc/cli.py -o docs
75+
python pdoc/cli.py -o docs/_readthedocs/html/
7676

7777
api-docs-serve:
7878
python pdoc/cli.py

docs/_readthedocs/html/.keep

Whitespace-only changes.

docs/index.html

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

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ mkdocs==1.4.2
22
mkdocs-include-markdown-plugin==4.0.3
33
mkdocs-material==9.0.5
44
mkdocs-material-extensions==1.1.1
5+
pdoc==13.0.1

docs/search.js

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

docs/sqlmesh.html

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

docs/sqlmesh/_version.html

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

docs/sqlmesh/cli.html

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

0 commit comments

Comments
 (0)