Skip to content

Commit a4c41e0

Browse files
Catch certain documentation issues
1 parent a06848b commit a4c41e0

4 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/generate-docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- examples/**
2020
- docs/**
2121
- README.md
22-
- scripts/build-docs.sh
22+
- scripts/generate-docs.sh
2323
- .github/workflows/generate-docs.yml
2424
- .github/workflows/publish-docs.yml
2525
workflow_call:
@@ -62,7 +62,7 @@ jobs:
6262
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363
with:
6464
# fetch-depth: 0 is required so `git describe --tags` in
65-
# scripts/build-docs.sh resolves the right version from the git history.
65+
# scripts/generate-docs.sh resolves the right version from the git history.
6666
fetch-depth: 0
6767

6868
# Doxygen is available on ubuntu-latest, but we install explicitly for stability
@@ -86,7 +86,7 @@ jobs:
8686
args+=(--version "${{ github.ref_name }}")
8787
fi
8888
89-
./scripts/build-docs.sh "${args[@]}"
89+
./scripts/generate-docs.sh "${args[@]}"
9090
9191
- name: Print docs version
9292
shell: bash
@@ -104,7 +104,9 @@ jobs:
104104
105105
{
106106
echo "Version: \`${PROJECT_NUMBER}\`"
107-
echo "Note: On a non-tag PR, the version will resolve to \`<closest tag>-<commits since tag>-g<commit sha>\`"
107+
echo ""
108+
echo "> Note: On a non-tag/release run, the version will resolve to:"
109+
echo " \`<closest tag>-<commits since tag>-g<commit sha>\`"
108110
} >>"$GITHUB_STEP_SUMMARY"
109111
110112
- name: Verify docs were generated

docs/Doxyfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ WARNINGS = YES
906906
# will automatically be disabled.
907907
# The default value is: YES.
908908

909-
WARN_IF_UNDOCUMENTED = YES
909+
WARN_IF_UNDOCUMENTED = NO
910910

911911
# If the WARN_IF_DOC_ERROR tag is set to YES, Doxygen will generate warnings for
912912
# potential errors in the documentation, such as documenting some parameters in
@@ -963,7 +963,7 @@ WARN_LAYOUT_FILE = YES
963963
# Possible values are: NO, YES, FAIL_ON_WARNINGS and FAIL_ON_WARNINGS_PRINT.
964964
# The default value is: NO.
965965

966-
WARN_AS_ERROR = NO
966+
WARN_AS_ERROR = FAIL_ON_WARNINGS
967967

968968
# The WARN_FORMAT tag determines the format of the warning messages that Doxygen
969969
# can produce. The string should contain the $file, $line, and $text tags, which
@@ -2932,15 +2932,6 @@ DOT_GRAPH_MAX_NODES = 50
29322932

29332933
MAX_DOT_GRAPH_DEPTH = 0
29342934

2935-
# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
2936-
# files in one run (i.e. multiple -o and -T options on the command line). This
2937-
# makes dot run faster, but since only newer versions of dot (>1.8.10) support
2938-
# this, this feature is disabled by default.
2939-
# The default value is: NO.
2940-
# This tag requires that the tag HAVE_DOT is set to YES.
2941-
2942-
DOT_MULTI_TARGETS = NO
2943-
29442935
# If the GENERATE_LEGEND tag is set to YES Doxygen will generate a legend page
29452936
# explaining the meaning of the various boxes and arrows in the dot generated
29462937
# graphs.

include/livekit/subscription_thread_dispatcher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class LIVEKIT_API SubscriptionThreadDispatcher {
208208
///
209209
/// @param participant_identity Identity of the remote participant.
210210
/// @param source Track source associated with the subscription.
211+
/// @param track_name Track name associated with the subscription.
211212
/// @param track Subscribed remote track to read from.
212213
void handleTrackSubscribed(const std::string& participant_identity, TrackSource source, const std::string& track_name,
213214
const std::shared_ptr<Track>& track);
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repo_root="$(cd "${script_dir}/.." && pwd -P)"
2121

2222
usage() {
2323
cat <<'EOF'
24-
Usage: ./scripts/build-docs.sh [--version VERSION]
24+
Usage: ./scripts/generate-docs.sh [--version VERSION]
2525
2626
Build Doxygen HTML docs with a visible project version.
2727
@@ -104,6 +104,16 @@ fi
104104

105105
echo "==> Building Doxygen docs with PROJECT_NUMBER=${project_number}"
106106
cd "$repo_root"
107+
108+
# Doxygen owns the failure decision: docs/Doxyfile sets
109+
# WARN_IF_UNDOCUMENTED = NO (silences the ~400 "X is not documented"
110+
# warnings about internal/private symbols)
111+
# WARN_AS_ERROR = FAIL_ON_WARNINGS
112+
# so any remaining warning (broken @ref, unknown @-command, unsupported HTML
113+
# tag, malformed table, unreadable INPUT entry, etc.) fails this script via a
114+
# non-zero exit. There is no per-warning toggle in Doxygen; if a category
115+
# becomes too noisy to enforce, mute it at the WARN_IF_* level in the Doxyfile
116+
# rather than adding pattern allowlists here.
107117
LIVEKIT_DOXYGEN_PROJECT_NUMBER="$project_number" doxygen docs/Doxyfile
108118

109119
docs_index="${repo_root}/html/index.html"

0 commit comments

Comments
 (0)