Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a4b9193
add documentation examples
RolandJentschETAS Apr 1, 2026
d663e72
fix copyright check
RolandJentschETAS Apr 1, 2026
bf89f92
add copyright
RolandJentschETAS Apr 1, 2026
683d5df
add newline at end of file
RolandJentschETAS Apr 1, 2026
c23e2f9
Revert "add newline at end of file"
RolandJentschETAS Apr 1, 2026
87736d6
add newlines
RolandJentschETAS Apr 1, 2026
dd338b2
take over general structure according to process
RolandJentschETAS Apr 7, 2026
a368dd9
use folder template from process repo
RolandJentschETAS Apr 7, 2026
ef83c1f
fix commit hash
RolandJentschETAS Apr 7, 2026
90b3293
fix strange format error
RolandJentschETAS Apr 7, 2026
3e7930d
structuring module documentation
RolandJentschETAS Apr 8, 2026
932dd61
add directory tree picture
RolandJentschETAS Apr 8, 2026
32f0836
add some comments
RolandJentschETAS Apr 8, 2026
66f9fae
change to include folder approach
RolandJentschETAS Apr 9, 2026
f00943c
use main path instead of link
RolandJentschETAS Apr 9, 2026
e781916
fix builds
RolandJentschETAS Apr 9, 2026
60aa73e
remove stakeholder reqs
RolandJentschETAS Apr 9, 2026
c14608e
remove stakeholder reqs
RolandJentschETAS Apr 9, 2026
eff3896
temp fix for docs at root
AlexanderLanin Apr 10, 2026
e981b1d
fix links
RolandJentschETAS Apr 10, 2026
7f4f5b5
add any necessary files
RolandJentschETAS Apr 13, 2026
bfee7e5
add main index file
RolandJentschETAS Apr 13, 2026
6fd9311
move aou
RolandJentschETAS Apr 13, 2026
59bc409
move aou
RolandJentschETAS Apr 13, 2026
45b433d
update folder structure entry picture
RolandJentschETAS Apr 13, 2026
778b735
empty gitkeep
RolandJentschETAS Apr 13, 2026
4fd4bcf
rework test folders
RolandJentschETAS Apr 13, 2026
590638c
small adaption of the folder structure
RolandJentschETAS Apr 13, 2026
ea1cf04
remove CR content
RolandJentschETAS Apr 13, 2026
6f7f588
remove CR content
RolandJentschETAS Apr 13, 2026
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
7 changes: 5 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ setup_starpls(
copyright_checker(
name = "copyright",
srcs = [
"src",
"score",
"tests",
"//:BUILD",
"//:MODULE.bazel",
Expand All @@ -44,5 +44,8 @@ dash_license_checker(
use_format_targets()

docs(
source_dir = "docs",
data = [
"@score_process//:needs_json",
],
source_dir = ".",
)
27 changes: 24 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module(
version = "1.0",
)

bazel_dep(name = "rules_python", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "rules_python", version = "1.8.3", dev_dependency = True)

# Python 3.12: Required for testing infrastructure and code generation tools
PYTHON_VERSION = "3.12"
Expand All @@ -30,6 +30,20 @@ python.toolchain(
python_version = PYTHON_VERSION,
)

pip = use_extension(
"@rules_python//python/extensions:pip.bzl",
"pip",
dev_dependency = True,
)
pip.parse(
envsubst = ["PIP_INDEX_URL"],
extra_pip_args = ["--index-url=${PIP_INDEX_URL:-https://pypi.org/simple/}"],
hub_name = "module_template_docs_hub_env",
python_version = PYTHON_VERSION,
requirements_lock = "@score_docs_as_code//src:requirements.txt",
)
use_repo(pip, "module_template_docs_hub_env")

# Add GoogleTest dependency
bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)

Expand Down Expand Up @@ -57,9 +71,16 @@ use_repo(llvm, "llvm_toolchain_llvm")
register_toolchains("@llvm_toolchain//:all")

# tooling
bazel_dep(name = "score_tooling", version = "1.0.4", dev_dependency = True)
bazel_dep(name = "score_tooling", version = "1.2.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_lint", version = "1.10.2", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)

#docs-as-code
bazel_dep(name = "score_docs_as_code", version = "2.3.0", dev_dependency = True)
bazel_dep(name = "score_docs_as_code", version = "3.1.0", dev_dependency = True)
bazel_dep(name = "score_process", version = "1.5.1", dev_dependency = True)

git_override(
module_name = "score_docs_as_code",
commit = "817080b1f184618a3ecb5bb9029e453ebc5fe806",
remote = "https://github.com/eclipse-score/docs-as-code.git",
)
1,151 changes: 998 additions & 153 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ It provides a **standardized project structure**, ensuring best practices for:
| File/Folder | Description |
| ----------------------------------- | ------------------------------------------------- |
| `README.md` | Short description & build instructions |
| `src/` | Source files and Unit Tests for the module |
| `score/` | Source files and Unit Tests for the module |
| `tests/` | Component and Feature Integration Tests (CIT&FIT) |
| `examples/` | Example files used for guidance |
| `docs/` | Documentation (Doxygen for C++ / mdBook for Rust) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know doxygen is not used currently.
OR am I on old information?

Copy link
Copy Markdown
Contributor Author

@RolandJentschETAS RolandJentschETAS Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unchanged (was there also before PR). We have to check that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation process is not finalised yet, that was planned for implementation, detailed design

Expand Down Expand Up @@ -61,15 +61,15 @@ cd YOUR_PROJECT
To build all targets of the module the following command can be used:

```sh
bazel build //src/...
bazel build //score/...
```

This command will instruct Bazel to build all targets that are under Bazel
package `src/`. The ideal solution is to provide single target that builds
package `score/`. The ideal solution is to provide single target that builds
artifacts, for example:

```sh
bazel build //src/<module_name>:release_artifacts
bazel build //score/<module_name>:release_artifacts
```

where `:release_artifacts` is filegroup target that collects all release
Expand All @@ -89,7 +89,7 @@ bazel test //...
Unit tests:

```sh
bazel test //src/...
bazel test //score/...
```

Component / Feature integration tests:
Expand All @@ -113,6 +113,14 @@ The template integrates **tools and linters** from **centralized repositories**
## 📖 Documentation

- A **centralized docs structure** is planned.
- This template builds Sphinx from the repository root. The configuration stays in
`conf.py`, the main document is `docs/index.rst`, and the root `BUILD` target uses
a repository-local `docs.bzl` wrapper because the upstream SCORE docs macro does not
currently support `source_dir = "."`.

```sh
bazel run //:docs
```

---

Expand Down
13 changes: 12 additions & 1 deletion docs/conf.py → conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
"score_layout",
]

# Collect documentation from the module-level docs folder and from each
# component's docs folder. Using include_patterns (added in Sphinx 7.1) avoids
# the need for symlinks inside the docs/ folder.
include_patterns = [
"index.rst",
"docs/**",
"score/example_component/docs/**",
]

exclude_patterns = [
# The following entries are not required when building the documentation via 'bazel
# build //docs:docs', as that command runs in a sandboxed environment. However, when
Expand All @@ -50,7 +59,9 @@
".venv_docs",
]

templates_path = ["templates"]
root_doc = "index"

templates_path = ["docs/templates"]

# Enable numref
numfig = True
Loading
Loading