@@ -286,19 +286,61 @@ def generate_gallery_pages(notebook_tags, output_dir="notebooks"):
286286 # Generate main gallery index
287287 with open (f"{ output_dir } /gallery.md" , "w" ) as f :
288288 f .write ("""---
289- title: Notebook Gallery
289+ title: Gallery
290290---
291291
292- # Notebook Gallery
292+ ## How to run the notebooks
293293
294- ```{gallery-grid}
295- :category: all
296- :columns: 1 1 2 3
297- ```
294+ The notebooks can be run on the **EOPF Sentinel Zarr Samples JupyterHub**. Each notebook integrates a Launch in JupyterHub button.
295+
296+ 
297+
298+ ---
299+
300+ Click **Sign in with CDSE IdP** to proceed.
301+
302+ You will be redirected to the CDSE login page:
303+
304+ 
305+
306+ ---
307+
308+ Please log in using your **CDSE user account**.
309+ If you do not have one, create one now, it's free!
310+
311+ Once logged in, you will be able to run your notebook in JupyterLab!
312+
313+ ---
314+
315+ If you encounter any problem or have suggestions, please let us know on GitHub, opening a new issue [here](https://github.com/EOPF-Sample-Service/eopf-sample-notebooks/issues).
298316
299- """ )
300317
301- f .write ("<!-- Generated by gallery plugin -->\n " )
318+ ## Notebooks Gallery
319+
320+ Click on the category to explore the corresponding notebooks!
321+
322+ ### Sentinel Data
323+ <a class="link" href="gallery-sentinel#sentinel-1" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-1">🛰️ sentinel-1</span></p></a>
324+ <a class="link" href="gallery-sentinel#sentinel-2" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-2">🛰️ sentinel-2</span></p></a>
325+ <a class="link" href="gallery-sentinel#sentinel-3" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-3">🛰️ sentinel-3</span></p></a>
326+
327+ ### Application Topics
328+ <a class="link" href="gallery-topics#land-applications" ><p style="background-color:white;"><span class="gallery-tag tag-land">🌱 land</span></p></a>
329+ <a class="link" href="gallery-topics#climate-monitoring" ><p style="background-color:white;"><span class="gallery-tag tag-climate-change">🌡️ climate-change</span></p></a>
330+ <a class="link" href="gallery-topics#marine-applications" ><p style="background-color:white;"><span class="gallery-tag tag-marine">🌊 marine</span></p></a>
331+ <a class="link" href="gallery-topics#emergency-and-security-applications" ><p style="background-color:white;"><span class="gallery-tag tag-security">🔒 security</span></p></a>
332+
333+ ### Tools & Libraries
334+ <a class="link" href="gallery-tools/#xarray" ><p style="background-color:white;"><span class="gallery-tag tag-xarray">📊 xarray</span></p></a>
335+ <a class="link" href="gallery-tools/#xarray-eopf-plugin" ><p style="background-color:white;"><span class="gallery-tag tag-xarray-eopf">🔌 xarray-eopf</span></p></a>
336+ <a class="link" href="gallery-tools/#xcube-eopf-plugin" ><p style="background-color:white;"><span class="gallery-tag tag-xcube">🏷️ xcube</span></p></a>
337+ <a class="link" href="gallery-tools/#gdal" ><p style="background-color:white;"><span class="gallery-tag tag-gdal">🗺️ gdal</span></p></a>
338+
339+ ### Basic Tutorials
340+ <a class="link" href="gallery-tutorials/#dask" ><p style="background-color:white;"><span class="gallery-tag tag-dask">🧮 dask</span></p></a>
341+ <a class="link" href="gallery-tutorials/#basic-data-access" ><p style="background-color:white;"><span class="gallery-tag tag-basic">👶 basic</span></p></a>
342+
343+ """ )
302344
303345 # Generate Sentinel category page
304346 with open (categories ["sentinel" ]["file" ], "w" ) as f :
@@ -308,6 +350,10 @@ def generate_gallery_pages(notebook_tags, output_dir="notebooks"):
308350
309351# { categories ["sentinel" ]["title" ]}
310352
353+ <a class="link" href="gallery-sentinel#sentinel-1" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-1">🛰️ sentinel-1</span></p></a>
354+ <a class="link" href="gallery-sentinel#sentinel-2" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-2">🛰️ sentinel-2</span></p></a>
355+ <a class="link" href="gallery-sentinel#sentinel-3" ><p style="background-color:white;"><span class="gallery-tag tag-sentinel-3">🛰️ sentinel-3</span></p></a>
356+
311357{ categories ["sentinel" ]["description" ]}
312358
313359## Sentinel-1
@@ -341,6 +387,12 @@ def generate_gallery_pages(notebook_tags, output_dir="notebooks"):
341387
342388# { categories ["topics" ]["title" ]}
343389
390+ <a class="link" href="gallery-topics#land-applications" ><p style="background-color:white;"><span class="gallery-tag tag-land">🌱 land</span></p></a>
391+ <a class="link" href="gallery-topics#climate-monitoring" ><p style="background-color:white;"><span class="gallery-tag tag-climate-change">🌡️ climate-change</span></p></a>
392+ <a class="link" href="gallery-topics#marine-applications" ><p style="background-color:white;"><span class="gallery-tag tag-marine">🌊 marine</span></p></a>
393+ <a class="link" href="gallery-topics#emergency-and-security-applications" ><p style="background-color:white;"><span class="gallery-tag tag-security">🔒 security</span></p></a>
394+
395+
344396{ categories ["topics" ]["description" ]}
345397
346398## Land Applications
@@ -381,6 +433,11 @@ def generate_gallery_pages(notebook_tags, output_dir="notebooks"):
381433
382434# { categories ["tools" ]["title" ]}
383435
436+ <a class="link" href="gallery-tools/#xarray" ><p style="background-color:white;"><span class="gallery-tag tag-xarray">📊 xarray</span></p></a>
437+ <a class="link" href="gallery-tools/#xarray-eopf-plugin" ><p style="background-color:white;"><span class="gallery-tag tag-xarray-eopf">🔌 xarray-eopf</span></p></a>
438+ <a class="link" href="gallery-tools/#xcube-eopf-plugin" ><p style="background-color:white;"><span class="gallery-tag tag-xcube">🏷️ xcube</span></p></a>
439+ <a class="link" href="gallery-tools/#gdal" ><p style="background-color:white;"><span class="gallery-tag tag-gdal">🗺️ gdal</span></p></a>
440+
384441{ categories ["tools" ]["description" ]}
385442
386443## Xarray
@@ -422,27 +479,31 @@ def generate_gallery_pages(notebook_tags, output_dir="notebooks"):
422479
423480 # Generate Tutorials category page
424481 with open (categories ["tutorials" ]["file" ], "w" ) as f :
425- f .write ("""---
426- title: Tutorials
482+ f .write (f """---
483+ title: { categories [ "tutorials" ][ "title" ] }
427484---
428485
429- # Tutorials
486+ # { categories [ "tutorials" ][ "title" ] }
430487
431- Notebooks demonstrating the main workflows for accessing and working with the data
488+ <a class="link" href="gallery-tutorials/#dask" ><p style="background-color:white;"><span class="gallery-tag tag-dask">🧮 dask</span></p></a>
489+ <a class="link" href="gallery-tutorials/#basic-data-access" ><p style="background-color:white;"><span class="gallery-tag tag-basic">👶 basic</span></p></a>
490+
491+ { categories ["tutorials" ]["description" ]}
432492
433493## Dask
434494
435- ```{gallery-grid}
495+ ```{{ gallery-grid} }
436496:category: dask
437497:columns: 1 1 2 3
438498```
439499
440500## Basic Data Access
441501
442- ```{gallery-grid}
502+ ```{{ gallery-grid} }
443503:category: basic
444504:columns: 1 1 2 3
445505```
506+
446507 """ )
447508
448509
0 commit comments