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

Documentation: Many stub markdown articles with little or no content #954

Open
DnlRKorn opened this issue Jul 8, 2024 · 1 comment
Open

Comments

@DnlRKorn
Copy link
Contributor

DnlRKorn commented Jul 8, 2024

for x in $(find . -name "*.md"); do wc -w $x; done | awk -F ' ' '$1<20'

6 ./docs/contributing.md link
0 ./docs/reference/components.md link
0 ./docs/reference/eq.md link
0 ./docs/reference/imports/go.md link
0 ./docs/reference/imports/uberon.md link
0 ./docs/reference/mappings/mp_hp.md link
0 ./docs/reference/mappings.md link
0 ./docs/reference/patterns.md link
5 ./docs/reference/qc/odk_checks.md link
4 ./docs/reference/qc.md link
12 ./docs/templates/dosdp.md link
12 ./src/mappings/README.md link
6 ./src/patterns/data/default/README.md link
7 ./src/patterns/data/derived_dont_edit/README.md link
10 ./src/patterns/dosdp-deprecated/README.md link
6 ./src/patterns/dosdp-dev/README.md link
0 ./src/scripts/upheno/README.md link
3 ./src/templates/README.md link

@DnlRKorn
Copy link
Contributor Author

DnlRKorn commented Jul 8, 2024

This is the actual code to generate the above section;
for x in $(find . -name "*.md"); do wc -w $x; done | awk -F ' ' '$1<20 {print $1" "$2" [link](https://github.com/obophenotype/upheno/blob/master/"substr($2,3)")"}'

Brief explanation for the code snippet.

  • Find every file markdown file in the uPheno git repository find . -name "*.md"
  • list the number of words in that file wc -w $x
  • If the word count ($1) is less than 20 ($1<20), then print out the number of words ($1), name of the file ($2), and a hyperlink to the file on github ([link](https://github.com/obophenotype/upheno/blob/master/"substr($2,3)")

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

No branches or pull requests

2 participants