You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c6ab9c7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ Steps to update plotly.js:
283
283
284
284
This command does the following:
285
285
286
-
- Downloads new versions of `plot-schema.json` and `plotly.min.js` from the [plotly.js GitHub repository](https://github.com/plotly/plotly.js)
286
+
- Downloads new versions of `plot-schema.json` and `plotly.min.js` from the [`plotly.js` npm package](https://www.npmjs.com/package/plotly.js)
287
287
and places them in`codegen/resources/` and `plotly/package_data/`, respectively.
288
288
- Updates `plotly/offline/_plotlyjs_version.py` with the new version
289
289
- Regenerates all of the classes under `graph_objs/` (`go.Figure`, `go.Layout`, etc.), and `plotly/validators/_validators.json`, based on the new schema
@@ -318,23 +318,9 @@ and places them in `codegen/resources/` and `plotly/package_data/`, respectively
318
318
319
319
7. Add a changelog entry to `CHANGELOG.md` with a link to the PR. We typically mention the version update, link to the plotly.js GitHub release page, and list out the most important changes. Follow the format of previous plotly.js version bump changelog updates.
320
320
321
-
### Using a Development Branch of Plotly.js
321
+
### Using a Development Version of Plotly.js
322
322
323
-
If your development branch is in [the plotly.js repository](https://github.com/plotly/plotly.js)
324
-
you can update to development versions of `plotly.js` with this command:
|`updateplotlyjs`| Update `plotly.min.js` and `plot-schema.json` to match the `plotly.js` version specified in`js/package.json`, run codegen to regenerate the Python files, then run `npm install`in`js/` to refresh `js/package-lock.json`. Set `SKIP_NPM=1` to skip the npm step. |
365
-
| `updateplotlyjsdev [--devrepo REPONAME --devbranch BRANCHNAME] \| [--local PATH]` | Update `plot-schema.json` and `plotly.min.js` to match the version in the provided plotly.js repo name and branch name, OR local path. Then, run codegen to regenerate the Python files. |
351
+
|`updateplotlyjsdev PATH`| Update `plot-schema.json` and `plotly.min.js`from the localplotly.js repository at `PATH`. Then, run codegen to regenerate the Python files. |
366
352
|`bumpversion X.Y.Z`| Update the plotly.py version number to X.Y.Z across all files where it needs to be updated. |
0 commit comments