File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
runtime/eoapi/raster/eoapi/raster/templates Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 2828 - name : Install dependencies
2929 run : |
3030 python -m pip install --upgrade pip
31- python -m pip install mkdocs mkdocs-material pygments
31+ python -m pip install -r docs/requirements.txt
3232
3333 - name : Deploy docs
3434 run : mkdocs gh-deploy --force -f docs/mkdocs.yml
Original file line number Diff line number Diff line change 1+ mkdocs
2+ pymdown-extensions
3+ mkdocs-material
4+ pygments
Original file line number Diff line number Diff line change 593593 throw new Error ( 'Network response was not ok.' )
594594 } )
595595 . then ( ( data ) => {
596+ var info_link = data . links . filter ( ( link ) => link . rel == 'metadata' ) ;
597+ var tilejson_link = data . links . filter ( ( link ) => link . rel == 'tilejson' ) ;
598+ var map_link = data . links . filter ( ( link ) => link . rel == 'map' ) ;
599+ var mosaic_info_str = `<p class="mt6">MosaicID: <strong>${ data . searchid } </strong></p><p>Links:</p>`
600+ if ( info_link ) {
601+ mosaic_info_str += `<p class="mt6">- <a href="${ info_link [ 0 ] . href } " target="_blank">Mosaic Info Link</a></p>`
602+ }
603+
604+ if ( tilejson_link ) {
605+ mosaic_info_str += `<p class="mt6">- <a href="${ tilejson_link [ 0 ] . href } " target="_blank">TileJSON Link</a> (Template URL)</p>`
606+ }
607+
608+ if ( map_link ) {
609+ mosaic_info_str += `<p class="mt6">- <a href="${ map_link [ 0 ] . href } " target="_blank">Map Link</a> (Template URL)</p>`
610+ }
611+
596612 const mosaic_info = document . getElementById ( 'mosaic-info' )
597613 mosaic_info . innerHTML = ''
598- mosaic_info . insertAdjacentHTML (
599- 'beforeend' ,
600- `<p class="mt6">MosaicID: ${ data . searchid } </p>` +
601- `<p class="mt6"><a href="${ data . links [ 0 ] . href } " target="_blank">Mosaic Info Link</p>`
602- )
614+ mosaic_info . insertAdjacentHTML ( 'beforeend' , mosaic_info_str )
603615 } )
604616} )
605617
You can’t perform that action at this time.
0 commit comments