diff --git a/build-docs.rb b/build-docs.rb index 55caf9e..91e1e07 100755 --- a/build-docs.rb +++ b/build-docs.rb @@ -261,3 +261,9 @@ mkdocs['nav'].push(*subproject_navigation) if subproject_navigation File.write('mkdocs.yml', mkdocs.to_yaml) %x(mkdocs build) + +Dir.chdir(mkdocs['site_dir']) + +Dir.glob('**/*.png').each do|f| + system("optipng #{f}") or exit! +end