import './one-click-pr-or-gist.css';
import React from 'dom-chef';
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';

import features from '.';

function init(): void | false {
	const draftPROption = select('.new-pr-form [name="draft"], #new_gist [name="gist[public]"]');
	if (!draftPROption) {
		// 1. Free accounts can't open Draft PRs in private repos, so this element is missing
		// 2. PRs can't be created from some comparison pages: Either base is a tag, not a branch; or there already exists a PR.
		return false;
	}

	const initialGroupedButtons = draftPROption.closest('.BtnGroup')!;

	for (const dropdownItem of select.all('.select-menu-item', initialGroupedButtons)) {
		let title = select('.select-menu-item-heading', dropdownItem)!.textContent!.trim();
		const description = select('.description', dropdownItem)!.textContent!.trim();
		const radioButton = select('input[type=radio]', dropdownItem)!;
		const classList = ['btn', 'ml-2', 'tooltipped', 'tooltipped-s'];

		if (/\bdraft\b/i.test(title)) {
			title = 'Create draft PR';
		} else {
			classList.push('btn-primary');
		}

		initialGroupedButtons.after(
			<button
				className={classList.join(' ')}
				aria-label={description}
				type="submit"
				name={radioButton.name}
				value={radioButton.value}
			>
				{title}
			</button>
		);
	}

	initialGroupedButtons.remove();
}

void features.add(__filebasename, {
	include: [
		pageDetect.isCompare,
		pageDetect.isGist
	],
	init
});
 value='cf-user-defined-entryfile'>cf-user-defined-entryfile</option>
