From 6e47d1bccdd393bb95e93e9c49e1d79029bbd991 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 22 Oct 2024 10:03:09 +0100 Subject: [PATCH] docs: Add android readme --- scripts/fetch-icons/generators/generateAndroidIcons.ts | 10 ++++++++++ .../fetch-icons/templates/android-readme.md.template | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 scripts/fetch-icons/templates/android-readme.md.template 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)