Closed uvulpos closed 5 months ago
The changes add a new field CustomScript
to the Config
struct, enabling the inclusion of custom JavaScript in the HTML template. Conditional blocks have been inserted into index.go
to allow this custom script to be included based on specific conditions, enhancing the flexibility and customization capabilities of the template rendering process.
File | Change Summary |
---|---|
config.go | Added a new field CustomScript of type template.JS to the Config struct for custom scripts. |
index.go | Updated the HTML template functionality to conditionally insert custom scripts in addition to styles. |
sequenceDiagram
participant User
participant Server
participant Config
participant HTMLTemplate
User->>Server: Request Page
Server->>Config: Fetch Configuration
Config-->>Server: Send Config (with CustomScript)
Server->>HTMLTemplate: Render Template (with CustomScript if available)
HTMLTemplate-->>Server: Compiled HTML
Server-->>User: Send Compiled HTML
In the code where changes sweep, New scripts in HTML do creep.🖥️ Custom scripts with thoughts so clear, Enhance the templates, bring in cheer. Customize, adapt, and then deploy, A coder's craft, a user's joy. 💻✨
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
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?
improves workarounds like #76 enables to customize swagger ui further
workaround for https://github.com/swagger-api/swagger-ui/pull/7521
Summary by CodeRabbit