Skip to content

fixed broken links #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions docs/src/.vuepress/client.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineClientConfig } from 'vuepress/client'
import { Layout as ParentLayout, NotFound } from "vuepress-theme-hope/client";
import { Layout as ParentLayout } from "vuepress-theme-hope/client";

import Layout from './layouts/PageLayout.vue'
import NotFoundLayout from './layouts/NotFoundLayout.vue'

export default defineClientConfig({
layouts: {
ParentLayout,
Layout
Layout,
NotFound: NotFoundLayout
},
})
46 changes: 46 additions & 0 deletions docs/src/.vuepress/layouts/NotFoundLayout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<script setup lang="ts">
// import ParentLayout from '@vuepress/theme-default/layouts/Layout.vue'
import { NotFound as ParentLayout, PageContent } from 'vuepress-theme-hope/client'
import { useRoute, useRouter } from "vue-router";
import { ref } from 'vue'

const route = useRoute();
const router = useRouter();

function removeLastPathComponent(path) {
const parts = path.replace(/\/+$/, '').split('/');
parts.pop(); // Remove the last component
const newPath = parts.join('/');
return (newPath ? newPath : '') + '/';
}

function redirectToParentDirectoryIfInOperations() : void {
if (route.path.startsWith('/operations/')) {
router.push(removeLastPathComponent(route.path));

}
}


redirectToParentDirectoryIfInOperations();

/*router.afterEach((_to, _from) => {
redirectToParentDirectoryIfInOperations();

});*/

</script>

<template>
<ParentLayout>
<template #default>
<div class="not-found-hint"><p class="error-code">404</p><h1 class="error-title">Page not found</h1><p class="error-hint">That’s a Four-Oh-Four.</p></div><div class="actions"><button type="button" class="action-button">Go back</button><button type="button" class="action-button">Take me home</button></div>
</template>
</ParentLayout>
</template>

