Skip to content

Support generating individual URLs#137

Merged
jasonvarga merged 22 commits into
statamic:masterfrom
simonhamp:feature/individual-url-rendering
Jul 14, 2023
Merged

Support generating individual URLs#137
jasonvarga merged 22 commits into
statamic:masterfrom
simonhamp:feature/individual-url-rendering

Conversation

@simonhamp

@simonhamp simonhamp commented Jun 25, 2023

Copy link
Copy Markdown
Contributor

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

Keep it all consistent
Save polluting the generate method parameters. Should make merging easier
@jesseleite jesseleite marked this pull request as draft July 13, 2023 15:47
@jesseleite

jesseleite commented Jul 13, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
thomaskenne pushed a commit to thomaskenne/ssg that referenced this pull request Feb 10, 2024
Co-authored-by: Jesse Leite <jesseleite@gmail.com>
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.

3 participants