Skip to content
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

Implement zola serve --store-html #2750

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

ppom0
Copy link

@ppom0 ppom0 commented Dec 27, 2024

Fixes #2377

@@ -114,10 +116,10 @@ impl Site {
}

/// Enable some `zola serve` related options
pub fn enable_serve_mode(&mut self) {
pub fn enable_serve_mode(&mut self, both: bool) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's an enum for it, use it in the params instead of a bool

@@ -82,6 +82,10 @@ pub enum Command {
#[clap(short = 'O', long)]
open: bool,

/// Also store HTML in the public/ folder (by default HTML is only stored in-memory)
#[clap(short = 'H', long)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only having long here is fine

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