
ddev/ddev.com
Deployment & DevOpsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
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 intodist/.src/content/– Markdown for the blog posts and authors, validated by the content collections schemas insrc/content.config.ts.src/pages/–.astroand.mdxpages whose filenames become routes.src/layouts/–Layout.astro, used by every page, andMarkdownLayout.astro, used by the.mdxpages.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.
- Run
ddev start. It installs dependencies and starts the dev server. - 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 |
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add ddev/ddev.com