<style lang="css">
.version-selector {
margin-top: 20px;
}
</style>
36 changes: 17 additions & 19 deletions docs/src/.vuepress/layouts/PageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ function setVersionBasedOnCurrentPath() : void {
if (route.path.startsWith('/operations/')) {
const input = route.path.substring('/operations/'.length);
const firstSlash = input.indexOf("/");
const secondSlash = input.indexOf("/", firstSlash + 1);
const result = secondSlash !== -1 ? input.slice(0, secondSlash) : input;
const result = firstSlash !== -1 ? input.slice(0, firstSlash) : input;

version.value = result;

Expand All @@ -35,8 +34,7 @@ setVersionBasedOnCurrentPath();
function navigateToNewVersion() {
const input = route.path.substring('/operations/'.length);
const firstSlash = input.indexOf("/");
const secondSlash = input.indexOf("/", firstSlash + 1);
const result = secondSlash !== -1 ? input.slice(secondSlash + 1) : "";
const result = firstSlash !== -1 ? input.slice(firstSlash + 1) : "";
router.push('/operations/' + version.value + "/" + result);
}

Expand All @@ -48,21 +46,21 @@ function navigateToNewVersion() {
<div class="version-selector" v-if="route.path.startsWith('/operations/')">
<label class="vp-sidebar-header" for="version-select"><strong>Version:</strong> </label>
<select id="version-select" class="vp-sidebar-header" v-model="version" @change="navigateToNewVersion">
<option value="v2/latest">next (2.0.0-M3)</option>
<option value="v1/latest">latest (1.8.0)</option>
<option value="v1/v1.7.1">1.7.1</option>
<option value="v1/v1.7.0">1.7.0</option>
<option value="v1/v1.6.0">1.6.0</option>
<option value="v1/v1.5.2">1.5.2</option>
<option value="v1/v1.5.1">1.5.1</option>
<option value="v1/v1.5.0">1.5.0</option>
<option value="v1/v1.4.0">1.4.0</option>
<option value="v1/v1.3.2">1.3.2</option>
<option value="v1/v1.3.1">1.3.1</option>
<option value="v1/v1.3.0">1.3.0</option>
<option value="v1/v1.2.0">1.2.0</option>
<option value="v1/v1.1.0">1.1.0</option>
<option value="v1/v1.0.0">1.0.0</option>
<option value="next">next (2.0.0-M3)</option>
<option value="latest">latest (1.8.0)</option>
<option value="v1.7.1">1.7.1</option>
<option value="v1.7.0">1.7.0</option>
<option value="v1.6.0">1.6.0</option>
<option value="v1.5.2">1.5.2</option>
<option value="v1.5.1">1.5.1</option>
<option value="v1.5.0">1.5.0</option>
<option value="v1.4.0">1.4.0</option>
<option value="v1.3.2">1.3.2</option>
<option value="v1.3.1">1.3.1</option>
<option value="v1.3.0">1.3.0</option>
<option value="v1.2.0">1.2.0</option>
<option value="v1.1.0">1.1.0</option>
<option value="v1.0.0">1.0.0</option>
</select></div>
</template>
<PageContent id="main-content" class="vp-page"/>
Expand Down
34 changes: 17 additions & 17 deletions docs/src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,23 @@ export default hopeTheme({
"/hackathon": [],
"/spring-school": [],
"/news": [],
"/operations/v2/latest/": [],
"/operations/v1/latest/":generate_v1_latest_sidebar(),
"/operations/v2/v2.0.0-M3/": [],
"/operations/v1/v1.8.0/": generate_v1_latest_sidebar(),
"/operations/v1/v1.7.1/": generate_v1_latest_sidebar(),
"/operations/v1/v1.7.0/": generate_v1_gt_eq_1_7_0_sidebar(),
"/operations/v1/v1.6.0/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1/v1.5.2/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1/v1.5.1/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1/v1.5.0/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1/v1.4.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.3.2/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.3.1/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.3.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.2.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.1.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1/v1.0.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/latest/": generate_v1_latest_sidebar(),
"/operations/next/": [],
"/operations/v2.0.0-M3/": [],
"/operations/v1.8.0/": generate_v1_latest_sidebar(),
"/operations/v1.7.1/": generate_v1_latest_sidebar(),
"/operations/v1.7.0/": generate_v1_gt_eq_1_7_0_sidebar(),
"/operations/v1.6.0/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1.5.2/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1.5.1/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1.5.0/": generate_v1_gt_eq_1_5_0_sidebar(),
"/operations/v1.4.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.3.2/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.3.1/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.3.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.2.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.1.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/operations/v1.0.0/": generate_v1_gt_eq_1_0_0_sidebar(),
"/process-development": [
{
text: "API v1",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/explore/concepts/allow-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ The Allow List consists of Organization-, Endpoint- and OrganisationAffiliation-
![Architecture](/photos/info/allowList/allowList-architecture.png)

## Allow List Managment
[Here](/operations/v1/latest/maintain/allowList-mgm.md) you can read all the information if you want to create or update an Allow List.
[Here](/operations/latest/maintain/allowList-mgm.md) you can read all the information if you want to create or update an Allow List.

If you have the need for allowlist management feel free to contact us via <a href="mailto:dsf-gecko@hs-heilbronn.de"> E-Mail (dsf-gecko@hs-heilbronn.de)</a> and we will take care of your request as soon as possible.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ features:
- title: Get Started
icon: launch
details: Get technical insights and install the DSF | Develop Process Plugins.
link: /operations/v1/latest/
link: /operations/latest/

- title: About Us
icon: creative
Expand Down
2 changes: 1 addition & 1 deletion docs/src/operations/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Get Started
icon: launch
---

<meta http-equiv="refresh" content="0;url=./v1/latest/">
<meta http-equiv="refresh" content="0;url=./latest/">
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions docs/src/operations/old-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ icon: note

## DSF v1

- [1.7.1](./v1/v1.7.1/)
- [1.7.0](./v1/v1.7.0/)
- [1.6.0](./v1/v1.6.0/)
- [1.5.2](./v1/v1.5.2/)
- [1.5.1](./v1/v1.5.1/)
- [1.5.0](./v1/v1.5.0/)
- [1.4.0](./v1/v1.4.0/)
- [1.3.2](./v1/v1.3.2/)
- [1.3.1](./v1/v1.3.1/)
- [1.3.0](./v1/v1.3.0/)
- [1.2.0](./v1/v1.2.0/)
- [1.1.0](./v1/v1.1.0/)
- [1.0.0](./v1/v1.0.0/)
- [1.7.1](./v1.7.1/)
- [1.7.0](./v1.7.0/)
- [1.6.0](./v1.6.0/)
- [1.5.2](./v1.5.2/)
- [1.5.1](./v1.5.1/)
- [1.5.0](./v1.5.0/)
- [1.4.0](./v1.4.0/)
- [1.3.2](./v1.3.2/)
- [1.3.1](./v1.3.1/)
- [1.3.0](./v1.3.0/)
- [1.2.0](./v1.2.0/)
- [1.1.0](./v1.1.0/)
- [1.0.0](./v1.0.0/)

## DSF v2

- [2.0.0-M3](./v2/v2.0.0-M3/)
- [2.0.0-M3](./v2.0.0-M3/)
Loading