@@ -323,125 +323,6 @@ jobs:
323323 - store_artifacts :
324324 path : output.tgz
325325
326- build-doc :
327- resource_class : xlarge
328- docker :
329- - image : cimg/python:3.9-browsers
330-
331- steps :
332- - add_ssh_keys :
333- fingerprints :
334- - " dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" # plotlydocbot
335-
336- - checkout
337- - browser-tools/install-chrome
338- - browser-tools/install-chromedriver
339- - run :
340- name : Install dependencies
341- command : |
342- cd doc
343- sudo apt-get update
344- sudo apt-get install rename
345- curl -LsSf https://astral.sh/uv/install.sh | sh
346- uv venv
347- source .venv/bin/activate
348- uv pip install -r requirements.txt
349- cd ..
350- if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
351- uv pip uninstall plotly
352- uv pip install -e .
353- fi
354-
355- - run :
356- name : make html
357- command : |
358- cd doc
359- source .venv/bin/activate
360- echo ${mapbox_token} > python/.mapbox_token
361- make -kj8 || make -kj8
362- curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
363- curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/check-or-enforce-order.py > check-or-enforce-order.py
364- python front-matter-ci.py build/html
365- python check-or-enforce-order.py build/html
366- if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
367- cd build/html
368- git init
369- git config user.name plotlydocbot
370- git config user.email accounts@plot.ly
371- git add *
372- git commit -m "build of https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
373- git push --force git@github.com:plotly/plotly.py-docs.git master:built
374- rm -rf .git
375- cd ../..
376- cd build/ipynb
377- git init
378- git config user.name plotlydocbot
379- git config user.email accounts@plot.ly
380- git add *
381- git commit -m "build of https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
382- git push --force git@github.com:plotly/plotly.py-docs.git master:built_ipynb
383- rm -rf .git
384- cd ../..
385- fi
386- tar -zcf build/html.tgz build/html
387- tar -zcf build/ipynb.tgz build/ipynb
388- rm -rf build/html build/ipynb
389- cd ..
390-
391- - run :
392- name : trigger doc build
393- command : |
394- if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
395- git clone --depth=1 https://github.com/plotly/graphing-library-docs.git
396- cd graphing-library-docs
397- git config user.name plotlydocbot
398- git config user.email accounts@plot.ly
399- git commit --allow-empty -m "deploying https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
400- git push
401- cd ..
402- rm -rf graphing-library-docs
403- fi
404-
405- - run :
406- name : make doc
407- command : |
408- cd doc
409- source .venv/bin/activate
410- # For the API doc, we need to use the local version of plotly
411- # since we are tweaking the source because of
412- # graph_objs/graph_objects
413- uv pip uninstall plotly
414- cd ..
415- uv pip install -e .
416- cd doc/apidoc
417- make html
418- if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
419- cd _build/html
420- touch .nojekyll
421- git init
422- git config user.name plotlydocbot
423- git config user.email accounts@plot.ly
424- git add *
425- git add .nojekyll
426- git commit -m "build of https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
427- git push --force git@github.com:plotly/plotly.py-docs.git master:gh-pages
428- rm -rf .git
429- cd ../..
430- fi
431-
432- - run :
433- name : tar apidoc artifact
434- command : tar -czf doc/apidoc/apidoc.tgz -C doc/apidoc/_build html
435- - store_artifacts :
436- path : doc/build/html.tgz
437- destination : doc-html.tgz
438- - store_artifacts :
439- path : doc/build/ipynb.tgz
440- destination : ipynb.tgz
441- - store_artifacts :
442- path : doc/apidoc/apidoc.tgz
443- destination : apidoc.tgz
444-
445326workflows :
446327 code_formatting :
447328 jobs :
@@ -485,4 +366,3 @@ workflows:
485366 python_version :
486367 - " 3.12"
487368 - python_311_percy
488- - build-doc
0 commit comments