Skip to content

Commit

Permalink
💬 Use uslug instead of diacritics
Browse files Browse the repository at this point in the history
Close #29
  • Loading branch information
b0g3r committed Apr 27, 2020
1 parent 7b33601 commit c720771
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"site:publish:prod": "netlify deploy --json --dir=tlroadmap/.vuepress/dist --prod"
},
"dependencies": {
"vuepress": "^1.4.1",
"@vuepress/core": "*",
"netlify-cli": "^2.47.0"
"netlify-cli": "^2.47.0",
"uslug": "^1.0.4",
"vuepress": "^1.4.1"
}
}
6 changes: 6 additions & 0 deletions tlroadmap/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ const LOCALES = new Map([
['ru', '/'],
])

const uslug = require('uslug')
const uslugify = s => uslug(s)

module.exports = {
head: [
['link', { rel: 'icon', href: '/favicon.png' }],
],
markdown: {
slugify: uslugify,
},
locales: {
'/': {
lang: 'ru-RU',
Expand Down
2 changes: 1 addition & 1 deletion tlroadmap/contributing/ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Если вы готовы взять в работу описание одной из компетенций, то пройдитесь по нашему чек-листу:
1. Проверьте, что на [доске проекта](https://github.com/tlbootcamp/tlroadmap/projects/1) в колонке "In progress" эта задача отсутствует, иначе вы рискуете проделать двойную работу.
1. Найдите соответствующий тикет [с лейблом `knowledge-base`](https://github.com/tlbootcamp/tlroadmap/issues?q=is%3Aissue+is%3Aopen+label%3Aknowledge-base) в Issues и заассайньте его на себя. На доске проекта передвиньте в статус "In progress".
1. Прочитайте главу "Как изменить или добавить новое в роадмап" ниже.
1. Прочитайте главу [Как изменить или добавить новое в роадмап](#как-изменить-или-добавить-новое-в-роадмап) ниже.
1. [Пришлите PR](https://github.com/tlbootcamp/tlroadmap/compare).

### Процесс принятия изменений
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10680,6 +10680,11 @@ unixify@^1.0.0:
dependencies:
normalize-path "^2.1.1"

"unorm@>= 1.0.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/unorm/-/unorm-1.6.0.tgz#029b289661fba714f1a9af439eb51d9b16c205af"
integrity sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==

[email protected], unpipe@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
Expand Down Expand Up @@ -10817,6 +10822,13 @@ use@^3.1.0:
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==

uslug@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/uslug/-/uslug-1.0.4.tgz#b9a22f0914e0a86140633dacc302e5f4fa450677"
integrity sha1-uaIvCRTgqGFAYz2swwLl9PpFBnc=
dependencies:
unorm ">= 1.0.0"

util-deprecate@^1.0.1, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
Expand Down

0 comments on commit c720771

Please sign in to comment.