Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c2882b4
add gh action for build docs
LiamConnors Feb 26, 2026
b1c1009
install python
LiamConnors Feb 26, 2026
b5b9b0f
Update build.yml
LiamConnors Feb 27, 2026
ab04ac8
Update 2020-08-21-dash_apps.md
LiamConnors Feb 27, 2026
56a3a32
remove layout from dash_apps redirect
LiamConnors Feb 27, 2026
cec65a4
Delete 2020-08-21-dash_apps.md
LiamConnors Feb 27, 2026
61bc86d
update file order
LiamConnors Feb 27, 2026
85e4ee3
Update build.yml
LiamConnors Feb 27, 2026
5e09140
Update build.yml
LiamConnors Feb 27, 2026
2a8af0e
update build workflow
LiamConnors Feb 27, 2026
921aa81
Update config.yml
LiamConnors Feb 27, 2026
6df84a7
Update build.yml
LiamConnors Feb 27, 2026
0551989
rename files
LiamConnors Feb 27, 2026
0d9451d
fix redirects
LiamConnors Mar 2, 2026
0bde408
add snapshots
LiamConnors Mar 2, 2026
6ead7db
add mapbox and fetch upstream docs
LiamConnors Mar 2, 2026
b3e02ee
Update build.yml
LiamConnors Mar 2, 2026
c4a242e
use uv
LiamConnors Mar 2, 2026
68aa1ca
Update build.yml
LiamConnors Mar 2, 2026
ac4f72b
Update build.yml
LiamConnors Mar 2, 2026
0c98440
Update build.yml
LiamConnors Mar 2, 2026
9f129c4
Update build.yml
LiamConnors Mar 2, 2026
c7cc8e2
Update 2020-08-21-dash_apps.md
LiamConnors Mar 2, 2026
4100266
Update build.yml
LiamConnors Mar 2, 2026
85f4901
Update build.yml
LiamConnors Mar 2, 2026
c86a1ed
Update build.yml
LiamConnors Mar 3, 2026
ea83d7e
Update build.yml
LiamConnors Mar 9, 2026
9e319c7
Update build.yml
LiamConnors Mar 9, 2026
3469cd1
Update build.yml
LiamConnors Mar 9, 2026
81834e0
Revert "Update build.yml"
LiamConnors Mar 9, 2026
65eb813
Merge branch 'master' into update-ci
LiamConnors Mar 9, 2026
47f1e75
remove workarounds
LiamConnors Mar 9, 2026
fd271ea
Update build.yml
LiamConnors Mar 9, 2026
a4b9196
update branches and remove circleci
LiamConnors Mar 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 0 additions & 129 deletions .circleci/config.yml

This file was deleted.

121 changes: 121 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Build and Deploy

on:
push:
branches-ignore:
- gh-pages

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install Python dependencies
run: uv pip install --system PyYAML==6.0.1 python-frontmatter==0.5.0

- name: Fetch upstream docs
run: make fetch_upstream_files

- name: Set up Mapbox token
run: |
echo "token: ${{ secrets.MAPBOX_TOKEN }}" > _data/mapbox_token.yml

- name: Build site
run: |
python front-matter-ci.py _posts
python check-or-enforce-order.py _posts/python
python check-or-enforce-order.py _posts/python-v3
python check-or-enforce-order.py _posts/r/
python check-or-enforce-order.py _posts/matlab
python check-or-enforce-order.py _posts/plotly_js
python generate-sitemaps.py
md5sum all_static/css/main.css | cut -d ' ' -f 1 > _data/cache_bust_css.yml
bundle exec jekyll build
cp python/sitemap.xml _site/python/sitemap.xml
rm _data/mapbox_token.yml

