-
Notifications
You must be signed in to change notification settings - Fork 0
Add default screenshots URL and improve param handling #1
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
Introduces DEFAULT_SCREENSHOTS_URL for temporary screenshot hosting and updates AppletDirective to auto-generate fig URLs when not provided. Also refines parameter extraction and language handling for applet URLs.
Replaces the temporary screenshots URL with a permanent image URL based on DEFAULT_BASE_URL. Refactors parameter extraction and merging logic to improve clarity and ensure language parameter is set according to document settings.
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.
Pull Request Overview
This PR introduces a default URL for screenshot hosting and enhances the AppletDirective to automatically generate fig URLs when not provided. It also adds URL parameter extraction and merging logic, allowing parameters from the URL to be combined with other configuration options while respecting document language settings.
Key Changes
- Added automatic fig URL generation using DEFAULT_BASE_URL when fig option is not specified
- Implemented URL parameter parsing to extract and merge query parameters from the applet URL
- Added language parameter override based on document configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Improves the check for url_params to ensure it is not an empty string before processing. Adds comments clarifying lack of validation and that language parameter is always overwritten.
Clarifies that only `url` and `name` are required parameters for an applet, not `fig`. Adds a note explaining the fallback behavior for the `fig` parameter and updates the parameters table for better documentation accuracy.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Introduces DEFAULT_SCREENSHOTS_URL for temporary screenshot hosting and updates AppletDirective to auto-generate fig URLs when not provided. Also refines parameter extraction and language handling for applet URLs.