DD

ddev/ddev.com

Deployment & DevOps

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

21 stars 品質 70 トレンド 30Apache-2.0

Astro source code used to generate the static, public ddev.com site.

概要

The static site for DDEV, built with Astro and Tailwind CSS, and hosted on Cloudflare Pages. The layout follows Astro’s project structure. The parts specific to this site: - – GitHub API responses cached during local development, to reduce API calls. - – images, logos, and redirects, copied as they are into dist/. - – Markdown for the blog posts and authors, validated by the content collections schemas in src/content.config.ts. - – .astro and .mdx pages whose filenames become routes. - – Layout.astro, used by every page, and MarkdownLayout.astro, used by the .mdx pages. - – GitHub API fetching, the search index, and the remark and rehype plugins for blog Markdown. - – the featured sponsors, see Sponsor Management. 1. Run ddev start. It installs dependencies and starts the dev server. 2. Open https:// .ddev.site:4321. The dev server reloads as you edit. Run ddev prettier and ddev textlint before committing. CI runs the same checks. 1. Run nvm use to use the Node.js version in .

README

以下は原文 README の抜粋です。原文を見る。


Project Structure

The layout follows Astro’s project structure. The parts specific to this site:

  • cache/ – GitHub API responses cached during local development, to reduce API calls.
  • public/ – images, logos, and redirects, copied as they are into dist/.
  • src/content/ – Markdown for the blog posts and authors, validated by the content collections schemas in src/content.config.ts.
  • src/pages/ – .astro and .mdx pages whose filenames become routes.
  • src/layouts/ – Layout.astro, used by every page, and MarkdownLayout.astro, used by the .mdx pages.
  • src/lib/ – GitHub API fetching, the search index, and the remark and rehype plugins for blog Markdown.
  • src/featured-sponsors.json – the featured sponsors, see Sponsor Management.

Development

DDEV Setup

DDEV includes all the dependencies.

  1. Run ddev start. It installs dependencies and starts the dev server.
  2. Open https://.ddev.site:4321. The dev server reloads as you edit.
Command Action
ddev npm run build Build the production site to dist/, served at https://.ddev.site
ddev prettier [file] Fix formatting of the whole tree, or of the given files
ddev textlint [file] Fix wording in src/content/**, or in the given files, then report what is left
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add ddev/ddev.com
MCP 初心者?mcpskill.org のガイドから始めましょう →