Your daily brew for professional automation.
Welcome to the official source code for the Cmdlets and Coffee podcast and blog! This repository is where we brew all of our website content and share the full recipe for every script and tutorial from the show.
This site is built with Astro, a fantastic tool for building content-focused websites. Here's a look at the project structure:
src/
: Contains the main source code for the website.components/
: Reusable Astro components.data/
: Data files, including blog posts indata/blog/
.layouts/
: Astro layouts for different page types.pages/
: Astro pages, which define the routes of the website.
public/
: Static assets like images and fonts.astro.config.mjs
: The main configuration file for Astro.tailwind.config.mjs
: The configuration file for Tailwind CSS.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm run dev |
Starts local dev server at localhost:4321 |
pnpm run build |
Build your production site to ./dist/ |
pnpm run preview |
Preview your build locally, before deploying |
pnpm run check |
Run Astro's diagnostic checks |
We welcome contributions to Cmdlets and Coffee! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Submit a pull request with a clear description of your changes.
Before contributing, please read our Coding Style Guide to ensure your code is consistent with the project's standards.
- Create a new file in the
src/data/blog/
directory. The filename should be a slugified version of your title (e.g.,my-awesome-post.mdx
). - Add the frontmatter to the top of your post. It should include the following fields:
cover
: An object withsrc
(path to the cover image) andalt
text.title
: The title of your post.subtitle
: A brief subtitle.description
: A short description for SEO purposes.category
: The primary category of the post.pubDatetime
: The publication date inYYYY-MM-DD
format.tags
: An array of relevant tags.authorId
: The ID of the author (fromsrc/data/authors.ts
).isDraft
: Set totrue
if the post is not ready to be published.
- Write your content in Markdown or MDX format.
- Add any images to the
src/data/blog/images/
directory and reference them in your post.
This project is licensed under the MIT License. See the LICENSE.md file for details.