Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement zola serve --store-html #2750

Merged
merged 4 commits into from
Jan 9, 2025
Merged

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

Copy link
Author

Choose a reason for hiding this comment

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

Does the new commit correspond to your idea?

I can also squash it onto the previous commit.

src/cli.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Keats Keats left a comment

Choose a reason for hiding this comment

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

Yep perfect

@Keats
Copy link
Collaborator

Keats commented Jan 4, 2025

Looks like legit tests failures

@ppom0
Copy link
Author

ppom0 commented Jan 8, 2025

Yes indeed!
Are you ok with the tests just testing serve without the --store-html option?

@Keats
Copy link
Collaborator

Keats commented Jan 9, 2025

Yes that's fine, thanks!

@Keats Keats merged commit 769ebc6 into getzola:next Jan 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants