-
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.
docs: update Sphinx configuration and add new documentation
This updates the sphinx conf.py file so that Dagster packages no longer need to be manually added to the paths. It also adds a few helper extensions, mainly `sphinx_copybutton` to allow you to copy a code snippet when output is rendered as html.
- Loading branch information
1 parent
f49d389
commit 896a88d
Showing
4 changed files
with
111 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Dagster API Documentation | ||
Check failure on line 1 in docs/sphinx/README.md GitHub Actions / runner / vale
|
||
|
||
This directory contains the Sphinx documentation for the Dagster API. | ||
The core API documentation is created in `index.rst` and the files in `sections/api/apidocs`. | ||
|
||
There are currently two workflows for generating the API documentation: | ||
|
||
- The existing workflow uses tox to generate JSON output that is read by our NextJS | ||
Check warning on line 8 in docs/sphinx/README.md GitHub Actions / runner / vale
Check warning on line 8 in docs/sphinx/README.md GitHub Actions / runner / vale
|
||
site. Running tox or `make json` will generate JSON output | ||
- The new workflow uses Sphinx to generate HTML output. You can run `make html` | ||
to generate HTML output, and view the static site by opening `build/html/index.html`. | ||
|
||
## Development | ||
|
||
Run `make install` to install the necessary dependencies for building the documentation. | ||
|
||
You can run `make watch` to watch for changes to the API documentation and automatically rebuild the documentation. | ||
Note: some changes might not be reflected immediately, for example style-sheets. | ||
Check warning on line 18 in docs/sphinx/README.md GitHub Actions / runner / vale
|
||
You can run `make clean` and `make html` to force a full rebuild. |
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,17 @@ | ||
sphinx>=7 | ||
|
||
sphinx-autobuild | ||
# For generating CLI docs | ||
sphinx_click | ||
|
||
sphinx_toolbox | ||
sphinxcontrib-serializinghtml | ||
|
||
# Generate opengraph data | ||
sphinxext-opengraph | ||
|
||
# Copy code button | ||
sphinx-copybutton | ||
|
||
# Furo theme | ||
furo |