* Update generate-theme-doc.js
Optimize README generation code for efficiency and readability.
* fix(scripts): fix some small bugs
This commit fixes some small bugs that were still present in the script
code.
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>