Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ jobs:
name: License Check
uses: ./.github/workflows/license_check.yml

# link-check is cheap (seconds) and should run on every PR
link-check:
name: Link Check
uses: ./.github/workflows/link_check.yml

cpp-checks:
name: C++ Checks
needs: changes
Expand Down Expand Up @@ -141,6 +146,7 @@ jobs:
- license-check
- cpp-checks
- generate-docs
- link-check
- rust-release-check
if: always()
steps:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Link Check

# Validates docs.livekit.io and other URLs referenced in public headers and
# hand-written documentation. Modeled on livekit/client-sdk-esp32 link_check.yml.
on:
workflow_call: {}
workflow_dispatch: {}

jobs:
check-links:
name: Link Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Restore lychee cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Run lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
args: >-
--verbose
--no-progress
--cache
--max-cache-age 1d
--root-dir .
'include/livekit/**/*.h'
'docs/**/*.md'
README.md
fail: true
jobSummary: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.cache/
.lycheecache
CMakeFiles/
CMakeCache.txt
.DS_Store
Expand Down
12 changes: 12 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Local/dev-only URLs.
http://localhost:*
https://localhost:*
ws://localhost:*
wss://localhost:*

# Ecosystem footer links that reject automated checks (403/405) but work in browsers.
https://docs.livekit.io/mcp
https://livekit.io/join-slack
https://livekit.com/join-slack
https://join.slack.com/*
https://livekit-users.slack.com/*
2 changes: 1 addition & 1 deletion docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ livekit::setLogCallback(
livekit::setLogCallback(nullptr);
```

See the [`logging_levels/custom_sinks.cpp`](https://github.com/livekit-examples/cpp-example-collection/blob/main/logging_levels/custom_sinks.cpp)
See the [`logging_levels/custom_sinks`](https://github.com/livekit-examples/cpp-example-collection/tree/main/logging_levels/custom_sinks)
example for three copy-paste-ready patterns: a **file logger**, **JSON
structured lines**, and a **ROS2 bridge** that maps `LogLevel` to `RCLCPP_*`
macros.
Expand Down
Loading