Skip to content

Commit dd61c44

Browse files
Docs (#28)
1 parent 01bc5de commit dd61c44

File tree

10 files changed

+147
-15
lines changed

10 files changed

+147
-15
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,11 @@ test:bl-x86_64-linux --test_output=errors
5454
test --sandbox_tmpfs_path=/dev/shm
5555
test --sandbox_tmpfs_path=/tmp
5656

57+
# Java
58+
build --java_language_version=17
59+
build --tool_java_language_version=17
60+
build --java_runtime_version=remotejdk_17
61+
build --tool_java_runtime_version=remotejdk_17
62+
5763
# user specific overrides (like proxy settings)
5864
try-import %workspace%/user.bazelrc

.github/workflows/docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Documentation
15+
16+
permissions:
17+
contents: write
18+
pages: write
19+
pull-requests: write
20+
id-token: write
21+
22+
on:
23+
pull_request_target: # Allows forks to trigger the docs build
24+
types: [opened, reopened, synchronize]
25+
push:
26+
branches:
27+
- main
28+
merge_group:
29+
types: [checks_requested]
30+
31+
jobs:
32+
build-docs:
33+
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@main
34+
permissions:
35+
contents: write
36+
pages: write
37+
pull-requests: write
38+
id-token: write
39+
40+
with:
41+
bazel-target: "//:docs_combo_experimental -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}"
42+
retention-days: 3

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ rust-project.json
1616
__pycache__/
1717
.pytest_cache/
1818
/.coverage
19-
**/*.egg-info/*
19+
**/*.egg-info/*
20+
21+
# Docs
22+
/_build
23+
/docs/ubproject.toml

BUILD

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
# load("@score_docs_as_code//:docs.bzl", "docs")
14+
load("@score_docs_as_code//:docs.bzl", "docs")
1515

16-
# docs(
17-
# data = [
18-
# # TODO: add all modules that have docs
19-
# ],
20-
# source_dir = "docs",
21-
# )
16+
docs(
17+
data = [
18+
"@score_platform//:needs_json",
19+
"@score_process//:needs_json",
20+
# Persistency cannot be included, as it does not contain any needs.
21+
# -> sphinx-needs bug?
22+
# "@score_persistency//:needs_json",
23+
],
24+
source_dir = "docs",
25+
)
2226

2327
# Simple filegroup target to demonstrate the build system works
2428
filegroup(

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
module(
1515
name = "score_reference_integration",
16-
version = "0.0.0",
16+
version = "0.5.0-alpha.1",
1717
compatibility_level = 0,
1818
)
1919

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The reference integration workspace serves as a single Bazel build environment t
1010
- Test toolchain and platform support (Linux, QNX, LLVM/GCC)
1111
- Prepare for release validation workflows
1212

13+
## Docs
14+
15+
To generate a full documentation of all integrated modules, run:
16+
```bash
17+
bazel run //:docs_combo_experimental
18+
```
1319
## Working Builds ✅
1420

1521
The following modules build successfully with the `bl-x86_64-linux` configuration:

docs/conf.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
# Configuration file for the Sphinx documentation builder.
15+
16+
project = "REF_INT"
17+
project_url = "https://eclipse-score.github.io/reference_integration"
18+
version = "0.1"
19+
20+
extensions = [
21+
# TODO: remove plantuml here once
22+
# https://github.com/useblocks/sphinx-needs/pull/1508 is merged and docs-as-code
23+
# is updated with new sphinx-needs version
24+
"sphinxcontrib.plantuml",
25+
"score_sphinx_bundle",
26+
]

docs/index.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
..
2+
# *******************************************************************************
3+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
4+
#
5+
# See the NOTICE file(s) distributed with this work for additional
6+
# information regarding copyright ownership.
7+
#
8+
# This program and the accompanying materials are made available under the
9+
# terms of the Apache License Version 2.0 which is available at
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# SPDX-License-Identifier: Apache-2.0
13+
# *******************************************************************************
14+
15+
Reference Integration Documentation
16+
===================================
17+
18+
.. if-collection:: score_platform
19+
20+
Included S-CORE Modules:
21+
22+
.. toctree::
23+
:maxdepth: 1
24+
:titlesonly:
25+
26+
S-CORE Platform <_collections/score_platform/docs/index>
27+
_collections/score_process/process/index

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

score_modules.MODULE.bazel

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ single_version_override(
2424
)
2525

2626
bazel_dep(name = "score_persistency")
27-
git_override(
27+
single_version_override(
2828
module_name = "score_persistency",
29-
remote = "https://github.com/eclipse-score/persistency.git",
30-
commit = "393c1c30e6959ff5befe85751baee8a8cd8024e9", # Nov 7, 2025, 7:37 AM GMT+1
29+
version = "0.2.1",
3130
)
3231

3332
bazel_dep(name = "score_orchestrator")
@@ -43,9 +42,15 @@ single_version_override(
4342
)
4443

4544
bazel_dep(name = "score_platform")
46-
single_version_override(
45+
# TODO: switch to 0.4.2 once released
46+
# single_version_override(
47+
# module_name = "score_platform",
48+
# version = "0.4.2",
49+
# )
50+
git_override(
4751
module_name = "score_platform",
48-
version = "0.3.0",
52+
remote = "https://github.com/eclipse-score/score.git",
53+
commit = "a9cf44be1342f3c62111de2249eb3132f5ab88da" # version 0.4.1 + fixes *from main branch*
4954
)
5055

5156
bazel_dep(name = "score_bazel_platforms")
@@ -59,3 +64,16 @@ single_version_override(
5964
module_name = "score_test_scenarios",
6065
version = "0.3.0",
6166
)
67+
68+
bazel_dep(name = "score_docs_as_code", version = "2.0.1")
69+
single_version_override(
70+
module_name = "score_docs_as_code",
71+
version = "2.0.1",
72+
)
73+
74+
75+
bazel_dep(name = "score_process", version = "1.3.1")
76+
single_version_override(
77+
module_name = "score_process",
78+
version = "1.3.1",
79+
)

0 commit comments

Comments
 (0)