Bläddra i källkod

doc: fix latex/pdf build error

wangweimin 5 år sedan
förälder
incheckning
8087b4c192
4 ändrade filer med 15 tillägg och 4 borttagningar
  1. 1 1
      .github/workflows/test.yml
  2. 0 2
      .readthedocs.yml
  3. 3 1
      docs/libraries_support.rst
  4. 11 0
      requirements.txt

+ 1 - 1
.github/workflows/test.yml

@@ -13,7 +13,7 @@ jobs:
       - name: Install JS deps
         run: npm install -D @percy/agent
       - name: Install Python deps
-        run: pip3 install -e ".[dev, flask]"
+        run: pip3 install -e ".[all]"
       - name: Percy Test
         uses: percy/exec-action@v0.2.0
         with:

+ 0 - 2
.readthedocs.yml

@@ -23,5 +23,3 @@ python:
     - requirements: requirements.txt
     - method: pip
       path: .
-      extra_requirements:
-        - all

+ 3 - 1
docs/libraries_support.rst

@@ -18,7 +18,9 @@ pyecharts
 
 相应demo见 :charts_demo_host:`pyecharts demo </?pywebio_api=pyecharts>`
 
-.. image:: https://cdn.jsdelivr.net/gh/wang0618/pywebio-chart-gallery@master/assets/pyecharts.gif
+.. only:: not latex
+
+    .. image:: https://cdn.jsdelivr.net/gh/wang0618/pywebio-chart-gallery@master/assets/pyecharts.gif
 
 plotly
 ^^^^^^^^^^^^^^^^^^^^^^

+ 11 - 0
requirements.txt

@@ -1 +1,12 @@
 tornado>=4.3.0
+
+# extra support
+flask
+
+# test requirements
+selenium==3.*
+percy-python-selenium
+coverage
+
+# doc building requirements
+git+https://github.com/djungelorm/sphinx-tabs.git@master#egg=sphinx-tabs