Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vitepress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.1
Choose a base ref
...
head repository: vuejs/vitepress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.1.3
Choose a head ref
  • 6 commits
  • 6 files changed
  • 2 contributors

Commits on Apr 18, 2024

  1. chore: bump deps

    brc-dd committed Apr 18, 2024
    Copy the full SHA
    47570a1 View commit details
  2. docs(ru): update translation guide/deploy.md (#3807)

    dragomano authored Apr 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f30b848 View commit details
  3. fix(build/regression): markdown backslash escapes not working

    closes #3808
    brc-dd committed Apr 18, 2024
    Copy the full SHA
    d02d1e9 View commit details
  4. release: v1.1.2

    brc-dd committed Apr 18, 2024
    Copy the full SHA
    a481ebe View commit details
  5. refactor: simplify code

    brc-dd committed Apr 18, 2024
    Copy the full SHA
    576e43a View commit details
  6. release: v1.1.3

    brc-dd committed Apr 18, 2024
    Copy the full SHA
    7ed5148 View commit details
Showing with 3,434 additions and 2,695 deletions.
  1. +6 −0 CHANGELOG.md
  2. +44 −0 docs/ru/guide/deploy.md
  3. +6 −6 package.json
  4. +3,363 −2,682 pnpm-lock.yaml
  5. +4 −7 src/node/markdown/markdown.ts
  6. +11 −0 src/node/markdown/plugins/restoreEntities.ts
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.1.3](https://github.com/vuejs/vitepress/compare/v1.1.1...v1.1.3) (2024-04-18)

### Bug Fixes

- **build/regression:** markdown backslash escapes not working ([d02d1e9](https://github.com/vuejs/vitepress/commit/d02d1e923aacdb1e8061a3f76af30e8a13518277)), closes [#3808](https://github.com/vuejs/vitepress/issues/3808)

## [1.1.1](https://github.com/vuejs/vitepress/compare/v1.1.0...v1.1.1) (2024-04-18)

### Bug Fixes
44 changes: 44 additions & 0 deletions docs/ru/guide/deploy.md
Original file line number Diff line number Diff line change
@@ -291,3 +291,47 @@ Cache-Control: max-age=31536000,immutable
### Stormkit

Вы можете развернуть свой проект VitePress на [Stormkit](https://www.stormkit.io), следуя следующим [инструкциям](https://stormkit.io/blog/how-to-deploy-vitepress).

### Nginx

Вот пример конфигурации блока сервера Nginx. Эта настройка включает сжатие gzip для общих текстовых ресурсов, правила обслуживания статических файлов вашего сайта VitePress с правильными заголовками кэширования и обработку параметра `cleanUrls: true`.

```nginx
server {
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
listen 80;
server_name _;
index index.html;
location / {
# расположение контента
root /app;
# точные совпадения -> обратные чистые URL-адреса -> папки -> не найдены
try_files $uri $uri.html $uri/ =404;
# несуществующие страницы
error_page 404 /404.html;
# папка без index.html вызывает ошибку 403 в этой настройке
error_page 403 /404.html;
# настройка заголовков кэширования
# файлы в папке с ресурсами имеют хэши имён файлов
location ~* ^/assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
}
```

Эта конфигурация предполагает, что ваш собранный сайт VitePress находится в директории `/app`. При необходимости измените директиву `root`, если файлы вашего сайта расположены в другом месте.

::: warning Не используйте index.html по умолчанию
Разрешение try_files не должно использовать index.html, как это делается в других приложениях Vue. Это может привести к недопустимому состоянию страницы.
:::

Дополнительную информацию можно найти в официальной документации [Nginx](https://nginx.org/ru/docs/), а также в следующих обсуждениях: [#2837](https://github.com/vuejs/vitepress/discussions/2837), [#3235](https://github.com/vuejs/vitepress/issues/3235), а также в [блоге Mehdi Merah](https://blog.mehdi.cc/articles/vitepress-cleanurls-on-nginx-environment#readings).
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitepress",
"version": "1.1.1",
"version": "1.1.3",
"description": "Vite & Vue powered static site generator",
"keywords": [
"vite",
@@ -108,15 +108,15 @@
"@shikijs/transformers": "^1.3.0",
"@types/markdown-it": "^14.0.1",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/devtools-api": "^7.0.25",
"@vue/devtools-api": "^7.0.27",
"@vueuse/core": "^10.9.0",
"@vueuse/integrations": "^10.9.0",
"focus-trap": "^7.5.4",
"mark.js": "8.11.1",
"minisearch": "^6.3.0",
"shiki": "^1.3.0",
"vite": "^5.2.8",
"vue": "^3.4.22"
"vite": "^5.2.9",
"vue": "^3.4.23"
},
"devDependencies": {
"@clack/prompts": "^0.7.0",
@@ -147,7 +147,7 @@
"@types/node": "^20.12.7",
"@types/postcss-prefix-selector": "^1.16.3",
"@types/prompts": "^2.4.9",
"@vue/shared": "^3.4.22",
"@vue/shared": "^3.4.23",
"chokidar": "^3.6.0",
"conventional-changelog-cli": "^4.1.0",
"cross-spawn": "^7.0.3",
@@ -210,7 +210,7 @@
"optional": true
}
},
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.0.2",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Loading