.vitepress
- The theme and code that renders content from this repo into a website. Includes Vue 3 components for each piece of the page.data
- Metadata about the content.
data/filters.yml
- The list of filters that can be applied to contentdata/filter-groups.yml
- How those filters are grouped into categoriesdata/authors.yml
- A list of the metadata for the pattern authorspattern
- Folder contains all the patterns published on the website
pattern/<pattern-name>
- A folder containing all the data for a specific published pattern
pattern/<pattern-name>/index.md
- Markdown text file with the content of the pattern page itself.pattern/<pattern-name>/files
- A folder to hold any other files associated with the pattern, such as code, images, etcauthor
- Folder contains the detail pages for each pattern author
author/<authorId>.md
- The custom bio content for each author profile page.Details on available Markdown extensions are available here: https://vitepress.dev/guide/markdown
Additionally, there are custom Vue components available inside of the markdown such as:
YouTube:
<youtube id="RTeB7Ho88bg" />
Code from a file can be imported and embedded as a code widget using the following syntax:
<<< @/pattern/ecs-delete-task-definition/files/delete-tasks.sh
Import a SVG and embed it in the page:
!!! @/pattern/ecs-task-events-capture-cloudwatch/task-history.svg
In order to generate an SVG diagram for the site the following process should be followed:
#000000
) for all text. For arrows use a gray color that works in both light and dark mode.#000000
) into a CSS variable that adjusts to dark/light mode. All other elements should be designed in such a way to look good on both light and dark mode.For the code see .vitepress/theme/plugins/svg.ts
Ensure that Node >v18 is installed locally. Then run:
npm install
When writing a new piece of content, or when developing changes to the websites theme or styling, use the following command to run a local copy of the website which has live refresh when you change a file:
npm run-script dev
Open localhost:5173
This builds a fully static version of the website which is optimized for load speed and web hosting:
npm run-script build
npm run-script preview
Open localhost:4173
Copy the contents of .vitepress/dist
to any static web hosting service.