Merge branch 'homepage' into syntax-highlighting

* homepage:
  fix remaining references
  Update .github/workflows/shadow-repo.yml
  Add shadow repo workflow
  Update source/community.md
  font-size revert until future PR
  apply style to class instead of alert heading
This commit is contained in:
Jonny Gerig Meyer 2023-01-31 18:01:26 -05:00
commit 148d061479
No known key found for this signature in database
GPG Key ID: FB602F738A872F7F
5 changed files with 79 additions and 5 deletions

72
.github/workflows/shadow-repo.yml vendored Normal file
View File

@ -0,0 +1,72 @@
name: Sync with shadow repo
on:
push:
create:
delete:
pull_request:
types: [opened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
sync-branch:
name: Create/delete shadow branch
runs-on: ubuntu-latest
if: github.event.ref_type == 'branch'
steps:
- name: Clone shadow repo
uses: actions/checkout@v3
with:
repository: ${{ vars.SHADOW_OWNER }}/${{ vars.SHADOW_REPO }}
ssh-key: ${{ secrets.SHADOW_REPO_PRIVATE_KEY }}
ref: main
- name: Create branch on shadow repo
if: github.event_name == 'create'
run: git push origin main:${{ github.event.ref }}
- name: Delete branch on shadow repo
if: github.event_name == 'delete'
run: git push origin --delete ${{ github.event.ref }}
push-branch:
name: Push to shadow branch
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn install
- run: yarn build-prod
- name: Clone shadow repo
uses: actions/checkout@v3
with:
repository: ${{ vars.SHADOW_OWNER }}/${{ vars.SHADOW_REPO }}
ssh-key: ${{ secrets.SHADOW_REPO_PRIVATE_KEY }}
ref: ${{ github.ref_name }}
path: shadow-repo
- name: Push to shadow branch
run: |
cd shadow-repo
rm -rf ./*
cp -rT ../_site .
git config user.name github-actions
git config user.email github-actions@github.com
git add -A
git commit --allow-empty -m "Update from https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
git push origin
diff-link:
name: Create comment to diff link
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'opened'
steps:
- uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.number }}
body: |
View diff of compiled files (may take a few minutes): https://github.com/${{ vars.SHADOW_OWNER }}/${{ vars.SHADOW_REPO }}/compare/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.ref }}

View File

@ -5,7 +5,7 @@
role="banner"> role="banner">
<div class="sl-c-alert sl-c-alert--special"> <div class="sl-c-alert sl-c-alert--special">
<div class="sl-l-container"> <div class="sl-l-container">
<h2>Black Lives Matter</h2> <h2 class="sl-c-alert-title">Black Lives Matter</h2>
{% renderTemplate 'md' %} {% renderTemplate 'md' %}
Sass stands with the protesters against police violence. We encourage our users to Sass stands with the protesters against police violence. We encourage our users to
**get in the streets and join them if you can**. **get in the streets and join them if you can**.

View File

@ -14,8 +14,6 @@
padding-top: var(--alert-padding-block, var(--gutter-minus)); padding-top: var(--alert-padding-block, var(--gutter-minus));
text-align: var(--alert-align, center); text-align: var(--alert-align, center);
h2,
h3,
p, p,
ul, ul,
dl { dl {
@ -60,3 +58,7 @@
--alert-bg: black; --alert-bg: black;
--alert-padding-block: var(--gutter-triple); --alert-padding-block: var(--gutter-triple);
} }
.sl-c-alert-title {
margin-top: 0;
}

View File

@ -54,7 +54,7 @@
font-size: 1.25rem; font-size: 1.25rem;
.sl-c-callout { .sl-c-callout {
font-size: var(--gutter); font-size: 1rem;
} }
} }
} }

View File

@ -12,7 +12,7 @@ eleventyComputed:
## Resources ## Resources
### [Jump Start Sass](https://amzn.to/2LKF0uR) ### [Jump Start Sass](https://amzn.to/2LKF0uR)
by Hugo Giraudel and Miriam Suzanne by Kitty Giraudel and Miriam Suzanne
### [Pragmatic Guide to Sass 3: Tame the Modern Style Sheet](https://amzn.to/2LEwXiZ) ### [Pragmatic Guide to Sass 3: Tame the Modern Style Sheet](https://amzn.to/2LEwXiZ)
by Hampton Lintorn Catlin and Michael Lintorn Catlin by Hampton Lintorn Catlin and Michael Lintorn Catlin