Repository: line/centraldogma-python (language: python)

Issue:
Publish Sphinx documentation for users
to Github page maybe. If there is other option, we can discuss.


Discussion / hints:
If Sphinx documentation is not only a good reference and but also a good tutorial, we may ignore #32, and add a link to the documentation should be enough.
I think we are able to utilize Sphinx for a good tutorial, but no need to ignore #32. This is because README is [landing page](https://pypi.org/project/centraldogma-python/) of our PyPi project so users can break away from documentation pages if README seems low quality.

Fix patch:
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 0000000..7291dd8
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,27 @@
+name: Deploy Sphinx documentation to Github pages
+
+on:
+  push:
+    branches:
+       - main
+
+jobs:
+  docs:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - uses: ammaraskar/sphinx-action@master
+        with:
+          docs-folder: "docs/"
+          pre-build-command: "python -m pip install --upgrade pip && pip install -r requirements.txt && pip install sphinx_rtd_theme"
+
+      - uses: actions/upload-artifact@v3
+        with:
+          name: html-docs
+          path: docs/_build/html/
+
+      - uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: docs/_build/html
diff --git a/centraldogma/repository_watcher.py b/centraldogma/repository_watcher.py
index 5d8e0a0..fe2dae5 100644
--- a/centraldogma/repository_watcher.py
+++ b/centraldogma/repository_watcher.py
@@ -1,16 +1,16 @@
-#  Copyright 2021 LINE Corporation
+# Copyright 2021 LINE Corporation
 #
-#  LINE Corporation licenses this file to you under the Apache License,
-#  version 2.0 (the "License"); you may not use this file except in compliance
-#  with the License. You may obtain a copy of the License at:
+# LINE Corporation licenses this file to you under the Apache License,
+# version 2.0 (the "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at:
 #
-#    https://www.apache.org/licenses/LICENSE-2.0
+#   https://www.apache.org/licenses/LICENSE-2.0
 #
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-#  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-#  License for the specific language governing permissions and limitations
-#  under the License.
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
 import itertools
 import logging
 import math


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3608ac0..7f688b7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,7 +14,7 @@ jobs:
       - uses: ammaraskar/sphinx-action@master
         with:
           docs-folder: "docs/"
-          pre-build-command: "python -m pip install --upgrade pip && pip install sphinx_rtd_theme dataclasses-json httpx[http2]"
+          pre-build-command: "python -m pip install --upgrade pip && pip install -r requirements.txt && pip install sphinx_rtd_theme"
 
   linter:
     name: black --check