-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Containerize documentation build environment and add sphinx-autobuild for hot-reload #4960
Containerize documentation build environment and add sphinx-autobuild for hot-reload #4960
Conversation
43f5992
to
488166f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4960 +/- ##
==========================================
+ Coverage 58.60% 59.08% +0.48%
==========================================
Files 568 645 +77
Lines 51121 55651 +4530
==========================================
+ Hits 29958 32880 +2922
- Misses 18748 20174 +1426
- Partials 2415 2597 +182
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
488166f
to
dcbd4bf
Compare
ef9b75b
to
33ecd2f
Compare
d50ad78
to
a04ad1b
Compare
My laptop is
and run
|
monodocs-environment.yaml
Outdated
@@ -77,4 +77,3 @@ dependencies: | |||
|
|||
platforms: | |||
- linux-64 | |||
- osx-arm64 |
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.
Why do we remove this?
* Install `conda-lock <https://github.com/conda/conda-lock>`__. | ||
* In the ``flyteorg/flyte`` root directory run: | ||
* ``conda-lock install --name monodocs-env monodocs-environment.lock.yaml`` | ||
* ``conda activate monodocs-env`` |
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.
Can we keep this so some people can still use conda to install if they don't want to run Docker locally?
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.
Fixed in the latest commit.
a04ad1b
to
679cf00
Compare
@MortalHappiness thank you for all your work on this -- we're about to start a major docs reorganization project that will affect the docs build process, so let's hold off on merging this for now and come back to it in a few weeks when those changes are in place. |
2d98234
to
00ea6fe
Compare
00ea6fe
to
7a5533b
Compare
be06ab5
to
5cc32c1
Compare
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Chi-Sheng Liu <[email protected]>
5cc32c1
to
f6e77ad
Compare
Tracking issue
N/A
Why are the changes needed?
The documentation build environment is complex and buggy for MacOS ARM users.
What changes were proposed in this pull request?
Added one command:
make dev-docs
to use docker container to build the documentation environement.Supported Environment variables:
DEV_DOCS_WATCH
: If set, the docs will be built and served using sphinx-autobuild for live updates.FLYTEKIT_LOCAL_PATH
: If set, the local path to flytekit will be used instead of the source code from the flyteorg/flytekit repo.FLYTECTL_LOCAL_PATH
: If set, the local path to flytectl will be used instead of the source code from the flyteorg/flytectl repo.FLYTESNACKS_LOCAL_PATH
: If set, the local path to flytesnacks will be used instead of the source code from the flyteorg/flytesnacks repoHow was this patch tested?
Setup process
First you need to make sure you can run
linux/amd64
containerYou can reference this article to setup the environment for MacOS arm CPU.
Steps:
make dev-docs
python -m http.server --directory docs/_build/html
http://localhost:8000
to see the documentation.Screenshots
Check all the applicable boxes
Related PRs
Docs link