Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bbd2cdd3 authored by ROSPARS Benoit's avatar ROSPARS Benoit
Browse files

Add figures

parent d59d8992
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment