|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2024 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 | +load("@aspect_rules_py//py:defs.bzl", "py_library") |
| 15 | +load("//:docs.bzl", "docs") |
| 16 | + |
| 17 | +# Creates all documentation targets: |
| 18 | +# - `docs:incremental` for building docs incrementally at runtime |
| 19 | +# - `docs:live_preview` for live preview in the browser without an IDE |
| 20 | +# - `docs:ide_support` for creating python virtualenv for IDE support |
| 21 | +# - `docs:docs` for building documentation at build-time |
| 22 | + |
| 23 | +docs( |
| 24 | + conf_dir = "docs", |
| 25 | + docs_targets = [ |
| 26 | + { |
| 27 | + "suffix": "latest", # latest main branch documentation build |
| 28 | + "external_needs_info": [ |
| 29 | + { |
| 30 | + "base_url": "https://eclipse-score.github.io/score/main/", |
| 31 | + "json_url": "https://eclipse-score.github.io/score/main/needs.json", |
| 32 | + "version": "0.1", |
| 33 | + "id_prefix": "score_", |
| 34 | + }, |
| 35 | + ], |
| 36 | + }, |
| 37 | + ], |
| 38 | + source_dir = "docs", |
| 39 | + source_files_to_scan_for_needs_links = [ |
| 40 | + # Note: you can add filegroups, globs, or entire targets here. |
| 41 | + "//src:score_extension_files", |
| 42 | + ], |
| 43 | +) |
| 44 | + |
| 45 | +# ╭───────────────────────────────────────╮ |
| 46 | +# │ This is commented out until local │ |
| 47 | +# │ multi-repo testing is implemented │ |
| 48 | +# ╰───────────────────────────────────────╯ |
| 49 | + |
| 50 | +# { |
| 51 | +# "suffix": "release", # The version imported from MODULE.bazel |
| 52 | +# "target": ["@score_platform//docs:docs"], |
| 53 | +# "external_needs_info": [ |
| 54 | +# { |
| 55 | +# "base_url": "https://eclipse-score.github.io/score/pr-980/", |
| 56 | +# "json_path": "/score_platform~/docs/docs/_build/html/needs.json", |
| 57 | +# "version": "0.1", |
| 58 | +# }, |
| 59 | +# ], |
| 60 | +# }, |
0 commit comments