mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #6678 from mheon/fix_man_generate
Path fixes in md2man script and README
This commit is contained in:
commit
74a34bb1fe
3 changed files with 7 additions and 7 deletions
|
@ -51,7 +51,7 @@ saving you from dealing with Pandoc and dependencies on your own computer.
|
|||
|
||||
## Building the Fedora / Pandoc image
|
||||
|
||||
There is a Dockerfile provided in the `docker/contrib/man/md` directory.
|
||||
There is a Dockerfile provided in the `docker/docs/man` directory.
|
||||
|
||||
Using this Dockerfile, create a Docker image tagged `fedora/pandoc`:
|
||||
|
||||
|
@ -61,11 +61,11 @@ Using this Dockerfile, create a Docker image tagged `fedora/pandoc`:
|
|||
|
||||
Once the image is built, run a container using the image with *volumes*:
|
||||
|
||||
docker run -v /<path-to-git-dir>/docker/contrib/man:/pandoc:rw \
|
||||
-w /pandoc -i fedora/pandoc /pandoc/md/md2man-all.sh
|
||||
docker run -v /<path-to-git-dir>/docker/docs/man:/pandoc:rw \
|
||||
-w /pandoc -i fedora/pandoc /pandoc/md2man-all.sh
|
||||
|
||||
The Pandoc Docker container will process the Markdown files and generate
|
||||
the man pages inside the `docker/contrib/man/man1` directory using
|
||||
the man pages inside the `docker/docs/man/man1` directory using
|
||||
Docker volumes. For more information on Docker volumes see the man page for
|
||||
`docker run` and also look at the article [Sharing Directories via Volumes]
|
||||
(http://docs.docker.io/use/working_with_volumes/).
|
||||
|
|
|
@ -17,6 +17,6 @@ for FILE in *.md; do
|
|||
# skip files that aren't of the format xxxx.N.md (like README.md)
|
||||
continue
|
||||
fi
|
||||
mkdir -p "../man${num}"
|
||||
pandoc -s -t man "$FILE" -o "../man${num}/${name}"
|
||||
mkdir -p "./man${num}"
|
||||
pandoc -s -t man "$FILE" -o "./man${num}/${name}"
|
||||
done
|
||||
|
|
|
@ -50,7 +50,7 @@ bundle_ubuntu() {
|
|||
docs/man/md2man-all.sh -q
|
||||
manRoot="$DIR/usr/share/man"
|
||||
mkdir -p "$manRoot"
|
||||
for manDir in docs/man?; do
|
||||
for manDir in docs/man/man?; do
|
||||
manBase="$(basename "$manDir")" # "man1"
|
||||
for manFile in "$manDir"/*; do
|
||||
manName="$(basename "$manFile")" # "docker-build.1"
|
||||
|
|
Loading…
Add table
Reference in a new issue