diff options
author | 2021-11-19 15:29:27 -0500 | |
---|---|---|
committer | 2021-11-19 15:29:27 -0500 | |
commit | ebd4a8be3ac2d5b3cfb12b89ea23cdb865d44960 (patch) | |
tree | 128e25d46cd5f6535becd2a8b840f7b96697103b /docs/src/pages/reference/api-reference.md | |
parent | 16d972fe46d02ecca98009e4eba445ef8b70cf55 (diff) | |
download | astro-ebd4a8be3ac2d5b3cfb12b89ea23cdb865d44960.tar.gz astro-ebd4a8be3ac2d5b3cfb12b89ea23cdb865d44960.tar.zst astro-ebd4a8be3ac2d5b3cfb12b89ea23cdb865d44960.zip |
Docs codeblock fixes (#1931)
* Update astro & markdown code blocks for consistency
* Add 'JSX in Frontmatter' note to Migration Guide
* code block improvements
Diffstat (limited to 'docs/src/pages/reference/api-reference.md')
-rw-r--r-- | docs/src/pages/reference/api-reference.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index 274f0a032..ad0afd584 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -11,9 +11,9 @@ The `Astro` global is available in all contexts in `.astro` files. It has the fo `Astro.fetchContent()` is a way to load local `*.md` files into your static site setup. -```jsx -// ./src/components/my-component.astro +```astro --- +// ./src/components/my-component.astro const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of posts that live at ./src/pages/post/*.md --- |