feat: add --theme CLI option to override configuration theme#308
Merged
rochacbruno merged 5 commits intomainfrom Jul 22, 2025
Merged
feat: add --theme CLI option to override configuration theme#308rochacbruno merged 5 commits intomainfrom
rochacbruno merged 5 commits intomainfrom
Conversation
Closes #169
- Add --theme option to Configuration struct in cli.rs - Update override_from_cli_args to handle theme CLI argument - CLI theme option takes precedence over config file setting - Update CLI documentation with --theme usage examples - Update themes documentation with CLI override information - Update configuration reference with theme CLI option - Update getting started guide with modern theme structure - Remove syntect dependency to resolve onig_sys compilation issues The --theme CLI option enables: - Testing themes without modifying configuration - Building with different themes for different environments - Overriding theme specified in marmite.yaml - Automated builds with theme selection Example usage: marmite /site /output --theme mytheme marmite /site /output --theme "" # disable theme Breaking: Removed syntect feature from comrak to eliminate onig_sys dependency and resolve compilation issues on some systems. This removes syntax highlighting in code blocks but maintains all other markdown functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new
--themeCLI option that allows users to override the theme specified in their configuration file. This enables testing different themes and building with different themes for different environments without modifying the config file.Changes
Core Implementation
--theme <THEME>option to CLI configuration insrc/cli.rsoverride_from_cli_argsinsrc/config.rsto handle theme CLI overridemarmite.yamltheme settingDocumentation Updates
--themeusage examplesDependencies
syntectfeature in comrak to resolveonig_syscompilation issuesUsage Examples
Benefits
Breaking Changes
Test Plan
--themeoption