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

Temporarily remove Hugo Pipes Sass conversion #10373

Merged
merged 5 commits into from
Oct 1, 2018
Merged

Temporarily remove Hugo Pipes Sass conversion #10373

merged 5 commits into from
Oct 1, 2018

Conversation

lucperkins
Copy link
Contributor

Background: Netlify does not yet support the "extended" version of Hugo, which includes support for Sass conversion to CSS (which is under the Hugo Pipes feature). The current workaround for this issue is to commit the generated resources folder to Git. As with most instances of committing generated assets to Git, this has produced a variety of headaches. This PR removes the Hugo Pipes Sass conversion pipeline in favor of one that uses the sass CLI tool for those who need to work with Sass. Once Netlify supports the extended version of Hugo we can go back to using Hugo Pipes.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 24, 2018
@lucperkins
Copy link
Contributor Author

/assign @chenopis @zparnold @kbhawkey

@k8s-ci-robot
Copy link
Contributor

@lucperkins: GitHub didn't allow me to assign the following users: kbhawkey.

Note that only kubernetes members and repo collaborators can be assigned.
For more information please see the contributor guide

In response to this:

/assign @chenopis @zparnold @kbhawkey

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8sio-netlify-preview-bot
Copy link
Collaborator

Deploy preview for kubernetes-io-master-staging ready!

Built with commit 830343f

https://deploy-preview-10373--kubernetes-io-master-staging.netlify.com

@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Sep 24, 2018

Deploy preview for kubernetes-io-master-staging ready!

Built with commit e538468

https://deploy-preview-10373--kubernetes-io-master-staging.netlify.com

@@ -24,6 +24,9 @@ production-build: build check-headers-file ## Build the production site and ensu
non-production-build: ## Build the non-production site, which adds noindex headers to prevent indexing
hugo --enableGitInfo

sass-build:
scripts/sass.sh build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit: HUGO_VERSION is set in Makefile and netlify.toml. Is there a better place to set this variable that all scripts/configuration can use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately there really isn't a way around that AFAIK. Netlify needs to have that information in the config and the Makefile needs it for people to be able to easily build the Docker image. Ideally the Dockerfile could extract that information from the Netlify config but I'm not sure there's a way to do that that doesn't add a lot of complexity.


.open-nav, .y-enough
#tryKubernetes
width: 150px
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you accept an update here or should I continue with PR#10353?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say hold off on that. Wait for this PR to be merged, then move all of the Sass files in assets/sass into this root-level folder in your PR. That strikes me as the least messy option.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

sass/_base.sass Outdated
@@ -996,8 +996,10 @@ dd
img
max-width: 100%

#TableOfContents > ul > li { list-style: none; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did these files get moved from assets?

Copy link
Contributor

@zacharysarah zacharysarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucperkins Thanks for the workaround until netlify catches up. ✨

One request: add an OWNERS to sass/ to let @alexcontini continue working as needed (see comment on resources/OWNERS).

I'm willing to approve if other reviewers /lgtm. 👍

@@ -490,7 +490,7 @@ Slack channel or the
If you aren't ready to create a pull request but you want to see what your
changes look like, you can use the `hugo` command to stage the changes locally.
1. Install Hugo version `0.40.3` or later.
1. Install Hugo version {{< hugoVersion >}} or later.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice update! ✨

resources/OWNERS Outdated
@@ -1,8 +0,0 @@
# Allow CSS/SASS updates from blog and case studies owners
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think we need to add this file verbatim to sass/ until we reenable the Sass conversion pipe, so that @alexcontini can continue making updates.

Otherwise, it makes sense to delete this, given that it only gives permissions to generated results. Sorry for not cleaning this up in #10198!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call on that! Completely missed it. Done.

@zacharysarah
Copy link
Contributor

@kbhawkey 👋 Does this PR look good enough to you to /lgtm?

@kbhawkey
Copy link
Contributor

kbhawkey commented Oct 1, 2018

/lgtm

@k8s-ci-robot
Copy link
Contributor

@kbhawkey: changing LGTM is restricted to assignees, and only kubernetes/website repo collaborators may be assigned issues.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@zacharysarah
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 1, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zacharysarah

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 1, 2018
@k8s-ci-robot k8s-ci-robot merged commit 4c2b566 into kubernetes:master Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants