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
5 changes: 5 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
common --registry=https://bcr.bazel.build

build --java_language_version=17
build --tool_java_language_version=17
build --java_runtime_version=remotejdk_17
build --tool_java_runtime_version=remotejdk_17
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.3.0
10 changes: 10 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,13 @@ multitool.hub(
lockfile = "tools/yamlfmt.lock.json",
)
use_repo(multitool, "yamlfmt_hub")

bazel_dep(name = "score_docs_as_code", version = "2.2.0")
git_override(
module_name = "score_docs_as_code",
commit = "17cf66e3449f0aa9e9fe22fe3ab1fbbffad733cf",
remote = "https://github.com/eclipse-score/docs-as-code.git",
)

bazel_dep(name = "score_platform", version = "0.5.0")
bazel_dep(name = "score_process", version = "1.3.2")
51 changes: 51 additions & 0 deletions bazel/rules/score_module/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
load(
"//bazel/rules/score_module:score_module.bzl",
"sphinx_module",
)

exports_files([
"templates/conf.template.py",
"templates/seooc_index.template.rst",
])

# HTML merge tool
py_binary(
name = "sphinx_html_merge",
srcs = ["src/sphinx_html_merge.py"],
main = "src/sphinx_html_merge.py",
visibility = ["//visibility:public"],
)

# Sphinx build binary with all required dependencies
py_binary(
name = "score_build",
srcs = ["src/sphinx_wrapper.py"],
data = [],
env = {
"SOURCE_DIRECTORY": "",
"DATA": "",
"ACTION": "check",
},
main = "src/sphinx_wrapper.py",
visibility = ["//visibility:public"],
deps = [
"@score_docs_as_code//src:plantuml_for_python",
"@score_docs_as_code//src/extensions/score_sphinx_bundle",
],
)

sphinx_module(
name = "score_module_doc",
srcs = glob(
[
"docs/**/*.rst",
"docs/**/*.puml",
],
allow_empty = True,
),
index = "docs/index.rst",
visibility = ["//visibility:public"],
deps = [
"@score_process//:score_process_module",
],
)
Loading