-
Notifications
You must be signed in to change notification settings - Fork 53
Updated YouTube Provider Documentation #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added YouTube screenshot covering URI details.
@Swamp2k9 is attempting to deploy a commit to the Listinai Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe pull request updates the YouTube integration documentation. In the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant D as Documentation Page
participant R as OAuth2Redirect Component
participant Y as YouTube OAuth Endpoint
U->>D: Navigate to YouTube integration page
D->>R: Render OAuth2Redirect component
R->>Y: Initiate OAuth2 redirect request
Y-->>R: Return authentication response
R-->>D: Complete OAuth2 integration flow
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
pages/providers/youtube.mdx (2)
36-36
: Optimize Component Prop Formatting.
The addition of<OAuth2Redirect provider = "youtube" />
effectively consolidates the redirect URI setup into a reusable component. For consistency with typical JSX conventions, consider removing the extra spaces around the=
operator (i.e.<OAuth2Redirect provider="youtube" />
).
38-38
: Ensure Clarity of Redirect URI Instruction.
The instruction "Under 'Authorized redirect URIs', insert your OAuth2 Redirect URI." is clear; however, given the new component encapsulation, double-check that this guidance is still necessary and perfectly aligned with how the component behaves. If the component itself renders any instructions, you might consider refining or even removing this text to avoid potential redundancy.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
public/images/providers/youtube/youtube-001.png
is excluded by!**/*.png
📒 Files selected for processing (1)
pages/providers/youtube.mdx
(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Build static docs
pages/providers/youtube.mdx
[error] 1-1: Module not found: Can't resolve '/home/runner/work/postiz-docs/postiz-docs/public/public/images/providers/youtube/youtube-001.png'
🔇 Additional comments (1)
pages/providers/youtube.mdx (1)
40-40
:⚠️ Potential issueFix Image Path to Resolve Build Error.
The image URL currently uses an absolute path that includes/public
, resulting in a duplicated directory in the build path (i.e.,/public/images/providers/youtube/youtube-001.png
). In Next.js or similar static setups, the correct reference should remove the/public
segment. Please update the path as shown below to resolve the build failure.- +✅ Verification successful
Fix Image Path in
pages/providers/youtube.mdx
The image reference currently uses an incorrect absolute path that includes the
/public
segment. Since Next.js (and similar static setups) serves static files from thepublic
folder at the root URL, the correct path should omit/public
. For example, update from:to
This change will resolve the duplicated directory issue during the build process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, our automatic build system generated an error, please fix it before I merge this:
"Module not found: Can't resolve '/home/runner/work/postiz-docs/postiz-docs/public/public/images/providers/youtube/youtube-001.png'"
@Swamp2k9 Hey, any Update? |
Updated capitalization to 'description'
Added another update. I thought that my other changes were in review. |
No, I mean to my Change Request. They were reviewed and had an error in it which needs to be fixed. |
I'm wondering if it has to do with the new directory + new image being created with the commit. |
I think the path is wrong, try removing "public/" |
removed '/public' from "![YouTube]"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works, LGTM!
https://docs.postiz.com/providers/youtube
Summary by CodeRabbit