forked from withastro/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
636db14
commit 774847d
Showing
43 changed files
with
299 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"startCommand": "npm start", | ||
"env": { | ||
"ENABLE_CJS_IMPORTS": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# docs | ||
|
||
## 0.0.7 | ||
|
||
### Patch Changes | ||
|
||
- 6b8630c6: Github pages disclaimer | ||
|
||
## 0.0.6 | ||
|
||
### Patch Changes | ||
|
||
- 788c769d: # Hoisted scripts | ||
|
||
This change adds support for hoisted scripts, allowing you to bundle scripts together for a page and hoist them to the top (in the head): | ||
|
||
```astro | ||
<script hoist> | ||
// Anything goes here! | ||
</script> | ||
``` | ||
|
||
## 0.0.5 | ||
|
||
## 0.0.5-next.0 | ||
|
||
### Patch Changes | ||
|
||
- 78b5bde1: Adds support for Astro.resolve | ||
|
||
`Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder. | ||
|
||
Astro _does not_ resolve relative links within HTML, such as images: | ||
|
||
```html | ||
<img src="../images/penguin.png" /> | ||
``` | ||
|
||
The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`: | ||
|
||
```astro | ||
<img src={Astro.resolve('../images/penguin.png')} /> | ||
``` | ||
|
||
## 0.0.4 | ||
|
||
### Patch Changes | ||
|
||
- adc767c5: change Spanish translations for Getting Started page | ||
|
||
## 0.0.3 | ||
|
||
### Patch Changes | ||
|
||
- 70f0a09: Added remark-slug to default plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,17 @@ Every pull request needs to be reviewed by another contributor to the documentat | |
|
||
## Running this project | ||
|
||
- Clone/Fork the project | ||
- This project uses yarn to manage dependencies. [Make sure that you have yarn v1 installed.](https://classic.yarnpkg.com/) | ||
- Clone the Project | ||
|
||
`git clone [email protected]:withastro/astro.git` | ||
- Run `yarn install` to install latest dependencies. | ||
- Run `yarn dev` to start the dev server. | ||
- Run `yarn build` to build the final site for production. | ||
> This project uses yarn to manage dependencies. [Make sure that you have yarn v1 installed.](https://classic.yarnpkg.com/) | ||
- Run `yarn workspace docs dev` to start the dev server. | ||
- Run `yarn workspace docs build` to build the final site for production. | ||
> The environment variable `SNOWPACK_PUBLIC_GITHUB_TOKEN` must be set to a personal access token with `public_repo` permissions to prevent rate-limiting. | ||
## Deploying | ||
|
||
The site is automatically deployed when commits land in `latest`, via Netlify. | ||
|
||
The environment variable `SNOWPACK_PUBLIC_GITHUB_TOKEN` must be set to a personal access token with `public_repo` permissions to prevent rate-limiting. | ||
The "next" docs are automatically deployed when commits land in `main`, via Netlify at <https://main--astro-docs-2.netlify.app/getting-started/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
export async function getStaticPaths() { | ||
// get english pages that moved from `/` to `/en/` | ||
const englishPages = Astro.fetchContent('./en/**/*.md'); | ||
// add pages that are `*.astro` files as well | ||
const otherPages = [{ url: "/en/themes" }]; | ||
return [...englishPages, ...otherPages].map((page) => ({ | ||
params: { | ||
slug: page.url.slice(4), | ||
}, | ||
props: { | ||
englishSlug: page.url, | ||
} | ||
})); | ||
} | ||
--- | ||
|
||
<meta http-equiv="refresh" content={`0;url=${Astro.props.englishSlug}`} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.