Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Generating the Lexicon Statistics table in the README #7

Closed
apmoore1 opened this issue Nov 15, 2021 · 2 comments
Closed

Auto Generating the Lexicon Statistics table in the README #7

apmoore1 opened this issue Nov 15, 2021 · 2 comments

Comments

@apmoore1
Copy link
Member

It is slightly tricky to auto generate the lexicon statistics table in the README as markdown does not allow embedding data from other files, apart from images, into a markdown file. Therefore, even though it is easy to create another file called lexcion_statistics.md with the statistics data generated through GitHub actions, e.g.:

python lexicon_statistics.py > lexicon_statistics.md

Getting the data from lexicon_statistics.md into README.md is difficult. At the moment the only solution is to do this manually by running python lexicon_statistics.py and copying the output into the README.

@perayson
Copy link
Member

It would be fine to leave the stats as a separate markdown file I think ...

@apmoore1
Copy link
Member Author

It would be fine to leave the stats as a separate markdown file I think ...

This is now fixed with the #1 pull request, the lexicon statistics are in a separate file called lexicon_statistics.md, and the CI GitHub action auto generates this lexicon statistics file each time someone pushes to the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants