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

Support generating individual URLs #137

Merged
merged 22 commits into from
Jul 14, 2023

Conversation

simonhamp
Copy link
Contributor

@simonhamp simonhamp commented Jun 25, 2023

Edit by @jesseleite:
We decided to pass urls as args instead... ie. php please ssg:generate /about /contact


Occasionally, you just want to build a specific page or a set of pages. With this new --url option you can do just that:

php please ssg:generate --url=/about --url=/contact

This will attempt to generate only these two pages and no more. It also doesn't clear the entire build directory

@jesseleite jesseleite marked this pull request as draft July 13, 2023 15:47
@jesseleite
Copy link
Member

jesseleite commented Jul 13, 2023

Love this feature PR, thanks! ❤️

We discussed, and I reworked to pass in as args instead of requiring --url option flags...

CleanShot 2023-07-13 at 12 41 34

Which is nice and clean in practice...

CleanShot 2023-07-13 at 12 40 54

Just going to add a some tests here once #140 gets merged, as I added some basic generator test coverage over there 👍

@simonhamp
Copy link
Contributor Author

Agreed, much nicer!

@jesseleite jesseleite marked this pull request as ready for review July 13, 2023 20:13
@jasonvarga jasonvarga merged commit b737c7a into statamic:master Jul 14, 2023
13 checks passed
thomaskenne pushed a commit to thomaskenne/ssg that referenced this pull request Feb 10, 2024
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.

None yet

3 participants