Skip to content

Commit 170b191

Browse files
authored
Merge pull request #87 from datasharingframework/dsf.dev_restructuring_2.0
Dsf.dev restructuring 2.0
2 parents b0e6f98 + 1bd152f commit 170b191

File tree

1,108 files changed

+104690
-7066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,108 files changed

+104690
-7066
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Move into docs folder
1010
cd docs
11+
### Install dependencies
12+
npm i
1113
### Build
1214
npm run docs:build
1315
### Run

docs/package-lock.json

Lines changed: 1639 additions & 1412 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
"docs:update-package": "npx vp-update"
1212
},
1313
"devDependencies": {
14-
"@vuepress/bundler-vite": "2.0.0-rc.17",
15-
"@vuepress/plugin-markdown-image": "2.0.0-rc.52",
16-
"@vuepress/plugin-markdown-math": "2.0.0-rc.52",
17-
"@vuepress/plugin-markdown-tab": "2.0.0-rc.52",
18-
"katex": "^0.16.11",
19-
"sass-loader": "16.0.2",
20-
"vue": "3.5.12",
21-
"vuepress": "2.0.0-rc.17",
22-
"vuepress-plugin-search-pro": "2.0.0-rc.57",
23-
"vuepress-theme-hope": "2.0.0-rc.58"
14+
"@vuepress/bundler-vite": "2.0.0-rc.23",
15+
"@vuepress/plugin-markdown-image": "2.0.0-rc.104",
16+
"@vuepress/plugin-markdown-math": "2.0.0-rc.104",
17+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.104",
18+
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
19+
"katex": "^0.16.22",
20+
"sass-loader": "16.0.5",
21+
"vue": "3.5.14",
22+
"vuepress": "2.0.0-rc.23",
23+
"vuepress-theme-hope": "2.0.0-rc.88"
2424
},
2525
"optionalDependencies": {
26-
"@rollup/rollup-linux-x64-gnu": "^4.22.4"
26+
"@rollup/rollup-linux-x64-gnu": "^4.41.0"
2727
}
2828
}

docs/src/.vuepress/client.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineClientConfig } from 'vuepress/client'
2+
import { Layout as ParentLayout, NotFound } from "vuepress-theme-hope/client";
3+
4+
import Layout from './layouts/PageLayout.vue'
5+
6+
export default defineClientConfig({
7+
layouts: {
8+
ParentLayout,
9+
Layout
10+
},
11+
})

docs/src/.vuepress/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { viteBundler } from '@vuepress/bundler-vite';
22
import { defineUserConfig } from "vuepress";
33
import theme from "./theme.js";
44

5+
56
export default defineUserConfig({
67
host: "127.0.0.1",
78
base: "/",
@@ -13,6 +14,7 @@ export default defineUserConfig({
1314
vuePluginOptions: {},
1415
}),
1516

17+
1618
/*locales: {
1719
"/": {
1820
lang: "en-US",
@@ -25,7 +27,7 @@ export default defineUserConfig({
2527
description: "",
2628
},
2729
},*/
28-
plugins: [],
30+
plugins: [ ],
2931

3032
// Enable it with pwa
3133
shouldPrefetch: false,
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<script setup lang="ts">
2+
// import ParentLayout from '@vuepress/theme-default/layouts/Layout.vue'
3+
import { Layout as ParentLayout, PageContent } from 'vuepress-theme-hope/client'
4+
import { useRoute, useRouter } from "vue-router";
5+
import { ref } from 'vue'
6+
7+
const version = ref("");
8+
9+
10+
function setVersionBasedOnCurrentPath() : void {
11+
if (route.path.startsWith('/operations/')) {
12+
const input = route.path.substring('/operations/'.length);
13+
const firstSlash = input.indexOf("/");
14+
const secondSlash = input.indexOf("/", firstSlash + 1);
15+
const result = secondSlash !== -1 ? input.slice(0, secondSlash) : input;
16+
17+
version.value = result;
18+
19+
20+
} else {
21+
version.value = "";
22+
}
23+
}
24+
25+
const route = useRoute();
26+
27+
28+
const router = useRouter();
29+
router.afterEach((_to, _from) => {
30+
setVersionBasedOnCurrentPath();
31+
});
32+
33+
setVersionBasedOnCurrentPath();
34+
35+
function navigateToNewVersion() {
36+
const input = route.path.substring('/operations/'.length);
37+
const firstSlash = input.indexOf("/");
38+
const secondSlash = input.indexOf("/", firstSlash + 1);
39+
const result = secondSlash !== -1 ? input.slice(secondSlash + 1) : "";
40+
router.push('/operations/' + version.value + "/" + result);
41+
}
42+
43+
</script>
44+
45+
<template>
46+
<ParentLayout>
47+
<template #sidebarTop>
48+
<div class="version-selector" v-if="route.path.startsWith('/operations/')">
49+
<label class="vp-sidebar-header" for="version-select"><strong>Version:</strong> </label>
50+
<select id="version-select" class="vp-sidebar-header" v-model="version" @change="navigateToNewVersion">
51+
<option value="v2/latest">next (2.0.0-M3)</option>
52+
<option value="v1/latest">latest (1.8.0)</option>
53+
<option value="v1/v1.7.1">1.7.1</option>
54+
<option value="v1/v1.7.0">1.7.0</option>
55+
<option value="v1/v1.6.0">1.6.0</option>
56+
<option value="v1/v1.5.2">1.5.2</option>
57+
<option value="v1/v1.5.1">1.5.1</option>
58+
<option value="v1/v1.5.0">1.5.0</option>
59+
<option value="v1/v1.4.0">1.4.0</option>
60+
<option value="v1/v1.3.2">1.3.2</option>
61+
<option value="v1/v1.3.1">1.3.1</option>
62+
<option value="v1/v1.3.0">1.3.0</option>
63+
<option value="v1/v1.2.0">1.2.0</option>
64+
<option value="v1/v1.1.0">1.1.0</option>
65+
<option value="v1/v1.0.0">1.0.0</option>
66+
</select></div>
67+
</template>
68+
<PageContent id="main-content" class="vp-page"/>
69+
</ParentLayout>
70+
</template>
71+
72+
<style lang="css">
73+
.version-selector {
74+
margin-top: 20px;
75+
}
76+
</style>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Manifest-Version: 1.0
2+
Created-By: Maven Javadoc Plugin 3.11.2
3+
Build-Jdk-Spec: 21
4+

0 commit comments

Comments
 (0)