upheno icon indicating copy to clipboard operation
upheno copied to clipboard

Documentation: Many stub markdown articles with little or no content

Open DnlRKorn opened this issue 1 year ago • 1 comments

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 avatar Jul 08 '24 17:07 DnlRKorn

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)")

DnlRKorn avatar Jul 08 '24 17:07 DnlRKorn