Skip to content

lua: expose quarto.brand; add has_mode() function #12486

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Conversation

gordonwoodhull
Copy link
Contributor

@gordonwoodhull gordonwoodhull commented Apr 8, 2025

Expose _quarto.modules.brand as quarto.brand.

Add has_mode()

Fixes #12453

cc @mcanouil

@gordonwoodhull gordonwoodhull added this to the v1.7 milestone Apr 8, 2025
@cscheid
Copy link
Collaborator

cscheid commented Apr 8, 2025

Great! Could you add some type definitions? src/resources/lua-types

@gordonwoodhull
Copy link
Contributor Author

gordonwoodhull commented Apr 8, 2025

Types/docs added, and I see them in VSCode popup. 👍

image

@gordonwoodhull gordonwoodhull merged commit 4e5fec8 into main Apr 9, 2025
49 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/12453 branch April 9, 2025 10:50
@gordonwoodhull gordonwoodhull mentioned this pull request Apr 15, 2025
49 tasks
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.

Lua API for determining which brand modes are available
2 participants