Skip to content

Commit

Permalink
[ci skip] Updated repo URL
Browse files Browse the repository at this point in the history
  • Loading branch information
HotoRas committed Jan 1, 2025
1 parent 04c4bee commit f6f8bd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pages/[category]/[sub]/[post].vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { marked } from 'marked';
const route = useRoute()
var content
try {
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/HotoRas/main/docs/${route.params.category}/${route.params.sub}/${route.params.post.split('.md')[0]}.md`)
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/docs/${route.params.category}/${route.params.sub}/${route.params.post.split('.md')[0]}.md`)
} catch (e) {
content = `failed to fetch ${route.params.category}/${route.params.sub}/${route.params.post}`
}
Expand Down
4 changes: 2 additions & 2 deletions pages/[category]/[sub]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import { marked } from 'marked';
const route = useRoute()
var content
try {
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/HotoRas/main/docs/${route.params.category}/${route.params.sub}/index.md`)
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/docs/${route.params.category}/${route.params.sub}/index.md`)
} catch (e) {
try {
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/HotoRas/main/docs/${route.params.category}/${route.params.sub.split('.md')[0]}.md`)
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/docs/${route.params.category}/${route.params.sub.split('.md')[0]}.md`)
} catch (e) {
content = `failed to fetch ${route.params.category}${route.params.sub ? `/${route.params.sub}` : ''}`
}
Expand Down
2 changes: 1 addition & 1 deletion pages/[category]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { marked } from 'marked';
const route = useRoute()
var content
try {
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/HotoRas/main/docs/${route.params.category}/index.md`)
content = await $fetch(`https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/docs/${route.params.category}/index.md`)
} catch (e) {
content = 'failed to fetch ' + route.params.category
}
Expand Down
6 changes: 3 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let mdContent = []
let categories = []
try {
content = await $fetch('https://raw.githubusercontent.com/HotoRas/HotoRas/main/docs/index.md')
content = await $fetch('https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/docs/index.md')
} catch (e) {
content = '<h2>failed to fetch homepage. visit origin <a href="https://www.hotoras.kr/" alt="homepage">here</a>.</h2>'
}
Expand All @@ -35,7 +35,7 @@ if (route.fullpath == '/docs') {
}
async function getPost() {
const folderList = await $fetch('https://api.github.com/repos/HotoRas/HotoRas/git/trees/main?recursive=1')
const folderList = await $fetch('https://api.github.com/repos/HotoRas/hotoras.kr/git/trees/main?recursive=1')
for (let folder of folderList.tree) {
if (!folder) continue
if (folder.path === 'docs') {
Expand All @@ -47,7 +47,7 @@ async function getPost() {
let cat = post.path.split('/')[0] + post.path.split('/')[1] === 'index.md' ? '' : `/${post.path.split('/')[1]}`
categories.push(cat)
let content = await $fetch(`https://raw.githubusercontent.com/HotoRas/HotoRas/main/${post.path}`)
let content = await $fetch(`https://raw.githubusercontent.com/HotoRas/hotoras.kr/main/${post.path}`)
mdContent.push(content)
}
} catch (e) {
Expand Down

0 comments on commit f6f8bd6

Please sign in to comment.