Skip to content

Commit

Permalink
Categorize articles in AppDev, Team, Platform pages (#300)
Browse files Browse the repository at this point in the history
* Add subcategories to Platform, AppDev, Team articles
* Add sidenav to category pages
  • Loading branch information
zachmargolis authored Aug 31, 2022
1 parent 1987e6d commit 20dec61
Show file tree
Hide file tree
Showing 38 changed files with 104 additions and 35 deletions.
1 change: 1 addition & 0 deletions _articles/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Services and Accounts"
description: "List of external services and logins to manage"
layout: article
category: "Team"
subcategory: People Ops
---

Per our [onboarding][onboarding] and [offboarding][offboarding] instructions, please add people when
Expand Down
1 change: 1 addition & 0 deletions _articles/appdev-key-rotation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Key rotation guide"
description: "Guide for rotating secrets for the IdP and PKI codebases"
layout: article
category: AppDev
subcategory: Tasks
redirect_to: https://docs.google.com/document/d/1mvKQ2lGcjFurAfjn-PNopORHgkamnxpyj8Z4UmGNIi4
---
1 change: 1 addition & 0 deletions _articles/biannual-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Reviews"
description: "Mid-Year and End-of-Year Self Review and Peer Feedback"
layout: article
category: Team
subcategory: People Ops
---

A process to request, gather, and deliver peer feedback and self review on a bi-annual basis. We will use required review cycles not just to check boxes for GSA, but also to help people thrive, grow, and succeed.
Expand Down
4 changes: 2 additions & 2 deletions _articles/cost-recoverability.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Funding and Cost Recoverability
layout: article
description: |
How Login.gov is funded and what it means
description: How Login.gov is funded and what it means
category: Team
subcategory: Program Information
---

## Overview
Expand Down
1 change: 1 addition & 0 deletions _articles/incident-response-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Incident Response Checklist"
description: "Quick reference checklist for incident response"
layout: article
category: "Team"
subcategory: Guides
---

This is a quick checklist for any incident (security, privacy, outage, degraded service, etc.) to ensure the team can focus on time critical mitigation/remediation while still communicating appropriately.
Expand Down
1 change: 1 addition & 0 deletions _articles/leave-guidance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Leave Guidance
layout: article
category: Team
subcategory: People Ops
---

## Login.gov Leave Guidance
Expand Down
1 change: 1 addition & 0 deletions _articles/offboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Offboarding"
layout: article
category: Team
subcategory: People Ops
---

## Full Offboarding
Expand Down
1 change: 1 addition & 0 deletions _articles/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Onboarding
layout: article
category: Team
subcategory: People Ops
---

## TTS Onboarding
Expand Down
1 change: 1 addition & 0 deletions _articles/openssl-recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Troubleshooting OpenSSL Command Line Recipes"
description: "Commands for common certificate tasks, useful for PIV/CAC or AAMVA credentials"
layout: article
subcategory: "X509 and PIV/CAC Certificates"
category: "AppDev"
---

Expand Down
1 change: 1 addition & 0 deletions _articles/orgchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "Org Chart"
layout: article
category: "Team"
subcategory: Team Organization
redirect_to: https://docs.google.com/spreadsheets/d/1tiTR2ohdl0NIsrF4gJjNipEZ0z0oq1pOFWYjHg8Tbi0/edit#gid=0
---
1 change: 1 addition & 0 deletions _articles/overtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Overtime
layout: article
category: Team
subcategory: People Ops
---

For contractors, Login.gov has a default 45 hour cap on hours worked per week.
Expand Down
1 change: 1 addition & 0 deletions _articles/pii-guidance.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "PII Guidance"
description: "Guidance on safe handling of Personally Identifiable Information"
layout: article
category: "Team"
subcategory: Guides
---

## Overview
Expand Down
1 change: 1 addition & 0 deletions _articles/platform-acceptance-criteria.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Detailed guide on how to file Issues and Pull Requests for the Log
layout: article
redirect_from:
category: Platform
subcategory: Team
---

## Overview
Expand Down
1 change: 1 addition & 0 deletions _articles/platform-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Custom Aliases/Functions for identity-devops Commands"
description: "Reference/runbook for the custom commands created via the login-alias script."
layout: article
category: Platform
subcategory: References
redirect_to: https://github.com/18F/identity-devops/wiki/Custom-Aliases-and-Functions-for-identity-devops
---
1 change: 1 addition & 0 deletions _articles/platform-auto-tf-runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Infrastructure auto-terraform Runbook"
description: How to use/manage/understand auto-terraform
layout: article
subcategory: How To
category: Platform
---

Expand Down
1 change: 1 addition & 0 deletions _articles/platform-baking-amis.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Baking New AWS AMI Images"
description: Runbook for creating new Base and Rails AMI images
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Baking-New-AWS-AMI-Images
---
1 change: 1 addition & 0 deletions _articles/platform-ceremonies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Team Radia Sprint Ceremonies"
description: "How Sprints and Standups operate"
layout: article
category: Platform
subcategory: Team
---

We currently use the **Login.gov Infrastructure** board <https://github.com/orgs/18F/projects/5> to track our current sprint, as well as the issues in our backlog.
Expand Down
1 change: 1 addition & 0 deletions _articles/platform-deploy-devops-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Deploying Infrastructure Code"
description: Runbook for the process of deploying code from 18f/identity-devops into our infrastructure.
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Deploying-Infrastructure-Code
---
1 change: 1 addition & 0 deletions _articles/platform-disaster-runbooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Platform Disaster Runbooks"
description: Recovering from really really bad stuff
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Disaster-Recovery:-Recovering-RDS-and-KMS
---

1 change: 1 addition & 0 deletions _articles/platform-external-services-and-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "External Services and Limits"
description: Notes on rate and cost limited external services used by IdP and out platform
layout: article
category: Platform
subcategory: References
redirect_to: https://github.com/18F/identity-devops/wiki/External-Services-and-Limits
---
1 change: 1 addition & 0 deletions _articles/platform-load-testing-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Load Testing Process"
description: Process overview and instruction for performing load tests in AWS
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Load-Testing
---
1 change: 1 addition & 0 deletions _articles/platform-oncall-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Platform On-Call Guide"
description: Runbook/guide for processes/responsibilities for the on-call platform engineers.
layout: article
subcategory: How To
category: Platform
---

Expand Down
1 change: 1 addition & 0 deletions _articles/platform-scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Platform Scaling"
description: Runbooks for scaling out or up various resources in anticipation of or response to added load
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Infrastructure-Scaling
---
1 change: 1 addition & 0 deletions _articles/platform-set-up-personal-sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Building a Personal Sandbox Environment"
description: 'This is a guide to follow when you are standing up your own personal development environment, aka "sandbox"'
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Building-a-Personal-Sandbox-Environment
---
1 change: 1 addition & 0 deletions _articles/platform-setting-up-aws-vault.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Setting Up aws-vault"
description: This runbook is for getting set up with, and using, `aws-vault`, a tool for providing easier access for cross-account role assumption.
layout: article
category: Platform
subcategory: How To
redirect_to: https://github.com/18F/identity-devops/wiki/Setting-Up-AWS-Vault
---
1 change: 1 addition & 0 deletions _articles/project-principles.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ layout: article
description: |
Our mission and project principles
category: Team
subcategory: Program Information
---

## Our vision
Expand Down
1 change: 1 addition & 0 deletions _articles/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Slack
description: Groups and Channels
layout: article
category: Team
subcategory: Team Organization
toc_h_max: 4
---

Expand Down
1 change: 1 addition & 0 deletions _articles/sprint-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Sprint Teams"
description: "List of our sprint teams and the explanations behind their names"
layout: article
category: "Team"
subcategory: Team Organization
---

Here are the Login.gov sprint teams, most of them are named after famous women in STEM fields.
Expand Down
1 change: 1 addition & 0 deletions _articles/staffing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Staffing"
description: ""
layout: article
category: Team
subcategory: People Ops
---

## Login.gov staffing change process
Expand Down
1 change: 1 addition & 0 deletions _articles/team-roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Sprint Team Roles"
description: "List of our sprint team roles and responsibilities"
layout: article
category: "Team"
subcategory: Team Organization
---

Here are the current Login.gov sprint team roles and responsibilities.
Expand Down
1 change: 1 addition & 0 deletions _articles/toubleshooting-expiring-pivcac.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Troubleshooting expiring PIV/CAC certs"
description: "Guide on finding new certs if a cert is expiring"
layout: article
subcategory: "X509 and PIV/CAC Certificates"
category: "AppDev"
---

Expand Down
1 change: 1 addition & 0 deletions _articles/troubleshooting-pivcacs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Troubleshooting PIV/CAC logins and Managing Certificates"
description: "If somebody has trouble using their PIV/CAC with Login.gov, and also how to download new certificates from Certificate Authorities"
layout: article
subcategory: "X509 and PIV/CAC Certificates"
category: "AppDev"
---

Expand Down
1 change: 1 addition & 0 deletions _categories/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title: Architecture
layout: category
icon: account_balance
description: High-level architecture explanations
---
3 changes: 0 additions & 3 deletions _layouts/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<div class="tablet:grid-col-8">
<div class="usa-prose" role="main">
<h1>
{% if page.icon %}
{% include uswds-icon.html icon=page.icon %}
{% endif %}
{{ page.title }}
{% if page.deprecated %}
<small>(Deprecated)</small>
Expand Down
48 changes: 48 additions & 0 deletions _layouts/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
layout: default
---

{% capture content_markdown %}

{{ page.description }}

{{ content }}

### Articles

{% include articles_category.md category=page %}

{% endcapture %}

{% assign content_html = content_markdown | markdownify %}


<div class="grid-row grid-gap">
<aside class="tablet:grid-col-3">
<nav id="sidenav-wrapper">
{% assign h_max = page.toc_h_max | default: 4 %}
{% include toc.html
html=content_html
sanitize=true
class="inline_toc usa-accordion usa-sidenav"
id="sidenav"
item_class="usa-sidenav__item"
submenu_class="usa-sidenav__sublist"
h_min=2
h_max=h_max %}
</nav>
</aside>

<div class="tablet:grid-col-8">
<div class="usa-prose" role="main">
<h1>
{% if page.icon %}
{% include uswds-icon.html icon=page.icon %}
{% endif %}
{{ page.title }}
</h1>

{{ content_html }}
</div>
</div>
</div>
12 changes: 0 additions & 12 deletions _layouts/category.md

This file was deleted.

2 changes: 1 addition & 1 deletion assets/js/setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setUpPrivateLogin } from "./private";

