diff options
Diffstat (limited to 'examples/with-markdown-shiki/src')
-rw-r--r-- | examples/with-markdown-shiki/src/env.d.ts | 1 | ||||
-rw-r--r-- | examples/with-markdown-shiki/src/layouts/main.astro | 17 | ||||
-rw-r--r-- | examples/with-markdown-shiki/src/pages/index.md | 14 | ||||
-rw-r--r-- | examples/with-markdown-shiki/src/styles/global.css | 54 |
4 files changed, 0 insertions, 86 deletions
diff --git a/examples/with-markdown-shiki/src/env.d.ts b/examples/with-markdown-shiki/src/env.d.ts deleted file mode 100644 index e16c13c69..000000000 --- a/examples/with-markdown-shiki/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// <reference path="../.astro/types.d.ts" /> diff --git a/examples/with-markdown-shiki/src/layouts/main.astro b/examples/with-markdown-shiki/src/layouts/main.astro deleted file mode 100644 index 7f5bc2ac2..000000000 --- a/examples/with-markdown-shiki/src/layouts/main.astro +++ /dev/null @@ -1,17 +0,0 @@ ---- -import '../styles/global.css'; - -const { content } = Astro.props; ---- - -<html lang={content.lang || 'en'}> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width" /> - <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> - <title>{content.title}</title> - </head> - <body> - <slot /> - </body> -</html> diff --git a/examples/with-markdown-shiki/src/pages/index.md b/examples/with-markdown-shiki/src/pages/index.md deleted file mode 100644 index 89e58184f..000000000 --- a/examples/with-markdown-shiki/src/pages/index.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Shiki demo -layout: ../layouts/main.astro ---- - -# Shiki demo - -```js -var foo = 'bar'; - -function doSomething() { - return foo; -} -``` diff --git a/examples/with-markdown-shiki/src/styles/global.css b/examples/with-markdown-shiki/src/styles/global.css deleted file mode 100644 index e8b9d0314..000000000 --- a/examples/with-markdown-shiki/src/styles/global.css +++ /dev/null @@ -1,54 +0,0 @@ -pre, -code { - color: #d4d4d4; - font-size: 14px; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - line-height: 1.5; - direction: ltr; - white-space: pre; - text-align: left; - text-shadow: none; - word-break: normal; - word-spacing: normal; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -pre::selection, -code::selection { - text-shadow: none; - background: #b3d4fc; -} - -@media print { - pre, - code { - text-shadow: none; - } -} - -pre { - margin: 0.5rem 0 16px; - padding: 0.8rem 1rem 0.9rem; - overflow: auto; - background: #282a36; - border-radius: 4px; -} - -:not(pre) > code { - padding: 0.1em 0.3em; - color: #db4c69; - background: #f9f2f4; - border-radius: 0.3em; - white-space: pre-wrap; -} - -body { - max-width: 900px; - margin: auto; -} |