com doc/ru: Переход в GitHub: .editorconfig .github/workflows/check.ym l .gitignore README.md

[email protected] (Sergey Panteleev) Wed, 30 Dec 2020 21:07:21 +0000
Newsgroups php.doc.ru
Message-ID <[email protected]>
Commit:    f434c9508b8a028f150685a96c6c8deb05e51e5b
Author:    Sergey Panteleev <[email protected]>         Wed, 30 Dec 2020 23:28:44 +0300
Parents:   d79b03c818d76a9d7378dbd6c9938afdd42b7bce
Branches:  master

Link:       http://git.php.net/?p=doc/ru.git;a=commitdiff;h=f434c9508b8a028f150685a96c6c8deb05e51e5b

Log:
Переход в GitHub

- GitHub Actions для пулл-реквестов
- Настройки редактора
- Readme

Closes GH-1

Changed paths:
  A  .editorconfig
  A  .github/workflows/check.yml
  A  .gitignore
  A  README.md


Diff:
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..7ee0d7eab
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,11 @@
+; This file is for unifying the coding style for different editors and IDEs.
+; More information at https://editorconfig.org
+
+root = true
+
+[*.xml]
+charset = utf-8
+indent_size = 1
+indent_style = space
+end_of_line = lf
+insert_final_newline = true
\ No newline at end of file
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 000000000..7aac2f7e7
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,28 @@
+name: Check Russian build
+
+on: [ push, pull_request ]
+
+jobs:
+  check-build:
+    name: Check build
+    runs-on: ubuntu-latest
+    steps:
+      - name: Fetch Russian module
+        uses: actions/checkout@master
+        with:
+          path: 'ru'
+
+      - name: Fetch English module
+        uses: actions/checkout@master
+        with:
+          repository: 'php/doc-en'
+          path: 'en'
+
+      - name: Fetch base module
+        uses: actions/checkout@master
+        with:
+          repository: 'php/doc-base'
+          path: 'doc-base'
+
+      - name: Check build
+        run: php doc-base/configure.php --with-lang=ru
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..723ef36f4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.idea
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..4ceb42cc5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+# Русский перевод документации PHP
+
+[![Slack Status](https://img.shields.io/badge/[email protected]?logo=slack)](https://join.slack.com/t/ruphpdoc/shared_invite/zt-ax1czx68-c3_XSVhsgzYJCOslmwvJkQ)
+![Sync](https://github.com/php/doc-ru/workflows/Check%20Russian%20build/badge.svg)
+
+## Руководство
+
+- [Рекомендации по переводу](translation_standards.xml)
+
+## Оформление
+
+- Символ отступа — это пробел (табуляция в файлах `.xml` запрещена)
+
+## Принятие пулл-реквестов
+
+Для пользователей с кармой `doc/ru` команда для принятия пулл-реквеста:
+
+```shell
+curl http://url_of_github_patch.patch | git am
+git commit --am // Add Closes GH-prnum
+git push origin
+```