Skip to content

6 migrate to vitepress #7

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

Merged
merged 50 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ba6c0e4
feat: init vitepress project
setaman Oct 20, 2024
6736bf0
fix: tailwind config
setaman Oct 20, 2024
c05067d
feat: rework example component
setaman Oct 20, 2024
7e530d4
feat: repair progress guide
setaman Oct 26, 2024
b3390fe
fix: repair guide
setaman Oct 26, 2024
4e1a545
fix: repair guide
setaman Oct 26, 2024
e6a3853
fix: repair guide
setaman Oct 26, 2024
e793302
fix: repair guide
setaman Oct 26, 2024
1bc85ac
fix: repair guide
setaman Oct 28, 2024
36c5d52
fix: repair guide
setaman Oct 29, 2024
5fe09cb
fix: repair guide
setaman Oct 30, 2024
4d939b3
fix: repair guide
setaman Nov 2, 2024
1bef610
feat: add config randomizer
setaman Nov 2, 2024
45a5eda
feat: repair guide
setaman Nov 3, 2024
a561953
feat: repair guide
setaman Nov 9, 2024
9205056
feat: repair guide
setaman Nov 9, 2024
08de7b1
feat: repair guide
setaman Nov 9, 2024
242950b
feat: repair guide
setaman Nov 9, 2024
93f92f1
feat: repair guide
setaman Nov 9, 2024
503b8a8
feat: repair guide
setaman Nov 9, 2024
e6ad9be
feat: repair guide
setaman Nov 10, 2024
819ef2b
feat: circle anatomy wip
setaman Nov 10, 2024
934a142
feat: repair guide
setaman Nov 12, 2024
d843c3d
feat: repair guide
setaman Nov 12, 2024
fc8887f
feat: repair guide
setaman Nov 14, 2024
cba4dbc
feat: repair guide
setaman Nov 14, 2024
a3589f4
feat: dot conic gradient hack
setaman Nov 17, 2024
f4b540c
fix: repair guide
setaman Nov 17, 2024
f649ffe
fix: repair guide
setaman Nov 17, 2024
7c7faa0
fix: repair guide
setaman Nov 17, 2024
b32f590
fix: repair guide
setaman Nov 17, 2024
0de3daa
fix: repair guide
setaman Nov 17, 2024
3ad9fe6
fix: repair guide
setaman Nov 17, 2024
a2063df
fix: repair guide
setaman Nov 17, 2024
ba804b6
fix: repair guide
setaman Nov 17, 2024
ad76980
feat: experiments with call to action
setaman Nov 17, 2024
b708bb5
feat: home page circle experiments
setaman Nov 23, 2024
7b4f3f1
feat: home page circle experiments
setaman Nov 23, 2024
046b72e
feat: repair guide
setaman Nov 24, 2024
2c72612
feat: repair guide
setaman Nov 24, 2024
2dfdb6e
feat: repair guide
setaman Nov 24, 2024
cdd9556
feat: repair guide
setaman Nov 24, 2024
a356d6b
feat: repair guide
setaman Nov 24, 2024
4f5258d
fix: migration from v1 guide
setaman Nov 28, 2024
bbac2b9
fix: dot examples
setaman Dec 30, 2024
8104707
fix: a lot of improvements
setaman Dec 31, 2024
c44a783
ci: update workflows
setaman Jan 2, 2025
7db8cea
fix: ts errors
setaman Jan 2, 2025
f3a2ccc
fix: improve responsiveness
setaman Jan 4, 2025
e1d961b
fix: line snippet
setaman Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
pull_request:
branches:
- "*"
workflow_dispatch:

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
Expand All @@ -19,9 +22,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Run TS check
run: npm run type-check

- name: Run lint
run: npm run lint

- name: Build VuePress site
run: yarn docs:build
run: npm run docs:build
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Build VuePress site
run: yarn docs:build
run: npm docs:build

# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ dist
.tern-port

.idea

.vitepress/dist
.vitepress/cache
8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

248 changes: 248 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
import { defineConfig } from "vitepress";

const isDevMode = process.env.NODE_ENV !== "production";
const basePath = isDevMode
? "/"
: process.env.BASE_PATH || "/vue-ellipse-progress-docs/";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "vue-ellipse-progress",
base: basePath,
head: [["link", { rel: "icon", href: `${basePath}favicon.ico` }]],
description:
"vue-ellipse-progress - Beautiful and smooth circular progress bars for your Vue app",
lastUpdated: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Guide", link: "/guide" },
{
text: "v2",
items: [
{
text: "Migrate from v1",
link: "/migration/v1",
},
{
text: "Changelog",
link: "https://github.com/setaman/vue-ellipse-progress/blob/master/CHANGELOG.md",
},
{
text: "Roadmap",
link: "https://github.com/users/setaman/projects/1",
},
],
},
],
editLink: {
pattern:
"https://github.com/setaman/vue-ellipse-progress-docs/tree/main/docs/:path",
},

