Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ docs(
data = [
"@score_process//:needs_json",
],
bundles = [
{
"bundle": "//src/extensions/score_mounts/docs:concept",
"mount_at": "concepts/mounts",
},
{
"bundle": "//src/extensions/score_mounts/docs:howto",
"mount_at": "how-to/mounts",
},
],
scan_code = [
"//scripts_bazel:sources",
"//src:all_sources",
Expand Down
120 changes: 120 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions bzl/basics.bzl
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
Loading
Loading