<option value='changeset-base'>changeset-base</option>
<option value='changeset-release/refs/pull/2705/merge'>changeset-release/refs/pull/2705/merge</option>
<option value='chore/astro-check'>chore/astro-check</option>
<option value='chore/db-remote-server-destroy'>chore/db-remote-server-destroy</option>
<option value='chore/lint-fix'>chore/lint-fix</option>
<option value='chore/mirror'>chore/mirror</option>
<option value='chore/pnpm-10-and-catalogs'>chore/pnpm-10-and-catalogs</option>
<option value='chris/pin-ztjs'>chris/pin-ztjs</option>
<option value='chris/social-feed'>chris/social-feed</option>
<option value='ci/one-line-command'>ci/one-line-command</option>
<option value='ci/preview-release-teest'>ci/preview-release-teest</option>
<option value='ci/workflow-for-next-branch'>ci/workflow-for-next-branch</option>
<option value='cli-flow-updates'>cli-flow-updates</option>
<option value='compiler-02-new-build'>compiler-02-new-build</option>
<option value='content-perf-benchmark'>content-perf-benchmark</option>
<option value='content-slug-to-id'>content-slug-to-id</option>
<option value='data-function-poc'>data-function-poc</option>
<option value='db-migrate'>db-migrate</option>
<option value='db-seed'>db-seed</option>
<option value='db-tokens'>db-tokens</option>
<option value='db22'>db22</option>
<option value='debugging-mdx-memory'>debugging-mdx-memory</option>
<option value='deno-test'>deno-test</option>
<option value='densities-handling'>densities-handling</option>
<option value='disable-telemetry'>disable-telemetry</option>
<option value='docs/netlify-adapter-site-requirement'>docs/netlify-adapter-site-requirement</option>
<option value='draft/content-collections-file'>draft/content-collections-file</option>
<option value='draft/script-style-bleed'>draft/script-style-bleed</option>
<option value='examples/basics'>examples/basics</option>
<option value='examples/blog'>examples/blog</option>
<option value='examples/component'>examples/component</option>
<option value='examples/container-with-vitest'>examples/container-with-vitest</option>
<option value='examples/framework-alpine'>examples/framework-alpine</option>
<option value='examples/framework-lit'>examples/framework-lit</option>
<option value='examples/framework-multiple'>examples/framework-multiple</option>
<option value='examples/framework-preact'>examples/framework-preact</option>
<option value='examples/framework-react'>examples/framework-react</option>
<option value='examples/framework-solid'>examples/framework-solid</option>
<option value='examples/framework-svelte'>examples/framework-svelte</option>
<option value='examples/framework-vue'>examples/framework-vue</option>
<option value='examples/hackernews'>examples/hackernews</option>
<option value='examples/integration'>examples/integration</option>
<option value='examples/minimal'>examples/minimal</option>
<option value='examples/portfolio'>examples/portfolio</option>
<option value='examples/ssr'>examples/ssr</option>
<option value='examples/starlog'>examples/starlog</option>
<option value='examples/toolbar-app'>examples/toolbar-app</option>
<option value='examples/with-markdoc'>examples/with-markdoc</option>
<option value='examples/with-mdx'>examples/with-mdx</option>
<option value='examples/with-nanostores'>examples/with-nanostores</option>
<option value='examples/with-tailwindcss'>examples/with-tailwindcss</option>
<option value='examples/with-vitest'>examples/with-vitest</option>
<option value='experiment-routes'>experiment-routes</option>
<option value='experiment/markdown-components'>experiment/markdown-components</option>
<option value='expr-before'>expr-before</option>
<option value='fallback-default-fade'>fallback-default-fade</option>
<option value='feat/action-on-result'>feat/action-on-result</option>
<option value='feat/action-success'>feat/action-success</option>
<option value='feat/all-fragments'>feat/all-fragments</option>
<option value='feat/astro-add'>feat/astro-add</option>
<option value='feat/astro-client'>feat/astro-client</option>
<option value='feat/astro-jsx'>feat/astro-jsx</option>
<option value='feat/astro-v-config'>feat/astro-v-config</option>
<option value='feat/autogenerated-tsconfig'>feat/autogenerated-tsconfig</option>
<option value='feat/better-data-types'>feat/better-data-types</option>
<option value='feat/better-table-type'>feat/better-table-type</option>
<option value='feat/break-out-seed-returning'>feat/break-out-seed-returning</option>
<option value='feat/cache-module-graph'>feat/cache-module-graph</option>
<option value='feat/ci-next'>feat/ci-next</option>
<option value='feat/cli'>feat/cli</option>
<option value='feat/codemod'>feat/codemod</option>
<option value='feat/config-log-level'>feat/config-log-level</option>
<option value='feat/container'>feat/container</option>
<option value='feat/context'>feat/context</option>
<option value='feat/create-astro-replace-component-selector-with-astro-add'>feat/create-astro-replace-component-selector-with-astro-add</option>
<option value='feat/create-astro-ui'>feat/create-astro-ui</option>
<option value='feat/csr'>feat/csr</option>
<option value='feat/data-improvements'>feat/data-improvements</option>
<option value='feat/data-with-set'>feat/data-with-set</option>
<option value='feat/db-action'>feat/db-action</option>
<option value='feat/db-relations'>feat/db-relations</option>
<option value='feat/define-data'>feat/define-data</option>
<option value='feat/devtools'>feat/devtools</option>
<option value='feat/dynamic-client-directives'>feat/dynamic-client-directives</option>
<option value='feat/editor'>feat/editor</option>
<option value='feat/experimental-jsx'>feat/experimental-jsx</option>
<option value='feat/expose-action-api-context'>feat/expose-action-api-context</option>
<option value='feat/expose-frontmatter-to-build-done-hook'>feat/expose-frontmatter-to-build-done-hook</option>
<option value='feat/fetch-cache'>feat/fetch-cache</option>
<option value='feat/flow-components'>feat/flow-components</option>
<option value='feat/fonts-granular-preload'>feat/fonts-granular-preload</option>
<option value='feat/fonts-retrieve-data'>feat/fonts-retrieve-data</option>
<option value='feat/foreign-key-migrations'>feat/foreign-key-migrations</option>
<option value='feat/foreign-keys'>feat/foreign-keys</option>
<option value='feat/html-pages'>feat/html-pages</option>
<option value='feat/image-placeholders'>feat/image-placeholders</option>
<option value='feat/improve-custom-element-detection'>feat/improve-custom-element-detection</option>
<option value='feat/incremental-build'>feat/incremental-build</option>
<option value='feat/indexes'>feat/indexes</option>
<option value='feat/integration-kit'>feat/integration-kit</option>
<option value='feat/jsx-transform'>feat/jsx-transform</option>
<option value='feat/legacy-markdown-flag'>feat/legacy-markdown-flag</option>
<option value='feat/markdoc-embeds'>feat/markdoc-embeds</option>
<option value='feat/markdown-components'>feat/markdown-components</option>
<option value='feat/mdx-js-injection'>feat/mdx-js-injection</option>
<option value='feat/mdx-plugin-export'>feat/mdx-plugin-export</option>
<option value='feat/minify-html'>feat/minify-html</option>
<option value='feat/next-get-env'>feat/next-get-env</option>
<option value='feat/og'>feat/og</option>
<option value='feat/ooo-streaming'>feat/ooo-streaming</option>
<option value='feat/pragma'>feat/pragma</option>
<option value='feat/preview'>feat/preview</option>
<option value='feat/react-19'>feat/react-19</option>
<option value='feat/react-19-actions'>feat/react-19-actions</option>
<option value='feat/redirect-on-html-backup'>feat/redirect-on-html-backup</option>
<option value='feat/references'>feat/references</option>
<option value='feat/remote-flag'>feat/remote-flag</option>
<option value='feat/remove-astro-image-backup'>feat/remove-astro-image-backup</option>
<option value='feat/remove-studio'>feat/remove-studio</option>
<option value='feat/render-with-queue'>feat/render-with-queue</option>
<option value='feat/reroute-ssr'>feat/reroute-ssr</option>
<option value='feat/resolve-entrypoint'>feat/resolve-entrypoint</option>
<option value='feat/router'>feat/router</option>
<option value='feat/router-ii'>feat/router-ii</option>
<option value='feat/seo-components'>feat/seo-components</option>
<option value='feat/skip-sync-flag'>feat/skip-sync-flag</option>
<option value='feat/spa'>feat/spa</option>
<option value='feat/spa-ii'>feat/spa-ii</option>
<option value='feat/squoosh'>feat/squoosh</option>
<option value='feat/standard-schema'>feat/standard-schema</option>
<option value='feat/storage-studio'>feat/storage-studio</option>
<option value='feat/streaming-rendering'>feat/streaming-rendering</option>
<option value='feat/style-obj'>feat/style-obj</option>
<option value='feat/test-utils'>feat/test-utils</option>
<option value='feat/xray-improvements'>feat/xray-improvements</option>
<option value='fetch-astro-pages-mvp'>fetch-astro-pages-mvp</option>
<option value='fix-408'>fix-408</option>
<option value='fix-all-pages-key'>fix-all-pages-key</option>
<option value='fix-beta-ref'>fix-beta-ref</option>
<option value='fix-create-ref'>fix-create-ref</option>
<option value='fix-netlify-edge'>fix-netlify-edge</option>
<option value='fix-next-basics'>fix-next-basics</option>
<option value='fix-nullish-slot-name'>fix-nullish-slot-name</option>
<option value='fix-s-island-fallback'>fix-s-island-fallback</option>
<option value='fix-vite-asset'>fix-vite-asset</option>
<option value='fix/actions-cookies'>fix/actions-cookies</option>
<option value='fix/actions-pending-timeout'>fix/actions-pending-timeout</option>
<option value='fix/assets-types'>fix/assets-types</option>
<option value='fix/astro-config-refresh'>fix/astro-config-refresh</option>
<option value='fix/astro-html-escape-bug'>fix/astro-html-escape-bug</option>
<option value='fix/build-subpaths'>fix/build-subpaths</option>
<option value='fix/client-only-component-css'>fix/client-only-component-css</option>
<option value='fix/client-scripts-windows'>fix/client-scripts-windows</option>
<option value='fix/config-migration-defaults'>fix/config-migration-defaults</option>
<option value='fix/container-directives'>fix/container-directives</option>
<option value='fix/dates'>fix/dates</option>
<option value='fix/db-integration-with-missing-config'>fix/db-integration-with-missing-config</option>
<option value='fix/devtoolbar-data-unset'>fix/devtoolbar-data-unset</option>
<option value='fix/empty-slots'>fix/empty-slots</option>
<option value='fix/filepath-layer'>fix/filepath-layer</option>
<option value='fix/frontmatter-file-url'>fix/frontmatter-file-url</option>
<option value='fix/head-propagation'>fix/head-propagation</option>
<option value='fix/hmr-css-deps'>fix/hmr-css-deps</option>
<option value='fix/import-ts-errors'>fix/import-ts-errors</option>
<option value='fix/main-build-failure'>fix/main-build-failure</option>
<option value='fix/map-file-404-logs'>fix/map-file-404-logs</option>
<option value='fix/mdx-named-slots'>fix/mdx-named-slots</option>
<option value='fix/middleware-import'>fix/middleware-import</option>
<option value='fix/multi-images'>fix/multi-images</option>
<option value='fix/nested-get-collection-call'>fix/nested-get-collection-call</option>
<option value='fix/preact-package-build-failure'>fix/preact-package-build-failure</option>
<option value='fix/primary-key-optional'>fix/primary-key-optional</option>
<option value='fix/regex-flags'>fix/regex-flags</option>
<option value='fix/server-headers'>fix/server-headers</option>
<option value='fix/stable-renderer-order'>fix/stable-renderer-order</option>
<option value='fix/transaction-type'>fix/transaction-type</option>
<option value='fix/vue-nested'>fix/vue-nested</option>
<option value='fix/webapi-dev'>fix/webapi-dev</option>
<option value='fork/markdoc-poc-with-md-support'>fork/markdoc-poc-with-md-support</option>
<option value='fork/markdoc-poc-with-parser'>fork/markdoc-poc-with-parser</option>
<option value='format-imports-run'>format-imports-run</option>
<option value='formatting'>formatting</option>
<option value='forward-button'>forward-button</option>
<option value='framework-agnostic-astro-components'>framework-agnostic-astro-components</option>
<option value='fryuni/db-pluggable-backend'>fryuni/db-pluggable-backend</option>
<option value='fryuni/test-route-setup-hook'>fryuni/test-route-setup-hook</option>
<option value='fryuni/tracing-hooks'>fryuni/tracing-hooks</option>
<option value='hippotastic/legitimate-bat'>hippotastic/legitimate-bat</option>
<option value='hoisted-script-ts'>hoisted-script-ts</option>
<option value='host-ssr-example-2'>host-ssr-example-2</option>
<option value='hostfornode'>hostfornode</option>
<option value='image-non-node'>image-non-node</option>
<option value='improve-base-handling'>improve-base-handling</option>
<option value='inline-hoisted-scripts-now'>inline-hoisted-scripts-now</option>
<option value='jn.convert-assertions-to-query-params'>jn.convert-assertions-to-query-params</option>
<option value='latest'>latest</option>
<option value='live-loaders'>live-loaders</option>
<option value='main'>main</option>
<option value='mandar1jn/ci-repo-check'>mandar1jn/ci-repo-check</option>
<option value='markdoc-embed-prototyping'>markdoc-embed-prototyping</option>
<option value='markdown'>markdown</option>
<option value='markdown-poc'>markdown-poc</option>
<option value='mdx-path'>mdx-path</option>
<option value='mk/render-slot-template-backup'>mk/render-slot-template-backup</option>
<option value='move-default-md-code-component'>move-default-md-code-component</option>
<option value='mt/lit-DSD'>mt/lit-DSD</option>
<option value='mt/lit-regen'>mt/lit-regen</option>
<option value='mt/parse-DSD'>mt/parse-DSD</option>
<option value='mt/router_refactoring'>mt/router_refactoring</option>
<option value='nate/new-blog-template'>nate/new-blog-template</option>
<option value='netlify-1'>netlify-1</option>
<option value='netlify-preview'>netlify-preview</option>
<option value='new-adapter-api'>new-adapter-api</option>
<option value='next'>next</option>
<option value='next-render'>next-render</option>
<option value='no-more-vite-postprocess'>no-more-vite-postprocess</option>
<option value='no-more-vite-postprocess2'>no-more-vite-postprocess2</option>
<option value='old-build'>old-build</option>
<option value='plt-1006/unified-and-mdx'>plt-1006/unified-and-mdx</option>
<option value='plt-1768-trailing-slash-object'>plt-1768-trailing-slash-object</option>
<option value='preact-shared-signals'>preact-shared-signals</option>
<option value='process-env-override'>process-env-override</option>
<option value='progress-log'>progress-log</option>
<option value='re-export-drivers'>re-export-drivers</option>
<option value='react-fast-refresh'>react-fast-refresh</option>
<option value='redirects-priority2'>redirects-priority2</option>
<option value='redirects-ssg-object'>redirects-ssg-object</option>
<option value='refactor-how-client-directives-work'>refactor-how-client-directives-work</option>
<option value='refactor/image-internals'>refactor/image-internals</option>
<option value='refactor/markdoc-renderer'>refactor/markdoc-renderer</option>
<option value='refactor/rendere-queue'>refactor/rendere-queue</option>
<option value='refactor/sitemap'>refactor/sitemap</option>
<option value='refactor/ssr-size'>refactor/ssr-size</option>
<option value='release/0.17'>release/0.17</option>
<option value='release/0.18'>release/0.18</option>
<option value='remote-cdn-link'>remote-cdn-link</option>
<option value='remove-fs-abstraction'>remove-fs-abstraction</option>
<option value='remove-start'>remove-start</option>
<option value='restart-on-lock'>restart-on-lock</option>
<option value='revert-13008-renovate/all-minor-patch'>revert-13008-renovate/all-minor-patch</option>
<option value='revert-lockfile'>revert-lockfile</option>
<option value='route-manifest-adapter'>route-manifest-adapter</option>
<option value='sarah11918-image-errors'>sarah11918-image-errors</option>
<option value='sarah11918-patch-2'>sarah11918-patch-2</option>
<option value='sb-tests2'>sb-tests2</option>
<option value='seroval'>seroval</option>
<option value='server-islands-children'>server-islands-children</option>
<option value='session-docs'>session-docs</option>
<option value='single-file-build-2'>single-file-build-2</option>
<option value='slash-404-hint'>slash-404-hint</option>
<option value='slot-bug-1'>slot-bug-1</option>
<option value='solid-ecosystem-pkg'>solid-ecosystem-pkg</option>
<option value='spike/app-setup'>spike/app-setup</option>
<option value='spike/autonav'>spike/autonav</option>
<option value='spike/codehike'>spike/codehike</option>
<option value='spike/context'>spike/context</option>
<option value='spike/csr'>spike/csr</option>
<option value='spike/default-content'>spike/default-content</option>
<option value='spike/incremental'>spike/incremental</option>
<option value='spike/incremental-ii'>spike/incremental-ii</option>
<option value='spike/markdown-wasm'>spike/markdown-wasm</option>
<option value='spike/render'>spike/render</option>
<option value='spike/streaming'>spike/streaming</option>
<option value='spike/svg'>spike/svg</option>
<option value='sqlite-test'>sqlite-test</option>
<option value='squeal'>squeal</option>
<option value='ssr-redirect'>ssr-redirect</option>
<option value='stream-buffer'>stream-buffer</option>
<option value='streaming'>streaming</option>
<option value='telemetry-audit-1'>telemetry-audit-1</option>
<option value='test/new-integrations-demo'>test/new-integrations-demo</option>
<option value='test/new-ssr-demo'>test/new-ssr-demo</option>
<option value='top-level-exports-integrations'>top-level-exports-integrations</option>
<option value='ts-in-hoisted-script'>ts-in-hoisted-script</option>
<option value='ts-no-err'>ts-no-err</option>
<option value='upd-vite-vendored'>upd-vite-vendored</option>
<option value='upgrade-deps'>upgrade-deps</option>
<option value='v1-beta'>v1-beta</option>
<option value='vercel-test'>vercel-test</option>
<option value='vite-fork'>vite-fork</option>
<option value='vscode-astro-global'>vscode-astro-global</option>
<option value='vt-follow-redirects'>vt-follow-redirects</option>
<option value='warn-exp-flag'>warn-exp-flag</option>
<option value='win'>win</option>
<option value='windows-tests-beta'>windows-tests-beta</option>
<option value='wip-assets'>wip-assets</option>
<option value='wip-component-api-2'>wip-component-api-2</option>
<option value='wip-docs-components'>wip-docs-components</option>
<option value='wip-docs-reference-gen'>wip-docs-reference-gen</option>
<option value='wip-fetch-cache'>wip-fetch-cache</option>
<option value='wip-fun-flags'>wip-fun-flags</option>
<option value='wip-icons'>wip-icons</option>
<option value='wip-logging'>wip-logging</option>
<option value='wip-logging-saved'>wip-logging-saved</option>
<option value='wip-mdc'>wip-mdc</option>
<option value='wip-mdx-to-astro-js'>wip-mdx-to-astro-js</option>
<option value='wip-preview-command-integrations'>wip-preview-command-integrations</option>
<option value='wip-setup-content'>wip-setup-content</option>
<option value='wip-smoke'>wip-smoke</option>
<option value='wip-speed-up-markdown'>wip-speed-up-markdown</option>
<option value='wip-stage'>wip-stage</option>
<option value='wip/react-19-test'>wip/react-19-test</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Unnamed repository; edit this file 'description' to name the repository.</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/ansg191/astro/?h=@astrojs/renderer-svelte@0.2.2'>summary</a><a href='/ansg191/astro/refs/?h=@astrojs/renderer-svelte@0.2.2'>refs</a><a class='active' href='/ansg191/astro/log/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;showmsg=1&amp;follow=1'>log</a><a href='/ansg191/astro/tree/docs/src?h=@astrojs/renderer-svelte@0.2.2'>tree</a><a href='/ansg191/astro/commit/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;follow=1'>commit</a><a href='/ansg191/astro/diff/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/ansg191/astro/log/docs/src'>
<input type='hidden' name='h' value='@astrojs/renderer-svelte@0.2.2'/><input type='hidden' name='showmsg' value='1'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/ansg191/astro/log/?h=@astrojs/renderer-svelte@0.2.2&amp;showmsg=1&amp;follow=1'>root</a>/<a href='/ansg191/astro/log/docs?h=@astrojs/renderer-svelte@0.2.2&amp;showmsg=1&amp;follow=1'>docs</a>/<a href='/ansg191/astro/log/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;showmsg=1&amp;follow=1'>src</a> (<a href='/ansg191/astro/log/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;showmsg=1'>unfollow</a>)</div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/ansg191/astro/log/docs/src?h=@astrojs/renderer-svelte@0.2.2&amp;follow=1'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr class='logheader'><td><span title='2021-12-02 10:45:54 -0700'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/fixtures/astro-basic/src/pages/special-%e2%80%9ccharacters%e2%80%9d%20-in-file.md?h=@astrojs/renderer-svelte@0.2.2&amp;id=0a826c999c8ee30d5ee2ae61ac4165fb9797da70&amp;follow=1'>Allow special characters in filenames (#2091)</a></td><td><img src='//www.gravatar.com/avatar/57d4699c286f6169906cfe54ad9ac96c?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Drew Powers
</td><td>4</td><td><span class='deletions'>-1</span>/<span class='insertions'>+16</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
#2089

