Skip to content

Support sass on all pegasus sites - #48102

Merged
bencodeorg merged 1 commit into
stagingfrom
ben/scss-hourofcode
Sep 15, 2022
Merged

Support sass on all pegasus sites#48102
bencodeorg merged 1 commit into
stagingfrom
ben/scss-hourofcode

Conversation

@bencodeorg

Copy link
Copy Markdown
Contributor

Adds sass support to hourofcode.com (primary goal) and advocacy.code.org (why not). A sass file called ben.scss would be available at /css/generated/ben.css, which is the same pattern as we use in code.org currently.

As an aside, now serves advocacy.code.org at localhost.advocacy.code.org:3000 in development, which it appears we registered to lookup localhost at some point, but isn't configured to work currently.

Links

Testing story

I added a scss file to the css directories in pegasus/sites.v3/hourofcode.com and pegasus/sites.v3/advocacy.code.org, and used them to style some text on the homepage of each site. I also looked at the compiled css files at URLs like localhost.hourofcode.com:3000/css/generated/ben.css.

@bencodeorg
bencodeorg requested review from a team and kelbyhawn September 14, 2022 21:55
@bencodeorg

Copy link
Copy Markdown
Contributor Author

@code-dot-org/infrastructure could use a quick check that supporting advocacy.code.org locally isn't a bad idea.

config.hosts << "localhost.code.org"
config.hosts << "localhost.hourofcode.com"
config.hosts << "localhost.codeprojects.org"
config.hosts << "localhost-advocacy.code.org"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This seems like a reasonable addition.

@epeach epeach left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't fully understand how Sass works, but this looks like reasonable changes.

@kelbyhawn kelbyhawn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yay! Thanks for doing this Ben 😄

@bencodeorg
bencodeorg merged commit 3f31521 into staging Sep 15, 2022
@bencodeorg
bencodeorg deleted the ben/scss-hourofcode branch September 15, 2022 17:07
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