diff --git a/_tools/ren.sh b/_tools/ren.sh index 8bf1fd6..24320a8 100644 --- a/_tools/ren.sh +++ b/_tools/ren.sh @@ -1,4 +1,4 @@ -for file in t/* ; do - newname=$(echo $file | cut -d'_' -f 2) +for file in * ; do + newname=$(echo $file | cut -d'-' -f 2) mv $file $newname done \ No newline at end of file diff --git a/_tools/run-gallery.sh b/_tools/run-gallery.sh index 2182c7f..fb01df2 100644 --- a/_tools/run-gallery.sh +++ b/_tools/run-gallery.sh @@ -1,6 +1,7 @@ #!/bin/bash node gallery.js ../azure-docs "Azure Docs" node gallery.js ../azure-patterns "Azure Patterns Collection" +node gallery.js ../azure-icons "Official Azure Icon Set" node gallery.js ../logos "Logos & Brands" node gallery.js ../other "Other Icons" -node gallery.js ../official "Official MS Cloud Icon Set" +node gallery.js ../cloud-old "Old MS Cloud Icon Set" diff --git a/_tools/run-scrape.sh b/_tools/run-scrape.sh index 3f8995d..b6094ee 100644 --- a/_tools/run-scrape.sh +++ b/_tools/run-scrape.sh @@ -1,7 +1,7 @@ #!/bin/bash -#node scrape.js https://docs.microsoft.com/en-gb/azure/ -#node scrape.js https://azure.microsoft.com/en-gb/patterns/styles/glyphs-icons/ -node scrape.js https://azure.microsoft.com/en-us/solutions/ +node scrape.js https://docs.microsoft.com/en-gb/azure/ +node scrape.js https://azure.microsoft.com/en-gb/patterns/styles/glyphs-icons/ +#node scrape.js https://azure.microsoft.com/en-us/solutions/ # node scrape.js https://azure.microsoft.com/en-us/overview/azure-vs-aws # node scrape.js https://azure.microsoft.com/en-us/overview/ai-platform diff --git a/_tools/templates/gallery.ejs b/_tools/templates/gallery.ejs index 285725f..f4b6c6f 100644 --- a/_tools/templates/gallery.ejs +++ b/_tools/templates/gallery.ejs @@ -88,7 +88,7 @@
@@ -151,6 +151,12 @@ var dataURL = canvas.toDataURL("image/png"); return dataURL.replace(/^data:image\/(png|jpg);base64,/, ""); } + + function updateCount() { + document.querySelector('#count').innerHTML = ''+document.querySelectorAll(".imgbox").length + } + + updateCount()