</td></tr>
<tr class='logheader'><td><span title='2021-12-02 12:32:42 -0500'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/fixtures/astro-assets/src/pages/index.astro?h=@astrojs/renderer-svelte@0.2.2&amp;id=97174e6ff4505bf2aa795a3edd5cb66cf36afbe8&amp;follow=1'>Add tests for assets using imports (#2090)</a></td><td><img src='//www.gravatar.com/avatar/4394f414f0d4a043ad5e8fa261fa2953?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Matthew Phillips
</td><td>4</td><td><span class='deletions'>-0</span>/<span class='insertions'>+23</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-02 10:30:15 -0600'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/renderers/renderer-vue/server.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=ac3e870280e983a7977da79b6eec0568d38d8420&amp;follow=1'>fix: renderer behavior with no children (#2078)</a></td><td><img src='//www.gravatar.com/avatar/0ddf46bee0fb93b8d73cb82456ee5b28?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Nate Moore
</td><td>27</td><td><span class='deletions'>-19</span>/<span class='insertions'>+356</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* fix: renderer behavior with no children

* [ci] Prettier fix

* Force CI

* fix: properly handle falsy values

* [ci] Prettier fix

* chore: force ci

* [experiment] netlify ignore

Co-authored-by: GitHub Action &lt;github-action@users.noreply.github.com&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-12-02 09:24:00 -0700'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/astro-css-bundling-import.test.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=62a5e98c9008a1ac88c3c38db64b74723f8fd422&amp;follow=1'>Improve CSS import ordering, fix empty CSS outputs (#2081)</a></td><td><img src='//www.gravatar.com/avatar/57d4699c286f6169906cfe54ad9ac96c?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Drew Powers
</td><td>4</td><td><span class='deletions'>-12</span>/<span class='insertions'>+50</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
Fixes #2060

</td></tr>
<tr class='logheader'><td><span title='2021-12-02 10:14:02 -0600'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/www/netlify.toml?h=@astrojs/renderer-svelte@0.2.2&amp;id=f6b15c3516ac13000ebe0c54a61159bfccf3ef4e&amp;follow=1'>[experiment] ignore netlify builds outside of docs and www</a></td><td><img src='//www.gravatar.com/avatar/7f89c584503806f4c994db01acbdabed?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Nate Moore
</td><td>3</td><td><span class='deletions'>-4</span>/<span class='insertions'>+2</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-02 10:07:54 -0600'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/www/netlify.toml?h=@astrojs/renderer-svelte@0.2.2&amp;id=3fd59b8a3a477bef0d357373d71c446b8ffd1deb&amp;follow=1'>[experiment] Netlify Ignore (#2080)</a></td><td><img src='//www.gravatar.com/avatar/0ddf46bee0fb93b8d73cb82456ee5b28?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Nate Moore
</td><td>2</td><td><span class='deletions'>-0</span>/<span class='insertions'>+4</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* chore: ignore netlify builds for docs/

* chore: ignore netlify builds for www/

* chore: update netlify ignore to check against main

</td></tr>
<tr class='logheader'><td><span title='2021-12-02 10:48:18 -0500'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/src/vite-plugin-markdown/index.ts?h=@astrojs/renderer-svelte@0.2.2&amp;id=1301f3daa9991078652577f2addf4aaad6014712&amp;follow=1'>Makes Astro.resolve return root-relative paths (#2048)</a></td><td><img src='//www.gravatar.com/avatar/4394f414f0d4a043ad5e8fa261fa2953?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Matthew Phillips
</td><td>5</td><td><span class='deletions'>-4</span>/<span class='insertions'>+35</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* Makes Astro.resolve return root-relative paths

* Adds a changeset

* Update the compiler version and PR review

* Fix linting

* [ci] Prettier fix

* Remove use of vitifyURL

Co-authored-by: GitHub Action &lt;github-action@users.noreply.github.com&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-12-02 10:48:08 -0500'>2021-12-02</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/vendor/vite/dist/node/chunks/dep-35df7f96.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=2a2eaadc2f5ca0ac88eb3fd987881a47b41e9bdd&amp;follow=1'>Invalidate based on modulePath (#2086)</a></td><td><img src='//www.gravatar.com/avatar/4394f414f0d4a043ad5e8fa261fa2953?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Matthew Phillips
</td><td>2</td><td><span class='deletions'>-7</span>/<span class='insertions'>+9</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* Invalidate based on modulePath

* Adds a changeset

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 21:58:34 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/.github/workflows/ci.yml?h=@astrojs/renderer-svelte@0.2.2&amp;id=0b2650d71329f4fcdc6f025ec39d70b352990b03&amp;follow=1'>Update ci.yml (#2077)</a></td><td><img src='//www.gravatar.com/avatar/184a1f14c759795b94ae1d01b23cc9c7?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Fred K. Schott
</td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+7</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 21:27:46 +0000'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/errors.test.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=638982663e4ccdea222f961a5f873a0ffde1b5ed&amp;follow=1'>[ci] yarn format</a></td><td><img src='//www.gravatar.com/avatar/0ddf46bee0fb93b8d73cb82456ee5b28?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> natemoo-re
</td><td>2</td><td><span class='deletions'>-4</span>/<span class='insertions'>+4</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 15:26:17 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/fixtures/errors/src/pages/astro-hydration-error.astro?h=@astrojs/renderer-svelte@0.2.2&amp;id=920d3da135f29a3b4229aa7166902ae00be0a51f&amp;follow=1'>Improving error messages for invalid client hydration directives (#2076)</a></td><td><img src='//www.gravatar.com/avatar/f7a9e19ff7b8f42d15219b4a988bd70b?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Tony Sullivan
</td><td>6</td><td><span class='deletions'>-0</span>/<span class='insertions'>+64</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* Adding check to make sure the hydration directive is valid

* remove temp debug logging

* Adding a check for media query with client:media + small refactor

* adding changeset

Co-authored-by: Tony Sullivan &lt;tony.sullivan@hyperlab.se&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 15:25:29 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/yarn.lock?h=@astrojs/renderer-svelte@0.2.2&amp;id=bebb312b095db2b239b16665db3fdbc5166c3844&amp;follow=1'>Upgrade compiler to 0.5.4 (#2057)</a></td><td><img src='//www.gravatar.com/avatar/4394f414f0d4a043ad5e8fa261fa2953?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Matthew Phillips
</td><td>3</td><td><span class='deletions'>-6</span>/<span class='insertions'>+6</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* Upgrade compiler to 0.4.0

* chore: update compiler to v0.5.1

* chore: update compiler to v0.5.3

* chore: upgrade @astrojs/compiler

* test: skip flaky test

Co-authored-by: Nate Moore &lt;nate@skypack.dev&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 15:43:22 -0500'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/fixtures/astro-basic/src/pages/input.astro?h=@astrojs/renderer-svelte@0.2.2&amp;id=5bda895fcb7d1aa21223aa89d33912f97716c3ab&amp;follow=1'>Render void elements as self-closing tags (#2064)</a></td><td><img src='//www.gravatar.com/avatar/2889096995a38fa697ab83d8b59a5637?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jonathan Neal
</td><td>5</td><td><span class='deletions'>-1</span>/<span class='insertions'>+64</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* Render void elements as self-closing tags

* changeset

* nit: only check void element names if there is no child content

* nit: only check void element names if there is no child content

* add tests

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 12:03:04 -0700'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/astro-markdown-plugins.test.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=b348ca6c9fbc13dcf49718c7b3335f06b1ea0982&amp;follow=1'>Allow importing of rehype plugins (#2075)</a></td><td><img src='//www.gravatar.com/avatar/57d4699c286f6169906cfe54ad9ac96c?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Drew Powers
</td><td>3</td><td><span class='deletions'>-1</span>/<span class='insertions'>+11</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
Fixes #2061

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 10:40:55 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/scripts/notify/index.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=1c40f6ed380b8d0905220da63779a3840245d4b4&amp;follow=1'>fix: release notes (#2074)</a></td><td><img src='//www.gravatar.com/avatar/0ddf46bee0fb93b8d73cb82456ee5b28?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Nate Moore
</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+3</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 16:38:57 +0000'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/config-validate.test.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=49019aa2d6c7e33ef7410bd0e40b85560fe8e8ff&amp;follow=1'>[ci] yarn format</a></td><td><img src='//www.gravatar.com/avatar/0ddf46bee0fb93b8d73cb82456ee5b28?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> natemoo-re
</td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 10:37:54 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/config-validate.test.js?h=@astrojs/renderer-svelte@0.2.2&amp;id=ee4ad432021ab00a6308af1ea8ee288b821107b6&amp;follow=1'>Prevent unknown keys in markdownOptions (#2073)</a></td><td><img src='//www.gravatar.com/avatar/e269138dbf93dd87d05daa47298987f1?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Ian VanSchooten
</td><td>2</td><td><span class='deletions'>-0</span>/<span class='insertions'>+7</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 10:36:28 -0600'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/docs/src/pages/migration/0.21.0.md?h=@astrojs/renderer-svelte@0.2.2&amp;id=ec35fdd768519e2d6f4a7de17d7a9b7bfaaa3c94&amp;follow=1'>Add migration guide for markdownOptions (#2070)</a></td><td><img src='//www.gravatar.com/avatar/e269138dbf93dd87d05daa47298987f1?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Ian VanSchooten
</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+23</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2021-12-01 08:27:47 -0700'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/docs/src/pages/themes.astro?h=@astrojs/renderer-svelte@0.2.2&amp;id=3a459254158ec51759ed249c1de194e680f9737d&amp;follow=1'>German translation - docs (#1830)</a></td><td><img src='//www.gravatar.com/avatar/98a26e75b81815cac1aaf451f60adb78?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> borisv
</td><td>15</td><td><span class='deletions'>-109</span>/<span class='insertions'>+1537</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
* New translation of getting-started.md

Rework of the basic translation, resolving a bunch of issues and correcting misconceptions in terminologies.

* Spelling correction

* Omitting redundant paragraph. Minor corrections.

* New translation

Fixing errors and grammatical misconceptions. Rectifying terminology.

* Minor corrections in quick-start.md

* Update quick-start.md

Minor corrections

* Update quick-start.md

Small fix

* Update quick-start.md

* Update getting-started.md

* Update quick-start.md

* Update quick-start.md

* Update quick-start.md

* New translation installation.md

New translation leveraging a consistent nomenklatura, fixing spelling errors

* Update installation.md

* Update installation.md

* Update installation.md

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/installation.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/quick-start.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/installation.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* Update docs/src/pages/de/getting-started.md

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* [ci] yarn format

* Create 0.21.0.md

First translation

* [ci] yarn format

* Create themes.astro

First translation

* Create 404.astro

First translation

* Update 0.21.0.md

Small changes according to the reviews.  Additionally changing 'Hydratation' to 'Anreicherung' in the code example (76), which is far more closer to the fact.

* [ci] yarn format

* Update themes.astro

Changed 'Motive' to 'Vorlagen' throughout this document

* Create comparing-astro-vs-other-tools.md

First translation. Last missing page from the first documentation section 'SETUP'

* [ci] yarn format

* Create astro-components.md

First translation

* [ci] yarn format

* Update comparing-astro-vs-other-tools.md

Corrected reference to Vue in Nuxt section

* Update comparing-astro-vs-other-tools.md

Replaced 'Vorlagen' with the english term 'Templates' for consistency inside nomenclature across all document pages.

* Create astro-pages.md

First translation

* [ci] yarn format

* Create project-structure.md

First translation

* Create component-hydration.md

New translation

* [ci] yarn format

* Create layouts.md

First translation

* Create routing.md

First translation

* [ci] yarn format

* Update quick-start.md

Changed expression to 'Entwickeln'

* Update installation.md

Changed expression to 'Entwickeln'

* Update comparing-astro-vs-other-tools.md

Changed all occurences of 'partielle Anreicherung' to 'Partial Hydration'

* Update comparing-astro-vs-other-tools.md

Minor punctuation fix

* Update astro-components.md

Bunch of suggestions worked in

* [ci] yarn format

* Update astro-pages.md

Added suggestions

* Update component-hydration.md

Added suggestions

* Update layouts.md

Added suggestions

* [ci] yarn format

* Update project-structure.md

Added suggestions

* Update routing.md

Added suggestions

* Update installation.md

Added suggestions

* Update 0.21.0.md

Added suggestions

* Update quick-start.md

added suggestions

* Update themes.astro

Added suggestions

* Update 0.21.0.md

Added suggestion

* Update astro-components.md

Minor punctuation fix

* [ci] yarn format

* Update astro-components.md

Replaced last of 'Anreicherung'

* Update astro-components.md

Punctuation fix, again(((

* [ci] yarn format

* Update docs/src/pages/de/core-concepts/astro-components.md

Minor punctioation fix

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;

* [ci] yarn format

* Update astro-components.md

Added code example, since github hickubs when only removing ';'

* Added sidebar links (de) config.ts

Added links to the first two sections of the German translation

* Update config.ts

Replaced Getting Started with 'Erste Schritte'

* Update config.ts

Replaced Themes with 'Vorlagen'

* Update config.ts

Changed Migration to 'Umstellung'

* Fixing routing error(((

* Fixing routing errors((

* reverse and fix routing errors(((

Co-authored-by: Kim Schneider &lt;web@schneider.kim&gt;
Co-authored-by: borisv &lt;borisv@users.noreply.github.com&gt;
Co-authored-by: smplrtrn &lt;smplrtrn@gmail.com&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-12-01 08:23:18 -0700'>2021-12-01</span></td><td class='logsubject'><a href='/ansg191/astro/commit/packages/astro/test/fixtures/astro-css-bundling-import/src/styles/site.css?h=@astrojs/renderer-svelte@0.2.2&amp;id=c6e4e2831e122cced890dfad47825fab3bd32db9&amp;follow=1'>Enforce consistent import order of CSS (#2065)</a></td><td><img src='//www.gravatar.com/avatar/57d4699c286f6169906cfe54ad9ac96c?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Drew Powers
</td><td>11</td><td><span class='deletions'>-11</span>/<span class='insertions'>+134</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
Partially fixes #2060

</td></tr>
<tr class='logheader'><td><span title='2021-11-30 22:33:45 -0700'>2021-11-30</span></td><td class='logsubject'><a href='/ansg191/astro/commit/www/package.json?h=@astrojs/renderer-svelte@0.2.2&amp;id=754ac42478fda5a4692a3d253e5803797138750d&amp;follow=1'>[ci] release (#2059)</a><span class='decoration'><a class='tag-annotated-deco' href='/ansg191/astro/tag/?h=astro@0.21.6'>astro@0.21.6</a></span></td><td><img src='//www.gravatar.com/avatar/af2ab225b7c0eec44a8d0eba6b5c869a?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> github-actions[bot]
</td><td>26</td><td><span class='deletions'>-37</span>/<span class='insertions'>+32</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
Co-authored-by: github-actions[bot] &lt;github-actions[bot]@users.noreply.github.com&gt;

</td></tr>
<tr class='logheader'><td><span title='2021-11-30 22:23:04 -0700'>2021-11-30</span></td><td class='logsubject'><a href='/ansg191/astro/commit/.changeset/ten-clocks-remember.md?h=@astrojs/renderer-svelte@0.2.2&amp;id=96ba37ef0266b2e920475fa232416fdbb88dc19e&amp;follow=1'>Modify changeset for #2052 (#2067)</a></td><td><img src='//www.gravatar.com/avatar/57d4699c286f6169906cfe54ad9ac96c?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Drew Powers
</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr class='nohover-highlight'><td/><td colspan='5' class='logmsg'>
</td></tr>
