Skip to content

Commit

Permalink
docs: Add android readme
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 22, 2024
1 parent 6c7e03b commit 6e47d1b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/fetch-icons/generators/generateAndroidIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
7 changes: 7 additions & 0 deletions scripts/fetch-icons/templates/android-readme.md.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- x-release-please-start-version -->

# Zeta Icons v0.8.1

<!-- x-release-please-end -->

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)

0 comments on commit 6e47d1b

Please sign in to comment.