Skip to content

Commit bd71ebb

Browse files
authored
[DO-582] Update dependencies (#45)
* Update dependencies to wanted * Update dev dependencies to latest * Update package.json * Define tsconfig for server * Workaround for type issue nuxt/content#2177 * Fix ProseCode warns nuxt/content#2111 * Fix internal links
1 parent 1483afd commit bd71ebb

File tree

7 files changed

+8064
-7317
lines changed

7 files changed

+8064
-7317
lines changed

components/content/ProseCode.vue

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!--
2+
~ Copyright 2023 Exactpro (Exactpro Systems Limited)
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<script lang="ts">
18+
// File is copied from here: https://github.com/nuxt/content/blob/main/src/runtime/components/Prose/ProseCode.vue
19+
// Here just single root element is added and styles are removed
20+
// TODO: remove this file when https://github.com/nuxt/content/issues/2111 is resolved
21+
import { defineComponent } from '#imports'
22+
23+
export default defineComponent({
24+
props: {
25+
code: {
26+
type: String,
27+
default: ''
28+
},
29+
language: {
30+
type: String,
31+
default: null
32+
},
33+
filename: {
34+
type: String,
35+
default: null
36+
},
37+
highlights: {
38+
type: Array as () => number[],
39+
default: () => []
40+
},
41+
meta: {
42+
type: String,
43+
default: null
44+
}
45+
}
46+
})
47+
</script>
48+
49+
<template>
50+
<div>
51+
<slot />
52+
</div>
53+
</template>

docs/content/2.features/1.index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Explore them to highlight specific content and make your pages interactive.
99

1010
Contents:
1111

12-
1. [Notice](./features/notice)
13-
2. [Term](./features/term)
14-
3. [Diagram](./features/mermaid)
12+
1. [Notice](/features/notice)
13+
2. [Term](/features/term)
14+
3. [Diagram](/features/mermaid)

0 commit comments

Comments
 (0)