-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add setting for path in preview #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -13,6 +13,7 @@ object SitePreviewPlugin extends AutoPlugin { | |||
val previewAuto = TaskKey[Unit]("previewAuto", "Launches an automatic jetty server that serves your generated site from the target directory") | |||
val previewFixedPort = SettingKey[Option[Int]]("previewFixedPort") in previewSite | |||
val previewLaunchBrowser = SettingKey[Boolean]("previewLaunchBrowser") in previewSite | |||
val previewPath = SettingKey[String]("previewPath", "path to open on `previewSite` and `previewAuto`") in previewSite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a bit strange that these settings are defined as in previewSite
but then are used in both previewSite and previewAuto. But that is for later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implements #142 by adding
previewPath
which gets added to the URL opened bypreviewSite
andpreviewAuto
.