diff --git a/scripts/fetch-icons/generators/generateAndroidIcons.ts b/scripts/fetch-icons/generators/generateAndroidIcons.ts index 3f69e421..302d9c53 100644 --- a/scripts/fetch-icons/generators/generateAndroidIcons.ts +++ b/scripts/fetch-icons/generators/generateAndroidIcons.ts @@ -55,3 +55,13 @@ export const extractPath = (svgData: string): string => { } return path; }; + +/** + * Copies the README file to the output directory. + * This is useful for users to understand how to use the generated icons, but is also useful for the CI/CD pipeline so that for every version release there will be a change. + * @param outputDir - The android output directory. + */ +const copyReadme = (outputDir: string) => { + const readme = readFileSync("./scripts/fetch-icons/templates/android-readme.md.template").toString(); + writeFileSync(`${outputDir}/README.md`, readme); +}; diff --git a/scripts/fetch-icons/templates/android-readme.md.template b/scripts/fetch-icons/templates/android-readme.md.template new file mode 100644 index 00000000..e10026eb --- /dev/null +++ b/scripts/fetch-icons/templates/android-readme.md.template @@ -0,0 +1,7 @@ + + +# Zeta Icons v0.8.1 + + + +The icons in this directory are part of the Zeta Icons library. To see a full list of icons, visit [Zeta Icons](https://design.zebra.com/icons)