From 8b0e2a687b16cc0840abeb5358d8cf35bb10023d Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 10:37:04 +0200 Subject: [PATCH 01/17] add sphinx apidoc to circleci artifacts --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 854036d4667..d2a1ec43efb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -484,6 +484,9 @@ jobs: - store_artifacts: path: doc/build destination: doc/build + - store_artifacts: + path: doc/apidoc/_build/html + destination: doc/apidoc/_build/html workflows: version: 2 From bebe0ac97eb886843d440ebe846d624ffdbaae04 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 11:20:21 +0200 Subject: [PATCH 02/17] added bison to try to fix ci --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d2a1ec43efb..3029c94faec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -409,7 +409,7 @@ jobs: cd ../../../doc fi echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV - sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename + sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename bison cd .. - save_cache: From d9a7f37d106cafcec7b9d28522b212529fee0a35 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 11:30:26 +0200 Subject: [PATCH 03/17] debug --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3029c94faec..e62fbeb6788 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -400,6 +400,7 @@ jobs: . venv/bin/activate npm install electron@1.8.4 npm install orca + sudo apt install -y bison pip uninstall -y plotly pip install -r requirements.txt if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then @@ -409,7 +410,7 @@ jobs: cd ../../../doc fi echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV - sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename bison + sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename cd .. - save_cache: From c59c2469c1eaf34f82dcef4709116db70a6372c6 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 11:42:01 +0200 Subject: [PATCH 04/17] debug --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e62fbeb6788..6d8019fd231 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -400,7 +400,8 @@ jobs: . venv/bin/activate npm install electron@1.8.4 npm install orca - sudo apt install -y bison + sudo apt install -y bison flex + pip install -U pip pip uninstall -y plotly pip install -r requirements.txt if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then From a3ba4172e3b9250bb5280cc576b9490825778613 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 11:55:45 +0200 Subject: [PATCH 05/17] debug --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d8019fd231..9098a199fe7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -400,7 +400,7 @@ jobs: . venv/bin/activate npm install electron@1.8.4 npm install orca - sudo apt install -y bison flex + # sudo apt install -y bison flex pip install -U pip pip uninstall -y plotly pip install -r requirements.txt From bb0d1c335f0d8e5693a55713df7f77a73f693986 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 12:00:45 +0200 Subject: [PATCH 06/17] debug --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9098a199fe7..9518a4e0791 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -400,7 +400,6 @@ jobs: . venv/bin/activate npm install electron@1.8.4 npm install orca - # sudo apt install -y bison flex pip install -U pip pip uninstall -y plotly pip install -r requirements.txt From c25c3972eb9211127837f4785528041808c354b4 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 15:45:53 +0200 Subject: [PATCH 07/17] simplify Makefile --- doc/apidoc/Makefile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index 2581f378c14..11435bdd7aa 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -3,7 +3,7 @@ # You can set these variables from the command line. SPHINXOPTS = -SPHINXBUILD = python -m sphinx +SPHINXBUILD = python3 -m sphinx SOURCEDIR = . BUILDDIR = _build @@ -18,21 +18,15 @@ help: # For sphinx-apidoc the first positional path is the module to document # then all the other ones are paths to exclude for the doc generation %: Makefile - sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*.py - sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*.py - sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*.py - sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*/*.py + # Copy _plotly_utils file so that they appear in the API doc cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/colors cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/express/colors + # Run sphinx-apidoc script to create hierarchy of rst files to generate + # docstrings. The first path is the one to process, the following ones + # are excluded from the search. sphinx-apidoc -M -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api + # Run sphinx-build to build html pages from the rst pages @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - git checkout -- ../../packages/python/plotly/plotly/graph_objs + # Remove files which were added only for docstring generation rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py ../../packages/python/plotly/plotly/colors/colorbrewer.py ../../packages/python/plotly/plotly/colors/carto.py ../../packages/python/plotly/plotly/colors/cmocean.py rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors/colorbrewer.py ../../packages/python/plotly/plotly/express/colors/carto.py ../../packages/python/plotly/plotly/express/colors/cmocean.py - rename 's/graph_objs/graph_objects/' _build/html/*.html _build/html/generated/*.html - mv _build/html/generated/plotly.graph_objs.html _build/html/generated/plotly.graph_objects.html - sed -i 's/graph_objs/graph_objects/g' _build/html/*.html - sed -i 's/graph_objs/graph_objects/g' _build/html/*.inv - sed -i 's/graph_objs/graph_objects/g' _build/html/*.js - sed -i 's/graph_objs/graph_objects/g' _build/html/generated/*.html - sed -i 's/graph_objs/graph_objects/g' _build/html/generated/generated/*.html From a400acb5e9b8e554cc745fb13e1ba1be63336208 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 16:21:50 +0200 Subject: [PATCH 08/17] debug --- doc/apidoc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index 11435bdd7aa..d2e09bcf4ce 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -24,6 +24,7 @@ help: # Run sphinx-apidoc script to create hierarchy of rst files to generate # docstrings. The first path is the one to process, the following ones # are excluded from the search. + rm -rf _build generated sphinx-apidoc -M -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api # Run sphinx-build to build html pages from the rst pages @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) From 2284221c010aeef490d79d8fc4eee854ad481b98 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 16:52:22 +0200 Subject: [PATCH 09/17] try to build the doc on python 3.7 (lazy import) --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9518a4e0791..25084caeb94 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -374,7 +374,7 @@ jobs: docker: # specify the version you desire here # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` - - image: circleci/python:3.6.8-node + - image: circleci/python:3.7-stretch-node-browsers working_directory: ~/project From 2a1241cfc6bacf0c1b18ee0c73bcad8df78d0ae8 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 17:03:11 +0200 Subject: [PATCH 10/17] empty space commit --- doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 9aebfc9ce64..51c56a393a1 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -23,5 +23,5 @@ recommonmark pathlib python-frontmatter datashader -pyarrow +pyarrow cufflinks==0.17.3 From 39205b942fb4790639825a79be333722fa7405cd Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 17:29:23 +0200 Subject: [PATCH 11/17] sed --- doc/apidoc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index d2e09bcf4ce..4b77f4b1559 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -18,6 +18,10 @@ help: # For sphinx-apidoc the first positional path is the module to document # then all the other ones are paths to exclude for the doc generation %: Makefile + sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*.py + sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*.py + sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*.py + sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*/*.py # Copy _plotly_utils file so that they appear in the API doc cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/colors cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/express/colors From 7300c3ef15b08cbf0591f35f180d14df7ab41cfc Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 17:51:04 +0200 Subject: [PATCH 12/17] clean working tree when building doc --- doc/apidoc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index 4b77f4b1559..1359e9205fb 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -32,6 +32,7 @@ help: sphinx-apidoc -M -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api # Run sphinx-build to build html pages from the rst pages @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + git checkout -- ../../packages/python/plotly/plotly/graph_objs # Remove files which were added only for docstring generation rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py ../../packages/python/plotly/plotly/colors/colorbrewer.py ../../packages/python/plotly/plotly/colors/carto.py ../../packages/python/plotly/plotly/colors/cmocean.py rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors/colorbrewer.py ../../packages/python/plotly/plotly/express/colors/carto.py ../../packages/python/plotly/plotly/express/colors/cmocean.py From c82e2fa580cce598818adaa7b3de0bf31fac45ba Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 18:11:50 +0200 Subject: [PATCH 13/17] sed back --- doc/apidoc/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index 1359e9205fb..a0580f27135 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -36,3 +36,10 @@ help: # Remove files which were added only for docstring generation rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py ../../packages/python/plotly/plotly/colors/colorbrewer.py ../../packages/python/plotly/plotly/colors/carto.py ../../packages/python/plotly/plotly/colors/cmocean.py rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors/colorbrewer.py ../../packages/python/plotly/plotly/express/colors/carto.py ../../packages/python/plotly/plotly/express/colors/cmocean.py + rename 's/graph_objs/graph_objects/' _build/html/*.html _build/html/generated/*.html + mv _build/html/generated/plotly.graph_objs.html _build/html/generated/plotly.graph_objects.html + sed -i 's/graph_objs/graph_objects/g' _build/html/*.html + sed -i 's/graph_objs/graph_objects/g' _build/html/*.inv + sed -i 's/graph_objs/graph_objects/g' _build/html/*.js + sed -i 's/graph_objs/graph_objects/g' _build/html/generated/*.html + sed -i 's/graph_objs/graph_objects/g' _build/html/generated/generated/*.html From e18c76fa76d65fd64207a22c2765e6ebe11728c8 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 18:40:01 +0200 Subject: [PATCH 14/17] zip apidoc to download it, print sphinx-build version --- .circleci/config.yml | 6 +++--- doc/apidoc/Makefile | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 25084caeb94..08487c83bff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -479,15 +479,15 @@ jobs: rm -rf .git cd ../.. fi - + tar -zcf _build/api.tgz _build/html cd ../.. - store_artifacts: path: doc/build destination: doc/build - store_artifacts: - path: doc/apidoc/_build/html - destination: doc/apidoc/_build/html + path: doc/apidoc/_build/ + destination: doc/apidoc/_build/ workflows: version: 2 diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index a0580f27135..f7591037193 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -18,6 +18,7 @@ help: # For sphinx-apidoc the first positional path is the module to document # then all the other ones are paths to exclude for the doc generation %: Makefile + sphinx-build --version sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*.py sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*.py sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*.py From 2566bd51fd0b71a9add332655557f5d129dc06bf Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 23:10:38 +0200 Subject: [PATCH 15/17] print plotly version --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08487c83bff..1891eede133 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -406,7 +406,7 @@ jobs: if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then pip uninstall -y plotly cd ../packages/python/plotly - python3 setup.py install + pip install -e . cd ../../../doc fi echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV @@ -465,6 +465,7 @@ jobs: cd doc . venv/bin/activate cd apidoc + pip list | grep plotly make html if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then cd _build/html From c07377907add9a3bb79530c9a4f28ad7d2ff7869 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 3 Aug 2020 23:57:36 +0200 Subject: [PATCH 16/17] clean config files --- .circleci/config.yml | 2 -- doc/apidoc/Makefile | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1891eede133..8cbb5af72ba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -465,7 +465,6 @@ jobs: cd doc . venv/bin/activate cd apidoc - pip list | grep plotly make html if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then cd _build/html @@ -480,7 +479,6 @@ jobs: rm -rf .git cd ../.. fi - tar -zcf _build/api.tgz _build/html cd ../.. - store_artifacts: diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index f7591037193..06e5fba7bb3 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -3,7 +3,7 @@ # You can set these variables from the command line. SPHINXOPTS = -SPHINXBUILD = python3 -m sphinx +SPHINXBUILD = python -m sphinx SOURCEDIR = . BUILDDIR = _build @@ -18,7 +18,6 @@ help: # For sphinx-apidoc the first positional path is the module to document # then all the other ones are paths to exclude for the doc generation %: Makefile - sphinx-build --version sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*.py sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*.py sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*.py From aeeb652d3eca7bdd99734a5082acfb515a71b571 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Tue, 4 Aug 2020 15:56:54 +0200 Subject: [PATCH 17/17] use local plotly also in doc-prod --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8cbb5af72ba..4423d5eeabb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -464,6 +464,15 @@ jobs: command: | cd doc . venv/bin/activate + # For the API doc, we need to use the local version of plotly + # since we are tweaking the source because of + # graph_objs/graph_objects + if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then + pip uninstall -y plotly + cd ../packages/python/plotly + pip install -e . + cd ../../../doc + fi cd apidoc make html if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then