-
Notifications
You must be signed in to change notification settings - Fork 0
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
UI bundle previews #33
Conversation
UI bundle preview build successful! ✅ |
Antora site build successful! ✅ |
UI bundle preview build successful! ✅ |
Antora site build successful! ✅ |
if (uiModel.env.UI_ROOT_PATH_PREFIX) { | ||
uiRootPath = path.join('/', uiModel.env.UI_ROOT_PATH_PREFIX, uiRootPath) | ||
} | ||
uiModel.uiRootPath = uiRootPath |
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 is the only real deviation necessary from the default antora UI build task. In order to support having the preview build reside in a subdirectory, I needed a way to provide the path prefix at build time.
src/css/ds-vars.css
Outdated
@@ -1,6 +1,6 @@ | |||
:root { | |||
--ds-common-black: #090909; | |||
--ds-common-white: #fff; | |||
--ds-common-white: #ff0; |
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.
I'll remove this before merging, but needed a way to test.
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.
My eyes 😵
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.
😂
b24d92b
to
ddfba58
Compare
UI bundle preview build failure! ❌
|
Antora site build failure! ❌
|
UI bundle preview build successful! ✅ |
Antora site build successful! ✅ |
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.
Everything looks great as far as I can tell. Nice work!
The only thing I would say is that it would be nice if the preview and draft build notices were merged into a single comment so that the comment stream doesn't get overly polluted. But I recognize that's probably just a "nice to have" and not necessarily a blocker.
Agreed. I had considered this too, but due to the way the builds are happening in parallel (bundle preview happens on this repository, Antora preview happens on |
ea9a2e4
to
c604f83
Compare
UI bundle preview build successful! ✅ |
Antora site build successful! ✅ |
This PR adds an Antora UI bundle preview build and a full Antora preview build that will both utilize whatever UI bundle changes exist on your Pull Request.
The reason I went with both a UI bundle preview, and a full Antora build preview is so we have the best of both worlds. Without the UI bundle preview build it's harder to make UI bundle changes that also require content changes to test properly. Without the Antora build preview you don't have the ability to see how your UI changes impact the real Antora build. With both previews we get both for added confidence in our change.
We will also receive any lint errors that happen as part of the UI bundle build or the Antora site build as comments on the PR.