Skip to content

Conversation

@douden
Copy link
Member

@douden douden commented Oct 24, 2025

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.

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.
@douden douden marked this pull request as draft October 25, 2025 07:50
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.
@douden douden marked this pull request as ready for review October 27, 2025 10:55
@douden douden requested a review from Copilot October 27, 2025 10:55
Copy link
Contributor

Copilot AI left a 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.

douden and others added 4 commits October 27, 2025 11:58
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.
@douden douden requested a review from Copilot October 27, 2025 11:07
Copy link
Contributor

Copilot AI left a 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>
@douden douden merged commit 0c94746 into main Oct 27, 2025
3 checks passed
@douden douden deleted the include-language-and-static branch October 27, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants