From 22a4c041819cfeb1bf37ae231cbeca697e7023c1 Mon Sep 17 00:00:00 2001
From: Remi PLANEL <rplanel@pasteur.fr>
Date: Wed, 6 Sep 2023 17:10:06 +0200
Subject: [PATCH] edit on github
---
components/EditGitlab.vue | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/components/EditGitlab.vue b/components/EditGitlab.vue
index a7009b2e..2ccddd60 100644
--- a/components/EditGitlab.vue
+++ b/components/EditGitlab.vue
@@ -1,28 +1,28 @@
<template>
<v-row>
<v-col>
- <v-btn
- prepend-icon="mdi-gitlab"
- variant="text"
- size="small"
- :href="path"
- target="_blank"
- >Edit on gitlab</v-btn
- >
+ <v-btn prepend-icon="mdi-github" variant="text" size="small" :href="path" target="_blank">Edit on github</v-btn>
</v-col>
</v-row>
</template>
<script setup lang="ts">
import { ref } from "vue";
const { page } = useContent();
-const owner = ref("mdm-lab");
-const repo = ref("wiki");
-const branch = ref("main");
+// const owner = ref("mdm-lab");
+const owner = ref("rplanel");
+// const repo = ref("wiki");
+const repo = ref("defense-finder-wiki-test");
+// const branch = ref("main");
+const branch = ref("dev");
-const baseUrl = ref(new URL("https://gitlab.pasteur.fr"));
+
+// const baseUrl = ref(new URL("https://gitlab.pasteur.fr"));
+const baseUrl = ref(new URL("https://github.com"))
+
+// https://github.com/rplanel/defense-finder-wiki-test/edit/dev/content/1.introduction/0.index.md
const path = ref(
new URL(
- `/${owner.value}/${repo.value}/-/edit/${branch.value}/content/${page.value._file}`,
+ `/${owner.value}/${repo.value}/edit/${branch.value}/content/${page.value._file}`,
baseUrl.value
).href
);
--
GitLab