Skip to content

Commit

Permalink
Merge branch 'main' into prefetch-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Sep 7, 2022
2 parents 5d019fc + 98f242c commit c52979f
Show file tree
Hide file tree
Showing 221 changed files with 4,251 additions and 3,622 deletions.
9 changes: 0 additions & 9 deletions .changeset/chatty-foxes-bow.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/eleven-baboons-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': minor
---

Added a `background` option to specify a background color to replace transparent pixels (alpha layer).
5 changes: 5 additions & 0 deletions .changeset/giant-beds-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Add cyclic ref detection when serializing props
12 changes: 0 additions & 12 deletions .changeset/lucky-mirrors-type.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/nice-cameras-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix bug with using `assert` as import identifier
5 changes: 0 additions & 5 deletions .changeset/sharp-brooms-drum.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/swift-wolves-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

Fixes a bug related to filenames for remote images in SSG builds
5 changes: 0 additions & 5 deletions .changeset/ten-walls-listen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-pandas-sneeze.md

This file was deleted.

3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @snowpackjs/maintainers
README.md @withastro/maintainers-docs
packages/astro/src/@types/astro.ts @withastro/maintainers-docs
7 changes: 5 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

## Docs

<!-- Is this a visible change? You probably need to update docs! -->
<!-- Could this affect a user’s behavior? We probably need to update docs! -->
<!-- If docs will be needed or you’re not sure, uncomment the next line: -->
<!-- /cc @withastro/maintainers-docs for feedback! -->

<!-- DON'T DELETE THIS SECTION! If no docs added, explain why.-->
<!-- https://github.com/withastro/docs -->
<!-- https://github.com/withastro/docs -->
4 changes: 2 additions & 2 deletions examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "astro preview",
"astro": "astro"
},
"devDependencies": {
"astro": "^1.1.2"
"dependencies": {
"astro": "^1.1.6"
}
}
10 changes: 7 additions & 3 deletions examples/basics/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ const { title } = Astro.props;
margin: 0;
}

:global(h1) {

</style>

<style is:global>
h1 {
font-size: var(--font-size-xl);
}

:global(h2) {
h2 {
font-size: var(--font-size-lg);
}

:global(code) {
code {
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
}
Expand Down
8 changes: 4 additions & 4 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "astro preview",
"astro": "astro"
},
"devDependencies": {
"@astrojs/mdx": "^0.10.3",
"dependencies": {
"astro": "^1.1.6",
"@astrojs/mdx": "^0.11.1",
"@astrojs/rss": "^1.0.0",
"@astrojs/sitemap": "^1.0.0",
"astro": "^1.1.2"
"@astrojs/sitemap": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/blog/src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const {
} = Astro.props;
---

<html>
<html lang="en">
<head>
<BaseHead title={title} description={description} />
<style>
Expand Down
4 changes: 2 additions & 2 deletions examples/blog/src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
---

<!DOCTYPE html>
<html lang="en-us">
<html lang="en">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<style>
Expand Down Expand Up @@ -51,7 +51,7 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
))}
</ul>
</section>
<Footer />
</main>
<Footer />
</body>
</html>
2 changes: 1 addition & 1 deletion examples/blog/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../config';
---

<!DOCTYPE html>
<html lang="en-us">
<html lang="en">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
</head>
Expand Down
2 changes: 1 addition & 1 deletion examples/component/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
},
"devDependencies": {
"@example/my-component": "workspace:*",
"astro": "^1.1.2"
"astro": "^1.1.6"
}
}
4 changes: 2 additions & 2 deletions examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro --root demo build",
"serve": "astro --root demo preview"
},
"devDependencies": {
"astro": "^1.1.2"
"dependencies": {
"astro": "^1.1.6"
}
}
16 changes: 7 additions & 9 deletions examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.1.6",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^1.1.0",
"@astrojs/preact": "^1.0.2",
"@algolia/client-search": "^4.13.1",
"@docsearch/css": "^3.1.0",
"@docsearch/react": "^3.1.0",
"@types/react": "^17.0.45",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0"
},
"devDependencies": {
"@astrojs/preact": "^1.0.2",
"@types/node": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@astrojs/react": "^1.1.1",
"astro": "^1.1.2"
"@types/react-dom": "^18.0.0"
}
}
10 changes: 6 additions & 4 deletions examples/docs/src/components/Header/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,15 @@ const lang = getLanguageFromURL(currentPage);
max-width: 200px;
}

:global(.search-item > *) {
flex-grow: 1;
}

@media (min-width: 50em) {
.search-item {
max-width: 400px;
}
}
</style>

<style is:global>
.search-item > * {
flex-grow: 1;
}
</style>
2 changes: 1 addition & 1 deletion examples/docs/src/components/Header/LanguageSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const LanguageSelect: FunctionComponent<{ lang: string }> = ({ lang }) => {
>
{Object.entries(KNOWN_LANGUAGES).map(([key, value]) => {
return (
<option value={value}>
<option value={value} key={value}>
<span>{key}</span>
</option>
);
Expand Down
10 changes: 6 additions & 4 deletions examples/docs/src/components/LeftSidebar/LeftSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ const sidebar = SIDEBAR[langCode];
font-weight: 600;
}

:global(:root.theme-dark) .nav-link a[aria-current='page'] {
color: hsla(var(--color-base-white), 100%, 1);
}

@media (min-width: 50em) {
.nav-groups {
padding: 0;
}
}
</style>

<style is:global>
:root.theme-dark .nav-link a[aria-current='page'] {
color: hsla(var(--color-base-white), 100%, 1);
}
</style>
29 changes: 15 additions & 14 deletions examples/docs/src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
overflow-x: hidden;
}

.layout :global(> *) {
width: 100%;
height: 100%;
}

.grid-sidebar {
height: 100vh;
position: sticky;
Expand All @@ -78,15 +73,6 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
display: none;
}

:global(.mobile-sidebar-toggle) {
overflow: hidden;
}

:global(.mobile-sidebar-toggle) #grid-left {
display: block;
top: 2rem;
}

@media (min-width: 50em) {
.layout {
overflow: initial;
Expand Down Expand Up @@ -116,6 +102,21 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
}
}
</style>
<style is:global>
.layout > * {
width: 100%;
height: 100%;
}

.mobile-sidebar-toggle {
overflow: hidden;
}

.mobile-sidebar-toggle #grid-left {
display: block;
top: 2rem;
}
</style>
</head>

<body>
Expand Down
2 changes: 0 additions & 2 deletions examples/env-vars/.env

This file was deleted.

19 changes: 0 additions & 19 deletions examples/env-vars/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions examples/env-vars/.npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions examples/env-vars/.stackblitzrc

This file was deleted.

4 changes: 0 additions & 4 deletions examples/env-vars/.vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions examples/env-vars/.vscode/launch.json

This file was deleted.

9 changes: 0 additions & 9 deletions examples/env-vars/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions examples/env-vars/package.json

This file was deleted.

Loading

0 comments on commit c52979f

Please sign in to comment.