Skip to content

Commit 9a12215

Browse files
authored
Merge pull request #494 from pipecat-ai/mb/0.0.99-docs-updates
0.0.99 docs cleanup, add CI for broken link detection
2 parents 875c9c1 + 2901ab5 commit 9a12215

3 files changed

Lines changed: 46 additions & 3 deletions

File tree

.github/workflows/broken-links.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Check for Broken Links
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
# Allow manual trigger
11+
workflow_dispatch:
12+
13+
jobs:
14+
check-links:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "20"
25+
26+
- name: Install Mintlify CLI
27+
run: npm install -g mint
28+
29+
- name: Check for broken links
30+
run: mint broken-links
31+
continue-on-error: false
32+
33+
- name: Comment on PR (if failed)
34+
if: failure() && github.event_name == 'pull_request'
35+
uses: actions/github-script@v7
36+
with:
37+
script: |
38+
github.rest.issues.createComment({
39+
issue_number: context.issue.number,
40+
owner: context.repo.owner,
41+
repo: context.repo.repo,
42+
body: '❌ **Broken links detected!**\n\nPlease check the workflow logs for details on which links are broken and fix them before merging.'
43+
})

server/frameworks/rtvi/google-rtvi-observer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This observer should replace the base `RTVIObserver` and be set up exactly the s
5353
from pipecat.services.google.rtvi import GoogleRTVIObserver
5454

5555
# Create the RTVIProcessor
56-
rtvi = RTVIProcessor(config=RTVIConfig(config=[]))
56+
rtvi = RTVIProcessor()
5757

5858
# Add to pipeline
5959
pipeline = Pipeline([

server/frameworks/rtvi/rtvi-processor.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ The `RTVIProcessor` manages bidirectional communication between clients and your
1010
Add the `RTVIProcessor` to your pipeline:
1111

1212
```python
13-
from pipecat.processors.rtvi import RTVIProcessor, RTVIConfig, RTVIServiceConfig
13+
from pipecat.processors.frameworks.rtvi import RTVIProcessor
1414

1515
# Create the RTVIProcessor
16-
rtvi = RTVIProcessor(config=RTVIConfig(config=[]))
16+
rtvi = RTVIProcessor()
1717

1818
# Add to pipeline
1919
pipeline = Pipeline([

0 commit comments

Comments
 (0)