Skip to content
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

T#291/upgrade vuepress #301

Merged
merged 11 commits into from
Jan 13, 2025
Merged
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20.17.0'

- name: Print Versions
run: |
Expand Down Expand Up @@ -64,6 +64,6 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20.17.0'

- name: npm install
run : npm install
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ yarn-error.log*

package-lock.json
/docs/.vuepress/public/img/average_accessibility_score.svg
/docs/.vuepress/.cache
/docs/.vuepress/.temp

cypress/videos/**
cypress/screenshots/**
77 changes: 0 additions & 77 deletions docs/.vuepress/components/BrowserSupport.vue

This file was deleted.

24 changes: 0 additions & 24 deletions docs/.vuepress/components/CodeBlock.vue

This file was deleted.

36 changes: 18 additions & 18 deletions docs/.vuepress/components/Conditional.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<script setup>
import { computed } from 'vue'
import {useThemeData} from "@vuepress/theme-default/client";
const props = defineProps({
visibilityFlag: String,
visibilityValue: {
type: Boolean,
default: true,
},
})
const themeData = useThemeData()
const getVisible = computed(() => themeData.value.visibility[props.visibilityFlag] === props.visibilityValue)
</script>

<template>
<span v-if="getVisible">
<span v-if="getVisible">
<slot/>
</span>
</template>

<script>
export default {
name: "Conditional",
props: {
visibilityFlag: String,
visibilityValue: {
type: Boolean,
default: true,
},
},
computed: {
getVisible() {
return this.$themeConfig.visibility[this.visibilityFlag] === this.visibilityValue;
},
}
}
</script>
<style scoped>

</style>

<style scoped>

Expand Down
40 changes: 16 additions & 24 deletions docs/.vuepress/components/ExternalUrl.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
<script setup>
import { computed } from 'vue'
import {useThemeData} from "@vuepress/theme-default/client";
const props = defineProps({
url: String,
label: String,
boldWhenNoLink: {
type: Boolean,
default: true,
},
})
const themeData = useThemeData()
const noExternalLinks = computed(() => themeData.value.visibility['noExternalLinks'] === true)
</script>

<template>
<span>
<span v-if="noExternalLinks" :class="{ 'font-weight-bold': boldWhenNoLink }">{{ label }}</span>
<a v-else :href="url" target="_blank" rel="noopener noreferrer">{{ label }} <i class="fas fa-external-link-alt" aria-hidden="true" style="font-size: 0.8rem"></i></a>
</span>
</template>

<script>
export default {
name: "ExternalUrl",
props: {
url: String,
label: String,
boldWhenNoLink: {
type: Boolean,
default: true,
},
},
computed: {
noExternalLinks() {
return this.$themeConfig.visibility['noExternalLinks'] === true;
},
}
}
</script>

<style scoped>

</style>
</template>
Loading
Loading