diff --git a/README.md b/README.md index 6a4021480fb5a4e532069e5a4139613a8efb99b0..fe2166c6b452d8d500ca9525ea643c19b98d99a2 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,18 @@ To manually update (using javascript console): ```js const baseUrl = "https://github.com/INRIA/scikit-learn-mooc/raw/master/"; const apiUrl = "https://api.github.com/repos/INRIA/scikit-learn-mooc/contents"; -let datasets, notebooks, wrapups; +let datasets, notebooks, wrapups, figures; fetch(`${apiUrl}/datasets`) .then(function(response_datasets) { return response_datasets.json() }).then(function(data_datasets) { datasets = data_datasets.map(item => item.path) + return fetch(`${apiUrl}/figures`) +}).then(function(response_figures) { + return response_figures.json() +}).then(function(data_figures) { + figures = data_figures.map(item => item.path) return fetch(`${apiUrl}/notebooks`) }).then(function(response_notebooks) { return response_notebooks.json()