You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yj...@apache.org on 2022/04/25 20:01:53 UTC

[superset] branch master updated: docs: updated links for country map scripts (#19823)

This is an automated email from the ASF dual-hosted git repository.

yjc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ae384111c1 docs: updated links for country map scripts (#19823)
ae384111c1 is described below

commit ae384111c1887a4d18fbd78e66868ea4184243f1
Author: Jesse Yang <je...@airbnb.com>
AuthorDate: Mon Apr 25 13:01:41 2022 -0700

    docs: updated links for country map scripts (#19823)
---
 docs/docs/miscellaneous/country-map-tools.mdx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/docs/miscellaneous/country-map-tools.mdx b/docs/docs/miscellaneous/country-map-tools.mdx
index 7f3d79e3ec..5e490b2057 100644
--- a/docs/docs/miscellaneous/country-map-tools.mdx
+++ b/docs/docs/miscellaneous/country-map-tools.mdx
@@ -54,8 +54,8 @@ The Country Maps visualization already ships with the maps for the following cou
 To add a new country to the list, you'd have to edit files in
 [@superset-ui/legacy-plugin-chart-country-map](https://github.com/apache-superset/superset-ui/tree/master/plugins/legacy-plugin-chart-country-map).
 
-1. Generate a new GeoJSON file for your country following the guide in [this Jupyter notebook](https://github.com/apache-superset/superset-ui/blob/master/plugins/legacy-plugin-chart-country-map/scripts/Country%20Map%20GeoJSON%20Generator.ipynb).
-2. Edit the countries list in [legacy-plugin-chart-country-map/src/countries.js](https://github.com/apache-superset/superset-ui/blob/master/plugins/legacy-plugin-chart-country-map/src/countries.js).
-3. Ping one of the Superset committers to get the `@superset-ui/legacy-plugin-chart-country-map` package published, or
-   publish it under another name yourself.
-4. Update npm dependencies in `superset-frontend/package.json` to install the updated plugin package.
+1. Generate a new GeoJSON file for your country following the guide in [this Jupyter notebook](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-plugin-chart-country-map/scripts/Country%20Map%20GeoJSON%20Generator.ipynb).
+2. Edit the countries list in [legacy-plugin-chart-country-map/src/countries.ts](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts).
+3. Install superset-frontend dependencies: `cd superset-frontend && npm install`
+4. Verify your countries in Superset plugins storybook: `npm run plugins:storybook`.
+5. Build and install Superset from source code.