Skip to content

handy scripts for working with markdown articles

License

Notifications You must be signed in to change notification settings

lgayhardt/learn-tools

 
 

Repository files navigation

tools

learn-tools

Some handy scripts for working with markdown articles on learn.microsoft.com

Open in GitHub Codespaces

Python Python scripts:

  • fix-nb.py - Change notebook links and images to markdown syntax.
  • move-to-v1.py - Fix links in a file that you're going to move to the v1 folder.
  • include-usage.py - Count how many times your include files are used by your documents.

GitHub folder

See Maintain code snippets in Azure docs for more information on how to use these scripts.

Scripts in the GitHub folder are used to help us maintain our code references. Make sure you have pyGithub installed (pip install pyGithub) to run these scripts.

  • find-snippets.py
  • pr-report.py - Use this to evaluate whether a PR in azureml-examples will cause problems in our docs build. If you're using it for the first time in a while, first run find-sippets.py to get the most recent version of code snippets referenced by azure-docs.
  • merge-report.py - Use this to see what PRs in azureml-examples have merged in the last N days that might require a docs update (default is 8 days). If you're using it for the first time in a while, first runfind-sippets.py to get the most recent version of code snippets referenced by azure-docs.

The following files provide functions used in the above scripts:

These shortcut commands are available for Github merge and pr reports:

./merge.sh 
./merge.sh <days>
./pr.sh <pr-number>

Other repos

Also see these repos for other handy tools:

  • Python (Python) Search images - find text inside images
  • R (R) toc-to-csv - convert a markdown table of contents to a csv file
  • R (R) MonthlyReport - Summarizes file modification from git logs

About

handy scripts for working with markdown articles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.6%
  • Dockerfile 2.8%
  • Shell 0.6%