Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): link in homepage features #1070

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/guide/theme-home-page.md
Expand Up @@ -98,6 +98,10 @@ features:
- icon: 🖖
title: Power of Vue meets Markdown
details: Lorem ipsum...
action:
theme: alt
text: markdown-it
link: https://github.com/markdown-it/markdown-it
- icon: 🛠️
title: Simple and minimal, always
details: Lorem ipsum...
Expand All @@ -115,5 +119,19 @@ interface Feature {

// Details of the feature.
details: string

// Action button to display in home feature section.
action?: FeatureAction
}

interface HeroAction {
remirobichet marked this conversation as resolved.
Show resolved Hide resolved
// Color theme of the button. Defaults to `brand`.
theme?: 'brand' | 'alt'

// Label of the button.
text: string

// Destination link of the button.
link: string
}
```