New commands and draft page support#9
Merged
Conversation
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.
This pull request introduces several new features and improvements to the Nitro static site generator, focusing on enhanced build customization, environment management, and CLI usability. The most notable changes are the addition of draft page support, environment variable handling, expanded CLI commands, and improved sitemap generation. These updates are reflected in both the documentation and the codebase.
New Features and Enhancements
draft=Trueattribute inPage. Drafts are rendered during development but excluded from production builds and sitemap generation. [1] [2]envmodule, which auto-loads.envfiles and provides attribute-based access to environment variables, with helpers for production/development checks. Requirespython-dotenvas an optional dependency. [1] [2] [3] [4] [5] [6]CLI Improvements
nitro init,nitro routes,nitro check, andnitro export. These commands support project initialization, route listing, site validation, and exporting builds as zip archives. [1] [2] [3] [4] [5] [6] [7] [8]Build and Sitemap Enhancements
production=Trueflag to the generator for more accurate build behavior. [1] [2]Dependency and Version Updates
nitro-uito>=1.0.6, added optionalpython-dotenvfor environment variable support, and bumpednitro-cliversion to1.0.8. [1] [2] [3]These changes collectively improve workflow flexibility, site customization, and developer experience.