sidebar: {
"/guide/": {
base: "",
items: [
{
text: "Introduction",
link: "/guide/index",
items: [
{
text: "Quick start",
link: "/guide/index",
},
{
text: "Installation",
link: "/guide/installation",
},
{
text: "Usage",
link: "/guide/usage",
},
],
},
{
text: "Props",
collapsed: true,
link: "/guide/options/index",
items: [
{
text: "Props overview",
link: "/guide/options/index",
},
{
text: "progress",
link: "/guide/options/progress",
},
{
text: "legend",
link: "/guide/options/legend",
},
{
text: "legendFormatter",
link: "/guide/options/legendFormatter",
},
{
text: "size",
link: "/guide/options/size",
},
{
text: "line",
link: "/guide/options/line",
},
{
text: "thickness",
link: "/guide/options/thickness",
},
{
text: "emptyThickness",
link: "/guide/options/emptyThickness",
},
{
text: "lineMode",
link: "/guide/options/lineMode",
},
{
text: "linePosition",
link: "/guide/options/linePosition",
},
{
text: "emptyLinePosition",
link: "/guide/options/emptyLinePosition",
},
{
text: "color",
link: "/guide/options/color",
},
{
text: "colorFill",
link: "/guide/options/colorFill",
},
{
text: "emptyColor",
link: "/guide/options/emptyColor",
},
{
text: "emptyColorFill",
link: "/guide/options/emptyColorFill",
},
{
text: "dash",
link: "/guide/options/dash",
},
{
text: "dot",
link: "/guide/options/dot",
},
{
text: "animation",
link: "/guide/options/animation",
},
{
text: "hideLegend",
link: "/guide/options/hideLegend",
},
{
text: "loading",
link: "/guide/options/loading",
},
{
text: "loader",
link: "/guide/options/loader",
},
{
text: "determinate",
link: "/guide/options/determinate",
},
{
text: "half",
link: "/guide/options/half",
},
{
text: "angle",
link: "/guide/options/angle",
},
{
text: "reverse",
link: "/guide/options/reverse",
},
{
text: "noData",
link: "/guide/options/noData",
},
{
text: "fontColor",
link: "/guide/options/fontColor",
},
{
text: "fontSize",
link: "/guide/options/fontSize",
},
{
text: "legendClass",
link: "/guide/options/legendClass",
},
{
text: "gap",
link: "/guide/options/gap",
},
{
text: "data",
link: "/guide/options/data",
},
],
},
{
text: "Slots",
collapsed: true,
link: "/guide/slots/default",
items: [
{
text: "default",
link: "/guide/slots/default",
},
{
text: "legend-caption",
link: "/guide/slots/legend-caption",
},
{
text: "circle-progress",
link: "/guide/slots/circle-progress",
},
{
text: "legend",
link: "/guide/slots/legend",
},
],
},
{
text: "Compatibility",
link: "/guide/compatibility.md",
},
{
text: "Contribution",
link: "/guide/contribution.md",
},
{
text: "Development",
link: "/guide/development.md",
},
],
},
},

socialLinks: [
{
icon: "github",
link: "https://github.com/setaman/vue-ellipse-progress",
},
],
footer: {
message: "Released under the MIT License.",
},
search: {
provider: "local",
},
},
});
35 changes: 35 additions & 0 deletions .vitepress/theme/Guide/Angle/AngleBasic.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script setup lang="ts">
import ExampleCode from "../../components/ExampleCode/ExampleCode.vue";
import Vep from "../../components/Vep.vue";
import { ref } from "vue";
import VueformSlider from "@vueform/slider";

const size = 150;
const angle = ref(-90);
</script>

<template>
<example-code>
<template #default="{ progress, loading, noData, determinate }">
<vueform-slider
v-model.number="angle"
class="example-code-slider my-4 w-full"
:min="-720"
:max="720"
/>

<vep
:progress="progress"
:loading="loading"
:no-data="noData"
:determinate="determinate"
:size
:angle
>
</vep>
</template>
<template #code="{ progress }">
<slot name="code" :angle :progress> </slot>
</template>
</example-code>
</template>
Loading
Loading