Skip to content

Commit

Permalink
prompt (#7)
Browse files Browse the repository at this point in the history
* chore: remove unnecessary console line

* feat: enable to write prompt in frontmatter

* test: move test markdown to 'demo' directory

* docs: add usage section
  • Loading branch information
kaakaa authored Jun 24, 2024
1 parent 902387f commit 9064df9
Show file tree
Hide file tree
Showing 9 changed files with 8,618 additions and 39 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,37 @@ This extension contributes the following settings:
* `slidevContentGenerator.baseUrl`: The base URL for the AI/LLM service.
* `slidevContentGenerator.model`: The model used for generating content.

## Usage

```md
...
---
# Write prompt to LLM in frontmatter and generate Slidev contents from LLM
# by **Context Menu > Generate Slidev contents** and wait a minute...)
slidaiv:
prompt:
- Generate awesome page to introduce Slidev
- features, how to start it
---

<!-- Generated contents from here -->
## Slide Title: Why You Should Use Slidev

Slidev is a versatile slideshow platform that offers:

- Simple Markdown syntax, easy to learn and use!
- Highly customizable themes, UNOCSS support for styling
- Interactive features for audience engagement
- Export to HTML, PDF, or reveal.js

Get started:
```bash
npm i -g slidev
slidev init <template> # select a template
cd .slidev && slidev serve
```
<!-- End -->

# Wrap up
...
```
7 changes: 7 additions & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
*.local
.vite-inspect
.remote-assets
components.d.ts
3 changes: 3 additions & 0 deletions demo/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# for pnpm
shamefully-hoist=true
auto-install-peers=true
Loading

0 comments on commit 9064df9

Please sign in to comment.