Skip to content

Commit 4a1c025

Browse files
committed
refactor: src => docs
1 parent 7cde1db commit 4a1c025

File tree

14 files changed

+22
-20
lines changed

14 files changed

+22
-20
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
2+
name: Deploy docs to Pages
33

44
on:
55
# Runs on pushes targeting the default branch
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/upload-pages-artifact@v3
5151
with:
5252
# Upload entire repository
53-
path: './docs/'
53+
path: './dist-docs/'
5454

5555
- name: Deploy to GitHub Pages
5656
id: deployment

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ lerna-debug.log*
99

1010
node_modules
1111
dist
12+
dist-docs
1213
lib
13-
docs
14-
dist-ssr
1514
*.local
1615

1716
# Editor directories and files

src/App.vue renamed to docs/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!-- eslint-disable no-console -->
22
<script lang="ts" setup>
33
import { onMounted, ref } from 'vue'
4-
import { ModernCropper } from '../packages'
5-
import { isDark, toggleDarkmode } from '~/composables/useDarkmode'
4+
import { ModernCropper } from '~/index'
5+
import { isDark, toggleDarkmode } from '@/composables/useDarkmode'
66
7-
import AmongSus from '~/assets/amongus_sus.mp3'
7+
import AmongSus from '@/assets/amongus_sus.mp3'
88
99
const audioAmongSus = new Audio(AmongSus)
1010
audioAmongSus.volume = 0.2
@@ -195,5 +195,5 @@ onMounted(async () => {
195195
</template>
196196

197197
<style lang="scss">
198-
@import '~/assets/highlight.scss';
198+
@import '@/assets/highlight.scss';
199199
</style>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.html renamed to docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<body>
1212
<div id="app"></div>
13-
<script type="module" src="/src/main.ts"></script>
13+
<script type="module" src="./main.ts"></script>
1414
</body>
1515

1616
</html>

src/main.ts renamed to docs/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import App from './App.vue'
33

44
import 'uno.css'
55
import '@unocss/reset/tailwind-compat.css'
6-
import highlight from '~/plugins/highlight'
6+
import highlight from '@/plugins/highlight'
77

88
const app = createApp(App)
99

File renamed without changes.

0 commit comments

Comments
 (0)