dotnet-installer/Documentation/manpages/tool
2018-04-17 06:08:15 +00:00
..
man-pandoc-filter.py Add readme for tool and make script generic 2018-03-30 12:13:31 -04:00
README.md Update dotnet manpages for Unix 2018-04-17 06:08:15 +00:00
update-man-pages.sh Update dotnet manpages for Unix 2018-04-17 06:08:15 +00:00

Manpage update tool

Utility to update dotnet-cli documentation from https://github.com/dotnet/docs.

Prerequisites

  • Unix OS
  • python in PATH
  • pandoc installed
  • pandocfilters package installed
  • unzip
  • wget or curl

Usage

./update-man-pages.sh

Ubuntu example (from scratch)

apt update
apt install -y jq curl python python-pip wget unzip git < /dev/null
pip install pandocfilters

pandocVersion=$(curl -s https://api.github.com/repos/jgm/pandoc/releases/latest | jq -r ".tag_name")
pandocVersionedName="pandoc-$pandocVersion-1-amd64.deb"
curl -sLO https://github.com/jgm/pandoc/releases/download/$pandocVersion/$pandocVersionedName > /dev/null
dpkg -i $pandocVersionedName
rm $pandocVersionedName*

git clone https://github.com/dotnet/cli
./cli/Documentation/manpages/tool/update-man-pages.sh