export const loadAnchors = () => {
new Anchor().add(
"#main-content h2, #main-content h3, #main-content [data-anchor]"
"#main-content h2, #main-content h3, #main-content h4, #main-content [data-anchor]"
);
};

Expand Down
38 changes: 21 additions & 17 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,28 @@ to [avoid contributing sensitive information][sensitive-information].
<div class="margin-bottom-4"></div>

<ul class="usa-card-group">
{% for category in site.categories %}
<li class="usa-card tablet:grid-col-6">
<div class="usa-card__container">
<div class="usa-card__header">
<span class="usa-card__heading">
{% if category.icon %}
{% include uswds-icon.html icon=category.icon %}
{% endif %}
<strong>
<a href="{{ category.url | prepend: site.baseurl }}" class="usa-link">{{ category.title }}</a>
</strong>
</span>
{% assign sorted_categories = site.categories | group_by: 'order' | sort: 'name' %}
{% for category_group in sorted_categories %}
{% assign sorted_category_items = category_group.items | sort: 'title' %}
{% for category in sorted_category_items %}
<li class="usa-card tablet:grid-col-6">
<div class="usa-card__container">
<div class="usa-card__header">
<span class="usa-card__heading">
{% if category.icon %}
{% include uswds-icon.html icon=category.icon %}
{% endif %}
<strong>
<a href="{{ category.url | prepend: site.baseurl }}" class="usa-link">{{ category.title }}</a>
</strong>
</span>
</div>
<div class="usa-card__body">
<p>{{ category.description }}</p>
</div>
</div>
<div class="usa-card__body">
<p>{{ category.description }}</p>
</div>
</div>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>

Expand Down

0 comments on commit 20dec61

Please sign in to comment.