Add an initial Glossary page

Keep adding more terms and descriptions.
This commit is contained in:
Oliver Davies 2023-11-30 23:29:33 +00:00
parent 750b7ca656
commit 3f522e4d57

44
src/pages/glossary.mdx Normal file
View file

@ -0,0 +1,44 @@
---
layout: ~/layouts/PageLayout.astro
title: Glossary
terms:
- - Automated Testing
- - CI pipeline
- - Continuous integration
- |
The process of continuously integrating your code with other people's code, i.e. at least once a day.
This is done by regularly pulling and merging everyone else's code with yours and pushing yours so it's available for others to do the same. This can also refer to CI pipelines and tools like GitHub Actions and GitLab CI.
- - Continuous Delivery and Deployment
- - Git
- - PHPStan
- - Static analysis
- - Test-Driven Development
- - Trunk-based Development
- - Version control
---
import _ from "lodash";
export const filteredTerms = _(frontmatter.terms).filter((term) => term[1])
export const sortedTerms = _(filteredTerms).sortBy(0);
{!sortedTerms.isEmpty() && (
<dl>
{sortedTerms.value().map((term) => (
<div>
<dt>{term[0]}</dt>
<dd>{term[1]}</dd>
</div>
))}
</dl>
)}