Skip to content

Commit

Permalink
Правит стиль кода (#1790)
Browse files Browse the repository at this point in the history
* Форматирует на 2 пробела

* Правит кавычки

* Убирает двойной пробел
  • Loading branch information
Vadim Makeev authored Oct 8, 2021
1 parent 38375ac commit 58f5237
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/frontmatter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');

const args = process.argv.slice(2)
const isNeedToFix = args.includes("--fix")
const isNeedToFix = args.includes('--fix')

const outputJson = {}

Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const commonSearch = JSON.parse(rawSearch)
const algoliaIndex = []

const stopCategories = [
"people",
"pages"
'people',
'pages'
]

const patternsForEntities = {
Expand Down Expand Up @@ -58,7 +58,7 @@ const getPractice = (path) => {

for (const fileName in commonSearch) {
const content = fs.readFileSync(fileName, { encoding: 'utf8', flag: 'r' })
if (new RegExp(stopCategories.join("|")).test(fileName)) {
if (new RegExp(stopCategories.join('|')).test(fileName)) {
console.log(`Файл ${fileName} не будет добавлен в индекс.`)
} else {
const object = {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link-checker-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Link Checker All

on:
schedule:
- cron: '0 6 * * 5'
- cron: '0 6 * * 5'

jobs:
link-check:
Expand Down
40 changes: 20 additions & 20 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
read -r -p "$(echo "Вы запускаете платформу Доки. Docker уже запущен? (y/n) ")" RESPONSE

case $RESPONSE in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY])

read -r -p "$(echo "Запустить веб-сервер на http://localhost:8080? (y/n) ")" DEFAULT
read -r -p "$(echo "Запустить веб-сервер на http://localhost:8080? (y/n) ")" DEFAULT

case $DEFAULT in
[yY][eE][sS]|[yY])
case $DEFAULT in
[yY][eE][sS]|[yY])

WS_IP=127.0.0.1
WS_PORT=8080
WS_IP=127.0.0.1
WS_PORT=8080

;;
*)
;;
*)

read -r -p "$(echo "Укажите IP-адрес: ")" WS_IP
read -r -p "$(echo "Укажите порт: ")" WS_PORT
echo "Вы сможете открыть Доку в браузере по адресу: http://$WS_IP:$WS_PORT"
read -r -p "$(echo "Укажите IP-адрес: ")" WS_IP
read -r -p "$(echo "Укажите порт: ")" WS_PORT
echo "Вы сможете открыть Доку в браузере по адресу: http://$WS_IP:$WS_PORT"

;;
esac
echo "Остановить веб-сервер можно с помощью клавиш: Ctrl + c$"
;;
esac
echo "Остановить веб-сервер можно с помощью клавиш: Ctrl + c$"

docker pull dokaguide/platform && docker run --rm -p "$WS_IP":"$WS_PORT":8080/tcp -v "$(pwd)"/:/platform/content dokaguide/platform
docker pull dokaguide/platform && docker run --rm -p "$WS_IP":"$WS_PORT":8080/tcp -v "$(pwd)"/:/platform/content dokaguide/platform

echo "Спасибо за ваш труд!"
echo "Спасибо за ваш труд!"

;;
*)
;;
*)

echo "Пожалуйста, запустите Docker и обязательно возвращайтесь!"
echo "Пожалуйста, запустите Docker и обязательно возвращайтесь!"

;;
;;
esac

0 comments on commit 58f5237

Please sign in to comment.