Releases: iagobalmeida/scalar_doc
Releases · iagobalmeida/scalar_doc
v0.2.0
ChangeLog
Major Changes
- fix: prioritizing scalar_doc.toml over pyproject.toml in cli usage
scalar_doc.tomlwas being ignored when there was apyproject.tomlfile.
- [fix: contemplating
[scalar_doc.theme] logo_url&[scalar_doc.theme] logo_url_darkin cli usage]
(4ce3d0e)- There was no way of setting the
logo_urlusing only configuration files.
- There was no way of setting the
- fix: using self.theme.logo_url if ScalarHeader is not defined
- There was no usage of the
ScalarTheme.logo_urlproperty
- There was no usage of the
- refactor: unifying ScalarDoc.to_html()
- Previously, the
libused two different mechanisms to resolve the renderedHTML: one for spec="url" and another for spec="json". This inconsistency also affected how configuration arguments were passed toScalaron the JavaScript layer, resulting in unexpected behavior. - Both spec types now share the same HTML-resolution path, ensuring that all required configuration arguments are applied consistently and correctly.
- Previously, the
Features
- feat: allowing custom
scalar_cdn_urlinjection and contemplatingwith_default_fontsin ScalarConfiguration- As sugested in Support for additional configuration options
Minor Changes
- chore: removing unused attribute
- fix: printing spec in dry-run
- fix: adding default values to ScalarDoc.__openapi_json & ScallarDoc.__openapi_url