wangweimin hace 4 años
padre
commit
81a88db82c
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      .github/workflows/sync_repo.yml
  2. 2 2
      demos/doc_demo.py

+ 2 - 2
.github/workflows/sync_repo.yml

@@ -23,7 +23,7 @@ jobs:
       - name: Build doc demos
         run: |
           pip3 install -e ".[all]"
-          cd docs && CODE_EXPORT_PATH=../demos/doc_domes make clean text
+          cd docs && CODE_EXPORT_PATH=../demos/doc_demos make clean text
       - name: Push
         run: |
           git fetch --unshallow origin
@@ -31,7 +31,7 @@ jobs:
           git config credential.helper '!f() { sleep 1; echo "username=${ALIYUN_GIT_USER}"; echo "password=${ALIYUN_GIT_PASSWORD}"; }; f'
           rm .gitignore
           git add pywebio/html/js
-          git add demos/doc_domes
+          git add demos/doc_demos
           git config user.email "${ALIYUN_GIT_USER}"
           git config user.name "${ALIYUN_GIT_USER}"
           git commit --amend --no-edit

+ 2 - 2
demos/doc_demo.py

@@ -82,13 +82,13 @@ def handle_code(code, title):
 def get_app():
     app = {}
     try:
-        demos = listdir(path.join(here_dir, 'doc_domes'))
+        demos = listdir(path.join(here_dir, 'doc_demos'))
     except Exception:
         demos = []
 
     demo_infos = []
     for name in demos:
-        code = open(path.join(here_dir, 'doc_domes', name)).read()
+        code = open(path.join(here_dir, 'doc_demos', name)).read()
         title, code = code.split('\n\n', 1)
         app[name] = partial(handle_code, code=code, title=title)
         demo_infos.append([name, title])