summaryrefslogtreecommitdiff
path: root/examples/with-markdown-shiki/src
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2024-10-11 22:39:31 +0800
committerGravatar GitHub <noreply@github.com> 2024-10-11 22:39:31 +0800
commitfd367b5341037ea5026b859e995a66d32f78498b (patch)
treeea3b8912332b1e8299ba4a8435fb5577a7491abe /examples/with-markdown-shiki/src
parent58e22bd042f9a67c2167605bc7ee45538f1b4921 (diff)
downloadastro-fd367b5341037ea5026b859e995a66d32f78498b.tar.gz
astro-fd367b5341037ea5026b859e995a66d32f78498b.tar.zst
astro-fd367b5341037ea5026b859e995a66d32f78498b.zip
Remove some examples (#12196)
Diffstat (limited to 'examples/with-markdown-shiki/src')
-rw-r--r--examples/with-markdown-shiki/src/env.d.ts1
-rw-r--r--examples/with-markdown-shiki/src/layouts/main.astro17
-rw-r--r--examples/with-markdown-shiki/src/pages/index.md14
-rw-r--r--examples/with-markdown-shiki/src/styles/global.css54
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;
-}