-
Notifications
You must be signed in to change notification settings - Fork 28
feat: docs_bundle #671
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
Merged
feat: docs_bundle #671
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4ab6753
feat: docs_bundle
AlexanderLanin 2d53121
fix runtime conflict for "data"
AlexanderLanin bc30554
feat: better error message on missing dot
AlexanderLanin 53ebaeb
fix docu refs
AlexanderLanin 00529fc
fix error message
AlexanderLanin 7e4a551
feat: add mounts to live preview
AlexanderLanin 0edb95c
security
AlexanderLanin 820b6b7
install dot pre test
AlexanderLanin 39c10a4
security 2
AlexanderLanin 57bac36
Merge remote-tracking branch 'upstream/main' into bundles
AlexanderLanin 37e121b
last minute fixes
AlexanderLanin ef8b35d
refine mounts documentation
AlexanderLanin 045754d
move bundle entry doc to bundle API
AlexanderLanin b2cf1e7
restructure tests + fix pyright
AlexanderLanin e285eb3
Merge remote-tracking branch 'upstream/main' into bundles
AlexanderLanin 90076e4
downstream tests needs graphviz now
AlexanderLanin 26f1ebf
downgrade rules_python
AlexanderLanin fe8aac1
fix: treat known-good as optional
AlexanderLanin 8c518f1
fix: improve support for repos that dont use our bundle extension
AlexanderLanin 396022d
fix: simplify bundle validation
AlexanderLanin fb5ae24
refactor: simplify bundle declarations
AlexanderLanin 408f760
fix: plantuml across mounts
AlexanderLanin 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,45 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
| def join_path(prefix, rest): | ||
| """Compose two docname segments with `/`. | ||
|
|
||
| Args: | ||
| prefix: Leading docname segment, possibly empty. | ||
| rest: Trailing docname segment, possibly empty. | ||
|
|
||
| Returns: | ||
| The combined docname. | ||
| """ | ||
| if not prefix or prefix == ".": | ||
| return rest | ||
| if not rest: | ||
| return prefix | ||
| return prefix + "/" + rest | ||
|
|
||
| def dirname(path): | ||
| idx = path.rfind("/") | ||
| return "" if idx < 0 else path[:idx] | ||
|
|
||
| def glob_doc_sources(prefix): | ||
| """Return glob patterns for documentation sources below ``prefix``.""" | ||
| extensions = [ | ||
| "png", "svg", "md", "rst", "html", "css", | ||
| "puml", "need", "yaml", "json", "csv", "inc", | ||
| ] | ||
| if prefix == ".": | ||
| prefix = "" | ||
| elif prefix and not prefix.endswith("/"): | ||
| prefix += "/" | ||
| param = [prefix + "**/*." + ext for ext in extensions] | ||
| srcs = native.glob(param, allow_empty = True) | ||
| return srcs |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.