Skip to content

Commit

Permalink
Example: Docs template (#226)
Browse files Browse the repository at this point in the history
* fix: markdown issues

* wip: add docs example

* example: update doc template

* chore: credit Steph for AvatarList

* chore: align footer to bottom viewport

* chore: feeback R1

* fix: font fallback in firefox

* fix merge conflicts

* fix: add default value to headers

* chore: fix doc example
  • Loading branch information
natemoo-re committed May 27, 2021
1 parent 19dc517 commit 5247a23
Show file tree
Hide file tree
Showing 22 changed files with 1,209 additions and 218 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ dist/
_site/
*.log
package-lock.json

# .vscode files other than at top-level
**/.vscode
211 changes: 0 additions & 211 deletions examples/astro-markdown/src/pages/collections.astro

This file was deleted.

2 changes: 1 addition & 1 deletion examples/astro-markdown/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const items = ['A', 'B', 'C'];

**Astro Markdown** brings native Markdown support to HTML!

> It's inspired by [`mdx`](https://mdxjs.com/) and powered by [`remark`](https://github.com/remarkjs/remark)).
> It's inspired by [`MDX`](https://mdxjs.com/) and powered by [`remark`](https://github.com/remarkjs/remark).

The best part? It comes with all the Astro features you expect.

Expand Down
5 changes: 5 additions & 0 deletions examples/doc/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
extensions: {
'.tsx': 'preact'
}
};
17 changes: 17 additions & 0 deletions examples/doc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@example/doc",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "astro dev",
"build": "astro build",
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.11.0",
"nodemon": "^2.0.7"
},
"snowpack": {
"workspaceRoot": "../.."
}
}
Loading

0 comments on commit 5247a23

Please sign in to comment.