-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[beta-docs] vercel build and sync api docs (#24362)
## Summary & Motivation - Build API docs in Vercel - Failure on broken anchor links was set to warn, as api docs have many broken links still, will enable when prod ready - Introduced new `yarn` directive to build and sync files - Introduced new tox environment `sphinx-mdx` for building mdx files separate from json - Updated build in Vercel to use new directive ## Random screenshots for context <img width="745" alt="image" src="https://github.com/user-attachments/assets/3c073828-8521-482f-80af-c5adbafa7f8a"> ## How I Tested These Changes ## Changelog NOCHANGELOG
- Loading branch information
Showing
8 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# | ||
# **NOTE: this script is intended to by used from Vercel only!** | ||
# | ||
# Description: Builds and synchronizes MDX API docs from Sphinx | ||
# Usage: yarn sync-api-docs | ||
# | ||
|
||
set -e | ||
|
||
cd .. | ||
|
||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
source ~/.cargo/env | ||
|
||
uv venv | ||
source .venv/bin/activate | ||
|
||
# Required as is locale is not set by default in Vercel runner | ||
export LC_ALL=C.UTF-8 | ||
|
||
uv pip install tox | ||
make mdx | ||
make mdx_copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
sphinx>=8,<9 | ||
sphinx-click | ||
sphinx_toolbox | ||
sphinxcontrib-serializinghtml | ||
sphinxcontrib-mdxbuilder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a3d1285
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs ready!
✅ Preview
https://dagster-docs-or0fryq93-elementl.vercel.app
https://master.dagster.dagster-docs.io
Built with commit a3d1285.
This pull request is being automatically deployed with vercel-action
a3d1285
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs-beta ready!
✅ Preview
https://dagster-docs-beta-cg2hugycu-elementl.vercel.app
https://dagster-docs-beta.dagster-docs.io
Built with commit a3d1285.
This pull request is being automatically deployed with vercel-action