From 46fe6c34f772124a553b379ff7c92b87be4c89cf Mon Sep 17 00:00:00 2001 From: Zach Margolis Date: Fri, 3 May 2024 10:01:58 -0700 Subject: [PATCH] Add fox emoji for GitLab repo links --- _articles/cloud-gov-pages.md | 2 +- _articles/{github.md => github-gitlab.md} | 3 ++- _articles/pull-request-review.md | 6 +++--- assets/scss/main.css.scss | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 5 deletions(-) rename _articles/{github.md => github-gitlab.md} (99%) diff --git a/_articles/cloud-gov-pages.md b/_articles/cloud-gov-pages.md index b15a0a2e..a24feb2f 100644 --- a/_articles/cloud-gov-pages.md +++ b/_articles/cloud-gov-pages.md @@ -11,7 +11,7 @@ subcategory: Code Login.gov uses [Cloud.gov Pages][cloud-gov-pages] as its hosting provider for our [static sites][static-sites]. By becoming a user of the Login.gov organization in Cloud.gov Pages, you'll have access to build logs and settings configuration for each of our sites. Organization access also allows you to log in on sites which use Netlify CMS ([including this handbook!][handbook-admin]). [cloud-gov-pages]: https://cloud.gov/pages/ -[static-sites]: {% link _articles/github.md %}#static-sites +[static-sites]: {% link _articles/github-gitlab.md %}#static-sites [handbook-admin]: {{ site.baseurl }}/admin/ ## Requesting Access to Cloud.gov Pages diff --git a/_articles/github.md b/_articles/github-gitlab.md similarity index 99% rename from _articles/github.md rename to _articles/github-gitlab.md index 2b8b251c..0b1efb01 100644 --- a/_articles/github.md +++ b/_articles/github-gitlab.md @@ -5,6 +5,7 @@ layout: article category: Development subcategory: Code cspell: ignore omniauth +redirect_from: /articles/github.html --- ## Repositories @@ -71,7 +72,7 @@ Some repositories in GitHub are mirrored from our self-hosted GitLab. ### Platform and Infrastructure -- [**`18f/identity-devops`**](https://github.com/18f/identity-devops) +- [**`lg/identity-devops`**](https://gitlab.login.gov/lg/identity-devops) Platform CLI tools, Terraform for infrastructure as code (IaC), Chef for instance (server) provisioning, and so much more! (Too much more?) - [**`18f/identity-devops-private`**](https://github.com/18f/identity-devops-private) diff --git a/_articles/pull-request-review.md b/_articles/pull-request-review.md index 1578e433..6fcafc3f 100644 --- a/_articles/pull-request-review.md +++ b/_articles/pull-request-review.md @@ -19,7 +19,7 @@ for contributions from the Login.gov team (anybody in the [external contributions](#external-contributions) for more information on changes from outside. -[github-repositories]: {% link _articles/github.md %}#repositories +[github-repositories]: {% link _articles/github-gitlab.md %}#repositories - **Who reviews**: at least one member of the engineering team must review and approve a pull request before it can be merged. @@ -37,7 +37,7 @@ changes from outside. author is unavailable, it may be acceptable for another to merge on their behalf. -[github-permissions]: {% link _articles/github.md %}#permissions +[github-permissions]: {% link _articles/github-gitlab.md %}#permissions ## External Contributions @@ -59,4 +59,4 @@ minimize usages of it to absolutely critical changes needed. The handbook's GitHub article includes information about other GitHub features, such as: -- [Running continuous integration outside of a pull request]({% link _articles/github.md %}#running-ci-outside-of-a-pull-request) or [sharing work with other engineers]({% link _articles/github.md %}#sharing-work-with-other-engineers) +- [Running continuous integration outside of a pull request]({% link _articles/github-gitlab.md %}#running-ci-outside-of-a-pull-request) or [sharing work with other engineers]({% link _articles/github-gitlab.md %}#sharing-work-with-other-engineers) diff --git a/assets/scss/main.css.scss b/assets/scss/main.css.scss index 24a46c6a..32f7afcb 100644 --- a/assets/scss/main.css.scss +++ b/assets/scss/main.css.scss @@ -50,3 +50,17 @@ span { background-color: color("warning-light"); } } + +/** + * Mimics private-eye lock emoji, but for GitLab repos + * See https://github.com/18F/private-eye/blob/c08740d838eb2b95b318a916894c6cb6aae76e41/private-eye.js#L5 + */ +a[href*="gitlab.login.gov/lg"] { + & > strong::after, + &::after { + content: "\1F98A"; // 🦊 + font-size: 0.75em; + text-decoration: none; + vertical-align: top; + } +}