Skip to content

Commit db61ff4

Browse files
committed
main 🧊 change links to docs
1 parent 270ce35 commit db61ff4

File tree

4 files changed

+14
-29
lines changed

4 files changed

+14
-29
lines changed

‎packages/docs/app/.vitepress/config.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export default async () => {
7878
editLink: {
7979
pattern: ({ filePath, params }) => {
8080
if (filePath.includes('hooks') && params?.name) {
81-
return `https://github.com/siberiacancode/reactuse/blob/main/src/hooks/${params.name}/${params.name}.ts`;
81+
return `https://github.com/siberiacancode/reactuse/blob/main/packages/core/src/hooks/${params.name}/${params.name}.ts`;
8282
} else {
83-
return `https://github.com/siberiacancode/reactuse/blob/main/docs/${filePath}`;
83+
return `https://github.com/siberiacancode/reactuse/blob/main/packages/docs/app/${filePath}`;
8484
}
8585
},
8686
text: 'Suggest changes to this page'
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<script setup>
22
const props = defineProps({
33
hook: {
4-
type: String
5-
}
4+
type: String,
5+
},
66
});
77
8-
const repositoryLink = `https://github.com/siberiacancode/reactuse/tree/main/src/hooks/${props.hook}`;
8+
const repositoryLink = `https://github.com/siberiacancode/reactuse/blob/main/packages/core/src/hooks/${props.hook}`;
99
1010
const sourceLink = `${repositoryLink}/${props.hook}.ts`;
1111
const demoLink = `${repositoryLink}/${props.hook}.demo.tsx`;
1212
</script>
1313

1414
<template>
15-
<a target="_blank" :href="sourceLink">Source</a> • <a target="_blank" :href="demoLink">Demo</a>
15+
<a target="_blank" :href="sourceLink">Source</a> •
16+
<a target="_blank" :href="demoLink">Demo</a>
1617
</template>

‎packages/docs/src/components/demo.vue

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script setup>
2-
import { createElement } from 'react';
3-
import { createRoot } from 'react-dom/client';
4-
import { computed, onMounted, onUnmounted, shallowRef } from 'vue';
2+
import { createElement } from "react";
3+
import { createRoot } from "react-dom/client";
4+
import { computed, onMounted, onUnmounted, shallowRef } from "vue";
55
66
const props = defineProps({
77
hook: {
8-
type: String
9-
}
8+
type: String,
9+
},
1010
});
1111
1212
const sourceLink = computed(() => {
13-
return `https://github.com/siberiacancode/reactuse/blob/main/src/hooks/${props.hook}/${props.hook}.demo.tsx`;
13+
return `https://github.com/siberiacancode/reactuse/blob/main/packages/core/src/hooks/${props.hook}/${props.hook}.demo.tsx`;
1414
});
1515
1616
const demoRef = shallowRef();
@@ -132,7 +132,7 @@ onUnmounted(() => {
132132
margin: 0.5rem 0;
133133
}
134134
135-
:deep(input[type='text'], input[type='number'], input[type='tel']) {
135+
:deep(input[type="text"], input[type="number"], input[type="tel"]) {
136136
min-width: 20rem;
137137
}
138138

‎packages/docs/src/components/returns.vue

-16
This file was deleted.

0 commit comments

Comments
 (0)