DD

ddev/ddev.com

Deployment & DevOps

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

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
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add ddev/ddev.com
Новичок в MCP? Начните с руководства на mcpskill.org →