supadeck 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/templates.js +36 -2
- package/package.json +5 -5
package/dist/cli/templates.js
CHANGED
|
@@ -7,7 +7,7 @@ showSlideNumbers: true
|
|
|
7
7
|
transition: fade
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
# *Supa*deck
|
|
11
11
|
|
|
12
12
|
Write presentations in one \`deck.mdx\` file.
|
|
13
13
|
|
|
@@ -15,15 +15,49 @@ Write presentations in one \`deck.mdx\` file.
|
|
|
15
15
|
Edit this file and the deck will hot reload automatically.
|
|
16
16
|
</Callout>
|
|
17
17
|
|
|
18
|
+
Use arrow keys to navigate.
|
|
19
|
+
|
|
18
20
|
---
|
|
19
21
|
|
|
20
|
-
##
|
|
22
|
+
## Use *markdown* to write your slides.
|
|
23
|
+
|
|
24
|
+
\`\`\`md
|
|
25
|
+
Lorem ipsum *dolor* sit **amet**...
|
|
26
|
+
|
|
27
|
+
- item 1
|
|
28
|
+
- item 2
|
|
29
|
+
- item 3
|
|
30
|
+
\`\`\`
|
|
31
|
+
|
|
32
|
+
Lorem ipsum *dolor* sit **amet**...
|
|
33
|
+
|
|
34
|
+
- item 1
|
|
35
|
+
- item 2
|
|
36
|
+
- item 3
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Or use *custom components*
|
|
21
41
|
|
|
22
42
|
<Columns
|
|
23
43
|
left={<Frame label="Local imports">Import your own React components only when you need them.</Frame>}
|
|
24
44
|
right={<Disclosure title="Theme-provided components">Themes can expose components directly to MDX.</Disclosure>}
|
|
25
45
|
/>
|
|
26
46
|
|
|
47
|
+
You can also import your own React components.
|
|
48
|
+
|
|
49
|
+
\`\`\`mdx
|
|
50
|
+
import { ExampleCard } from "./ExampleCard.tsx";
|
|
51
|
+
|
|
52
|
+
# Local import
|
|
53
|
+
|
|
54
|
+
Use a mix of markdown and components.
|
|
55
|
+
|
|
56
|
+
<ExampleCard title="Local import">
|
|
57
|
+
Your own React component.
|
|
58
|
+
</ExampleCard>
|
|
59
|
+
\`\`\`
|
|
60
|
+
|
|
27
61
|
---
|
|
28
62
|
|
|
29
63
|
## Export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supadeck",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Zero-config MDX presentations with hot reload and PDF export.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"smoke:npx": "npm run build && node ./scripts/smoke-npx.mjs",
|
|
22
22
|
"test": "vitest run",
|
|
23
23
|
"typecheck": "tsc -p tsconfig.json",
|
|
24
|
-
"
|
|
25
|
-
"release:patch": "npm version patch && git push && git push origin --tags && npm publish",
|
|
26
|
-
"release:minor": "npm version minor && git push && git push origin --tags && npm publish",
|
|
27
|
-
"release:major": "npm version major && git push && git push origin --tags && npm publish"
|
|
24
|
+
"prerelease": "npm run test && npm run build",
|
|
25
|
+
"release:patch": "npm run prerelease && npm version patch && git push && git push origin --tags && npm publish",
|
|
26
|
+
"release:minor": "npm run prerelease && npm version minor && git push && git push origin --tags && npm publish",
|
|
27
|
+
"release:major": "npm run prerelease && npm version major && git push && git push origin --tags && npm publish"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"mdx",
|