diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ ################### *.directory *.bak -*thumbs.db \ No newline at end of file +*thumbs.db diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,15 @@ endif() endif() +# Generate data for web page +add_custom_target(generate-web ALL + COMMAND ${CMAKE_SOURCE_DIR}/generate_web_data.sh +) + +configure_file( + ${CMAKE_SOURCE_DIR}/index.html ${CMAKE_BINARY_DIR}/index.html +) + add_subdirectory(autotests) add_subdirectory(icons) add_subdirectory(icons-dark) diff --git a/generate_web_data.sh b/generate_web_data.sh new file mode 100755 --- /dev/null +++ b/generate_web_data.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +DIR="$(pwd)" + +if [ ! -d "$DIR/icons" ] +then + echo "Error: Directory $DIR/icons does not exist." + exit +fi + +if [ ! -d "$DIR/icons-dark" ] +then + echo "Error: Directory $DIR/icons-dark does not exist." + exit +fi + +echo "1/2 Indexing Breeze icons..." +cd "$DIR/icons" +find . -name '*.svg' > "$DIR/.breeze.txt" +echo "1/2 Done." + +echo "2/2 Indexing Breeze Dark icons..." +cd "$DIR/icons-dark" +find . -name '*.svg' > "$DIR/.breeze-dark.txt" +echo "2/2 Done." + +echo "Please open index.html in web browser." diff --git a/index.html b/index.html new file mode 100644 --- /dev/null +++ b/index.html @@ -0,0 +1,199 @@ + + + + + Breeze Icons Cheatsheet + + + +
+
+ Breeze Icons Cheatsheet + + + + + + {{ page }}/{{ getPages() }} + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name162224324864128256symbolic
{{ name }}
+
+ + + + + +