Skip to content

Commit fc1df26

Browse files
author
Ivan Bochkarev
committed
Merge remote-tracking branch 'source/main'
2 parents 4d9e65b + 72587eb commit fc1df26

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

.vitepress/config.ts

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs'
22
import path from 'path'
3-
import { defineConfigWithTheme } from 'vitepress'
3+
import { defineConfigWithTheme, type HeadConfig } from 'vitepress'
44
import type { Config as ThemeConfig } from '@vue/theme'
55
import baseConfig from '@vue/theme/config'
66
import { headerPlugin } from './headerMdPlugin'
@@ -602,6 +602,17 @@ const i18n: ThemeConfig['i18n'] = {
602602
ariaSidebarNav: 'Навигация в боковой панели',
603603
}
604604

605+
function inlineScript(file: string): HeadConfig {
606+
return [
607+
'script',
608+
{},
609+
fs.readFileSync(
610+
path.resolve(__dirname, `./inlined-scripts/${file}`),
611+
'utf-8'
612+
)
613+
]
614+
}
615+
605616
export default defineConfigWithTheme<ThemeConfig>({
606617
extends: baseConfig,
607618

@@ -643,22 +654,8 @@ export default defineConfigWithTheme<ThemeConfig>({
643654
href: 'https://automation.vuejs.org'
644655
}
645656
],
646-
[
647-
'script',
648-
{},
649-
fs.readFileSync(
650-
path.resolve(__dirname, './inlined-scripts/restorePreference.js'),
651-
'utf-8'
652-
)
653-
],
654-
[
655-
'script',
656-
{},
657-
fs.readFileSync(
658-
path.resolve(__dirname, './inlined-scripts/uwu.js'),
659-
'utf-8'
660-
)
661-
],
657+
inlineScript('restorePreference.js'),
658+
inlineScript('uwu.js'),
662659
[
663660
'script',
664661
{
@@ -674,7 +671,8 @@ export default defineConfigWithTheme<ThemeConfig>({
674671
src: 'https://vueschool.io/banner.js?affiliate=vuejs&type=top',
675672
async: 'true'
676673
}
677-
]
674+
],
675+
inlineScript('perfops.js')
678676
],
679677

680678
themeConfig: {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
;((d) => {
2+
window.rum = { key: 'a9efvfeu' }
3+
var script = d.createElement('script')
4+
script.src = '/rom3.min.js'
5+
script.type = 'text/javascript'
6+
script.defer = true
7+
script.async = true
8+
d.getElementsByTagName('head')[0].appendChild(script)
9+
})(document)

src/partners/partners.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"region": ["Europe"],
7979
"website": {
8080
"text": "www.monterail.com",
81-
"url": "https://www.monterail.com/services/vue/?utm_source=vuejs.org"
81+
"url": "https://www.monterail.com/services/vue-js-development?utm_source=partnership&utm_medium=logo&utm_campaign=Vue"
8282
},
8383
"contact": "[email protected]",
8484
"hiring": "https://www.monterail.com/careers?utm_source=vuejs.org&utm_medium=referral&utm_campaign=partner-hiring-link",

src/public/rom3.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/translations/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ aside: false
2525
- [العربية / Arabic](https://ar.vuejs.org/) [[source](https://github.com/vuejs-translations/docs-ar)]
2626
- [Español / Spanish](https://vue3-spanish-docs.netlify.app/) [[source](https://github.com/icarusgk/vuejs-spanish-docs)]
2727
- [Deutsch / German](https://de.vuejs.org/) [[source](https://github.com/vuejs-translations/docs-de)]
28+
- [Polski / Polish](https://pl.vuejs.org/) [[source](https://github.com/vuejs-translations/docs-pl)]
2829

2930
## Начало нового перевода {#starting-a-new-translation}
3031

0 commit comments

Comments
 (0)