Skip to content

Commit 84ed889

Browse files
committed
Update API reference and fix documentation cross-references
- docs/api_reference.jl: Add all missing source files to each module's documentation (Core, Unicode, Extensions, and all extensions) - docs/src/guide/test-runner.md: Remove invalid @ref to TestRunner.TestRunInfo (not accessible in documentation context) - ext/TestRunner/entry_point.jl: Remove invalid @ref to TestRunner.TestRunInfo from docstring - src/Core: Rename utils.jl to default.jl for clarity
1 parent 5139714 commit 84ed889

5 files changed

Lines changed: 56 additions & 13 deletions

File tree

docs/api_reference.jl

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ function generate_api_reference(src_dir::String)
1717
pages = [
1818
CTBase.automatic_reference_documentation(;
1919
subdirectory="api",
20-
primary_modules=[CTBase.Core => src(joinpath("Core", "Core.jl"))],
20+
primary_modules=[
21+
CTBase.Core => src(
22+
joinpath("Core", "Core.jl"),
23+
joinpath("Core", "default.jl"),
24+
joinpath("Core", "types.jl"),
25+
),
26+
],
2127
exclude=EXCLUDE_SYMBOLS,
2228
public=true,
2329
private=true,
@@ -63,7 +69,13 @@ function generate_api_reference(src_dir::String)
6369
),
6470
CTBase.automatic_reference_documentation(;
6571
subdirectory="api",
66-
primary_modules=[CTBase.Unicode => src(joinpath("Unicode", "Unicode.jl"))],
72+
primary_modules=[
73+
CTBase.Unicode => src(
74+
joinpath("Unicode", "Unicode.jl"),
75+
joinpath("Unicode", "subscripts.jl"),
76+
joinpath("Unicode", "superscripts.jl"),
77+
),
78+
],
6779
exclude=EXCLUDE_SYMBOLS,
6880
public=true,
6981
private=false, # there is no private API
@@ -74,7 +86,12 @@ function generate_api_reference(src_dir::String)
7486
CTBase.automatic_reference_documentation(;
7587
subdirectory="api",
7688
primary_modules=[
77-
CTBase.Extensions => src(joinpath("Extensions", "Extensions.jl"))
89+
CTBase.Extensions => src(
90+
joinpath("Extensions", "Extensions.jl"),
91+
joinpath("Extensions", "coverage_postprocessing.jl"),
92+
joinpath("Extensions", "documenter_reference.jl"),
93+
joinpath("Extensions", "test_runner.jl"),
94+
),
7895
],
7996
exclude=EXCLUDE_SYMBOLS,
8097
public=true,
@@ -102,7 +119,19 @@ function generate_api_reference(src_dir::String)
102119
pages,
103120
CTBase.automatic_reference_documentation(;
104121
subdirectory="api",
105-
primary_modules=[DocumenterReference => ext("DocumenterReference.jl")],
122+
primary_modules=[
123+
DocumenterReference => ext(
124+
joinpath("DocumenterReference", "DocumenterReference.jl"),
125+
joinpath("DocumenterReference", "config_helpers.jl"),
126+
joinpath("DocumenterReference", "entry_point.jl"),
127+
joinpath("DocumenterReference", "page_building.jl"),
128+
joinpath("DocumenterReference", "source_file_detection.jl"),
129+
joinpath("DocumenterReference", "symbol_classification.jl"),
130+
joinpath("DocumenterReference", "symbol_iteration.jl"),
131+
joinpath("DocumenterReference", "type_formatting.jl"),
132+
joinpath("DocumenterReference", "types.jl"),
133+
),
134+
],
106135
external_modules_to_document=[CTBase],
107136
exclude=EXCLUDE_DOCREF,
108137
public=false, # there is no public API
@@ -121,7 +150,11 @@ function generate_api_reference(src_dir::String)
121150
CTBase.automatic_reference_documentation(;
122151
subdirectory="api",
123152
primary_modules=[
124-
CoveragePostprocessing => ext("CoveragePostprocessing.jl")
153+
CoveragePostprocessing => ext(
154+
joinpath("CoveragePostprocessing", "CoveragePostprocessing.jl"),
155+
joinpath("CoveragePostprocessing", "entry_point.jl"),
156+
joinpath("CoveragePostprocessing", "helpers.jl"),
157+
),
125158
],
126159
external_modules_to_document=[CTBase],
127160
exclude=EXCLUDE_SYMBOLS,
@@ -140,7 +173,17 @@ function generate_api_reference(src_dir::String)
140173
pages,
141174
CTBase.automatic_reference_documentation(;
142175
subdirectory="api",
143-
primary_modules=[TestRunner => ext("TestRunner.jl")],
176+
primary_modules=[
177+
TestRunner => ext(
178+
joinpath("TestRunner", "TestRunner.jl"),
179+
joinpath("TestRunner", "arg_parsing.jl"),
180+
joinpath("TestRunner", "entry_point.jl"),
181+
joinpath("TestRunner", "progress.jl"),
182+
joinpath("TestRunner", "test_execution.jl"),
183+
joinpath("TestRunner", "test_selection.jl"),
184+
joinpath("TestRunner", "types.jl"),
185+
),
186+
],
144187
external_modules_to_document=[CTBase],
145188
exclude=EXCLUDE_SYMBOLS,
146189
public=false, # there is no public API

docs/src/guide/test-runner.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,20 @@ The progress line is also automatically disabled when a custom `on_test_done` ca
227227

228228
## Callbacks
229229

230-
The `on_test_start` and `on_test_done` callbacks allow custom actions during the test lifecycle. Both receive a [`TestRunner.TestRunInfo`](@ref) struct.
230+
The `on_test_start` and `on_test_done` callbacks allow custom actions during the test lifecycle. Both receive a `TestRunInfo` struct with the following fields:
231231

232232
### `TestRunInfo`
233233

234234
```julia
235235
struct TestRunInfo
236-
spec::Union{Symbol,String} # Test identifier
236+
spec::Union{Symbol,String} # Test identifier
237237
filename::String # Absolute path of the test file
238-
func_symbol::Union{Symbol,Nothing} # Function to call (nothing if eval_mode=false)
238+
func_symbol::Union{Symbol,Nothing} # Function to call (nothing if eval_mode=false)
239239
index::Int # 1-based index in the selected list
240240
total::Int # Total number of selected tests
241241
status::Symbol # See below
242-
error::Union{Exception,Nothing} # Captured exception (only when status == :error)
243-
elapsed::Union{Float64,Nothing} # Wall-clock seconds (only in on_test_done)
242+
error::Union{Exception,Nothing} # Captured exception (only when status == :error)
243+
elapsed::Union{Float64,Nothing} # Wall-clock seconds (only in on_test_done)
244244
end
245245
```
246246

ext/TestRunner/entry_point.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ julia> CTBase.Extensions.run_tests(;
4545
)
4646
```
4747
48-
See also: [`CTBase.Extensions.run_tests`](@ref), [`CTBase.TestRunner.TestRunInfo`](@ref)
48+
See also: [`CTBase.Extensions.run_tests`](@ref)
4949
"""
5050
function Extensions.run_tests(
5151
::CTBase.Extensions.TestRunnerTag;

src/Core/Core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Core
1111
import DocStringExtensions: TYPEDEF, TYPEDSIGNATURES
1212

1313
include("types.jl")
14-
include("utils.jl")
14+
include("default.jl")
1515

1616
# Export public API
1717
export ctNumber
File renamed without changes.

0 commit comments

Comments
 (0)