- name: Create Percy snapshots
run: |
mkdir snapshots
cd _site
cp -r 'all_static' '../snapshots'
cp 'api/index.html' '../snapshots'
cp --parents 'python/index.html' '../snapshots'
cp --parents 'python/getting-started/index.html' '../snapshots'
cp --parents 'python/plotly-fundamentals/index.html' '../snapshots'
cp --parents 'python/line-and-scatter/index.html' '../snapshots'
cp --parents 'r/index.html' '../snapshots'
cp --parents 'r/getting-started/index.html' '../snapshots'
cp --parents 'r/plotly-fundamentals/index.html' '../snapshots'
cp --parents 'r/line-and-scatter/index.html' '../snapshots'
cp --parents 'javascript/index.html' '../snapshots'
cp --parents 'javascript/plotly-fundamentals/index.html' '../snapshots'
cp --parents 'javascript/getting-started/index.html' '../snapshots'
cp --parents 'javascript/line-and-scatter/index.html' '../snapshots'
cp --parents 'ggplot2/index.html' '../snapshots'
cp --parents 'ggplot2/getting-started/index.html' '../snapshots'
cp --parents 'ggplot2/histograms/index.html' '../snapshots'
cp --parents 'matlab/index.html' '../snapshots'
cp --parents 'matlab/getting-started/index.html' '../snapshots'
cp --parents 'matlab/graphing-multiple-chart-types/index.html' '../snapshots'
cp --parents 'matlab/histograms/index.html' '../snapshots'
cp --parents 'csharp/index.html' '../snapshots'
cp --parents 'csharp/getting-started/index.html' '../snapshots'
cd ..
rm -f 'snapshots/all_static/javascripts/jquery-knob/index.html'
rm -f 'snapshots/all_static/images/Plotly-feed2.html'
rm -f 'snapshots/all_static/images/Plotly.html'
rm -f 'snapshots/all_static/images/Plotly-Feed.html'
rm -f snapshots/*.bkp snapshots/*/*.bkp snapshots/*/*/*.bkp

- name: Percy snapshot
run: bundle exec percy snapshot snapshots --enable_javascript
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

- name: Create GitHub App token
if: github.ref_name == 'master' && github.repository == 'plotly/graphing-library-docs'
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.GRAPHING_LIBRARIES_CI_GHAPP_ID }}
private-key: ${{ secrets.GRAPHING_LIBRARIES_CI_GHAPP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: documentation

- name: Checkout documentation repo
if: github.ref_name == 'master' && github.repository == 'plotly/graphing-library-docs'
uses: actions/checkout@v4
with:
repository: plotly/documentation
ref: gh-pages
token: ${{ steps.app-token.outputs.token }}
path: documentation

- name: Deploy docs
if: github.ref_name == 'master' && github.repository == 'plotly/graphing-library-docs'
run: |
git config --global user.email "accounts@plot.ly"
git config --global user.name "plotlydocbot"
cp -r _site/* documentation/
cd documentation
git add .
git commit -m "deploying https://github.com/plotly/graphing-library-docs/commit/${{ github.sha }}" || echo "No changes to commit"
git push
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
---

{% assign examples = site.posts | where:"language","plotly_js" | where:"suite","annotations" | sort: "order" %}
{% include posts/auto_examples.html examples=examples %}
{% include posts/auto_examples.html examples=examples %}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ redirect_from: javascript/pointcloud/
sitemap: false
thumbnail: thumbnail/pointcloud.jpg
---

This page outlines the changes in Plotly.js version 3 and cases where you may need to update your charts.

## Removed Features
Expand Down Expand Up @@ -359,4 +360,4 @@ var data = [{
cmin: 0,
cmax: 100
}];
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ The common image formats: 'PNG', 'JPG/JPEG' are supported. In addition, formats

## Saving as SVG ##
img_svg.attr("src", url);
Plotly.toImage(gd,{format:'svg',height:800,width:800});
Plotly.toImage(gd,{format:'svg',height:800,width:800});
10 changes: 5 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ fetch_adjacent_python_files:
cp -r ../plotly.py/doc/build/html _posts/python/html

fetch_upstream_files: clean
git clone --depth 1 -b built git@github.com:plotly/plotly.py-docs _posts/python/html
git clone --depth 1 -b built git@github.com:plotly/plotlyjs.jl-docs _posts/julia/html
git clone --depth 1 -b built git@github.com:plotly/plotly.net-docs _posts/fsharp/html
git clone --depth 1 -b built git@github.com:plotly/plotly.r-docs _posts/r/md
git clone --depth 1 -b built git@github.com:plotly/plotly.matlab-docs _posts/matlab/md
git clone --depth 1 -b built https://github.com/plotly/plotly.py-docs _posts/python/html
git clone --depth 1 -b built https://github.com/plotly/plotlyjs.jl-docs _posts/julia/html
git clone --depth 1 -b built https://github.com/plotly/plotly.net-docs _posts/fsharp/html
git clone --depth 1 -b built https://github.com/plotly/plotly.r-docs _posts/r/md
git clone --depth 1 -b built https://github.com/plotly/plotly.matlab-docs _posts/matlab/md
mv _posts/r/md/ggplot2 _posts/ggplot2/md
mv _posts/fsharp/html/csharp _posts/csharp/html

Expand Down