-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[Doc] Upgrade docs build system #41115
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
Merged
can-anyscale
merged 21 commits into
ray-project:master
from
peytondmurray:docs-build-system-upgrade
Nov 28, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b781602
[Doc] Upgrade docs build system
peytondmurray 89d6892
[Doc] Upgrade build tooling
peytondmurray d79e657
[Doc] Add navbar machinery
peytondmurray 6e6aa44
[Doc] Add docs index page
peytondmurray 0c2b7ca
[Doc] Upgrade example gallery
peytondmurray cc9e236
[Doc] Add CSAT and Ray Assistant widgets
peytondmurray 7e27696
[Doc] Add assets needed for new docs build system
peytondmurray e1b16b6
[Doc] Add all pages to the toctree
peytondmurray ffdc1ed
[Doc] Refactor tab widgets
peytondmurray bbde3f0
[Doc] Miscellaneous changes
peytondmurray 93fe6bd
[Doc] Optimize sidebar nav creation to speed up build
peytondmurray b1a0d78
[Doc] Fix cached toctree behavior
peytondmurray 1c79729
[Doc] Final cleanup
peytondmurray 6229276
[Doc] Fix premerge CI job
peytondmurray f3b5245
[Doc] Address final comments
peytondmurray 984476c
[Doc] Premerge troubleshooting
peytondmurray 3b03385
[Doc] Install doc-dependencies.txt in doc_builder_container.py
peytondmurray 9a1bc99
[Doc] Fix tabs widgets in cluster/vms/getting-started
peytondmurray ac1f80a
[Doc] Improved train logo style, pygments diff css; rework tune toctree
peytondmurray f856709
[Doc] Modify doc build dockerfile to install deps properly
peytondmurray 5fe326c
[Doc] Fix merge conflicts
peytondmurray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -17,25 +17,29 @@ RUN <<EOF | |
|
|
||
| set -euo pipefail | ||
|
|
||
peytondmurray marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ( | ||
| cd dashboard/client | ||
| npm ci | ||
| npm run build | ||
| ) | ||
|
|
||
| if [[ "$BUILD_TYPE" == "debug" ]]; then | ||
| RAY_DEBUG_BUILD=debug pip install -v -e python/ | ||
| elif [[ "$BUILD_TYPE" == "asan" ]]; then | ||
| pip install -v -e python/ | ||
| bazel build $(./ci/run/bazel_export_options) --no//:jemalloc_flag //:ray_pkg | ||
| elif [[ "$BUILD_TYPE" == "java" ]]; then | ||
| ./java/build-jar-multiplatform.sh linux | ||
| RAY_INSTALL_JAVA=1 pip install -v -e python/ | ||
| elif [[ "$BUILD_TYPE" == "clang" || "$BUILD_TYPE" == "asan-clang" || "$BUILD_TYPE" == "tsan-clang" ]]; then | ||
| ./ci/env/install-llvm-binaries.sh | ||
| pip install -v -e python/ | ||
| if [[ "$BUILD_TYPE" == "doc" ]]; then | ||
|
||
| # Do nothing in this case; no need to install ray to build docs | ||
| : | ||
| else | ||
| pip install -v -e python/ | ||
| ( | ||
| cd dashboard/client | ||
| npm ci | ||
| npm run build | ||
| ) | ||
| if [[ "$BUILD_TYPE" == "debug" ]]; then | ||
| RAY_DEBUG_BUILD=debug pip install -v -e python/ | ||
| elif [[ "$BUILD_TYPE" == "asan" ]]; then | ||
| pip install -v -e python/ | ||
| bazel build $(./ci/run/bazel_export_options) --no//:jemalloc_flag //:ray_pkg | ||
| elif [[ "$BUILD_TYPE" == "java" ]]; then | ||
| ./java/build-jar-multiplatform.sh linux | ||
| RAY_INSTALL_JAVA=1 pip install -v -e python/ | ||
| elif [[ "$BUILD_TYPE" == "clang" || "$BUILD_TYPE" == "asan-clang" || "$BUILD_TYPE" == "tsan-clang" ]]; then | ||
| ./ci/env/install-llvm-binaries.sh | ||
| pip install -v -e python/ | ||
| else | ||
| pip install -v -e python/ | ||
| fi | ||
| fi | ||
|
|
||
| EOF | ||
This file contains hidden or 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 hidden or 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 hidden or 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,136 @@ | ||
| /* Kapa Ask AI button */ | ||
| #kapa-widget-container figure { | ||
| padding: 0 !important; | ||
| } | ||
|
|
||
| .mantine-Modal-root figure { | ||
| padding: 0 !important; | ||
| } | ||
|
|
||
| .container-xl.blurred { | ||
| filter: blur(5px); | ||
| } | ||
|
|
||
| .chat-widget { | ||
| position: fixed; | ||
| bottom: 10px; | ||
| right: 10px; | ||
| z-index: 1000; | ||
| } | ||
|
|
||
| .chat-popup { | ||
| display: none; | ||
| position: fixed; | ||
| top: 20%; | ||
| left: 50%; | ||
| transform: translate(-50%, -20%); | ||
| width: 50%; | ||
| height: 70%; | ||
| background-color: var(--pst-color-surface); | ||
| border: 1px solid var(--pst-color-border); | ||
| border-radius: 10px; | ||
| box-shadow: 0 5px 10px var(--pst-color-shadow); | ||
| z-index: 1032; | ||
| max-height: 1000px; | ||
| overflow: hidden; | ||
| padding-bottom: 40px; | ||
| } | ||
|
|
||
| .chatFooter { | ||
| position: absolute; | ||
| bottom: 0; | ||
| right: 0; | ||
| width: 100%; | ||
| background-color: var(--pst-color-surface); | ||
| } | ||
|
|
||
| #openChatBtn { | ||
| border: 1px solid var(--pst-color-border); | ||
| background-color: var(--pst-color-surface); | ||
| color: var(--pst-color-text-base); | ||
| width: 70px; | ||
| height: 70px; | ||
| border-radius: 10px; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| #closeChatBtn { | ||
| border: none; | ||
| background-color: transparent; | ||
| color: var(--pst-color-text-base); | ||
| font-size: 1.2em; | ||
| } | ||
|
|
||
| #closeChatBtn:hover { | ||
| color: var(--pst-color-link-hover); | ||
| } | ||
|
|
||
| #searchBar { | ||
| border: 1px solid var(--pst-color-border); | ||
| background-color: var(--pst-color-on-surface); | ||
| } | ||
|
|
||
| .chatHeader { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| padding: .5rem; | ||
| } | ||
|
|
||
| .chatHeader > .header-wrapper { | ||
| text-align: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .chatContentContainer { | ||
| padding: 15px; | ||
| max-height: calc(100% - 80px); | ||
| overflow-y: auto; | ||
| } | ||
|
|
||
| .chatContentContainer input { | ||
| margin-top: 10px; | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| #result{ | ||
| padding: 15px; | ||
| border-radius: 10px; | ||
| margin-top: 10px; | ||
| margin-bottom: 10px; | ||
| background-color: var(--pst-color-on-surface); | ||
| max-height: calc(100% - 20px); | ||
| overflow-y: auto; | ||
| } | ||
|
|
||
| .chatContentContainer textarea { | ||
| flex-grow: 1; | ||
| min-width: 50px; | ||
| max-height: 40px; | ||
| resize: none; | ||
| } | ||
|
|
||
| .searchBtn { | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .input-group { | ||
| display: flex; | ||
| align-items: stretch; | ||
| } | ||
|
|
||
| #blurDiv { | ||
| width: 100vw; | ||
| height: 100vh; | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| backdrop-filter: blur(5px); | ||
| z-index: 1031; | ||
| } | ||
|
|
||
| #blurDiv.blurDiv-hidden { | ||
| display: none !important; | ||
| } |
This file contains hidden or 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,77 @@ | ||
| /* CSAT widgets */ | ||
| #csat-inputs { | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .csat-hidden { | ||
| display: none !important; | ||
| } | ||
|
|
||
| #csat-feedback-label { | ||
| color: var(--pst-color-text-base); | ||
| font-weight: 500; | ||
| } | ||
|
|
||
| .csat-button { | ||
| margin-left: 16px; | ||
| padding: 8px 16px 8px 16px; | ||
| border-radius: 4px; | ||
| border: 1px solid var(--pst-color-border); | ||
| background: var(--pst-color-background); | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| justify-content: center; | ||
| cursor: pointer; | ||
| width: 85px; | ||
| } | ||
|
|
||
| #csat-textarea-group { | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| #csat-submit { | ||
| margin-left: auto; | ||
| font-weight: 700; | ||
| border: none; | ||
| margin-top: 12px; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| #csat-feedback-received { | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .csat-button-active { | ||
| border: 1px solid var(--pst-color-border); | ||
| } | ||
|
|
||
| .csat-icon { | ||
| margin-right: 4px; | ||
| } | ||
|
|
||
| #csat { | ||
| padding: 1em; | ||
| min-width: 60%; | ||
| } | ||
|
|
||
| #csat-textarea { | ||
| resize: none; | ||
| background-color: var(--pst-color-on-background); | ||
| border: 1px solid var(--pst-color-border); | ||
| border-radius: 4px; | ||
| } | ||
|
|
||
| #csat-textarea::placeholder { | ||
| color: var(--pst-color-text-base); | ||
| } | ||
|
|
||
| .csat-icon > path { | ||
| fill: var(--pst-color-text-base); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
w00t look like it still builds everything because of ci/ci.sh; if you change the
ci/runhere https://github.com/ray-project/ray/blob/master/ci/pipeline/determine_tests_to_run.py#L339 to justciit should builds only ci and docnot related to this pr so up to you, if you find yourself continue to iterate, it'll save some ci time