فهرست منبع

Moving man pages out of docs
Adding in other areas per comments
Updating with comments; equalizing generating man page info
Updating with duglin's comments
Doug is right here again;fixing.

Signed-off-by: Mary Anthony <mary@docker.com>

Mary Anthony 10 سال پیش
والد
کامیت
eacae64bd8
55فایلهای تغییر یافته به همراه60 افزوده شده و 62 حذف شده
  1. 1 1
      contrib/mkimage-rinse.sh
  2. 1 1
      contrib/mkimage/.febootstrap-minimize
  3. 4 17
      docs/README.md
  4. 0 33
      docs/man/README.md
  5. 1 1
      hack/make/.build-deb/docker-engine.manpages
  6. 1 1
      hack/make/.build-deb/rules
  7. 3 3
      hack/make/.build-rpm/docker-engine.spec
  8. 1 1
      hack/make/build-deb
  9. 1 1
      hack/make/build-rpm
  10. 2 2
      hack/make/ubuntu
  11. 0 0
      man/Dockerfile
  12. 0 0
      man/Dockerfile.5.md
  13. 44 0
      man/README.md
  14. 0 0
      man/docker-attach.1.md
  15. 0 0
      man/docker-build.1.md
  16. 0 0
      man/docker-commit.1.md
  17. 0 0
      man/docker-cp.1.md
  18. 0 0
      man/docker-create.1.md
  19. 0 0
      man/docker-diff.1.md
  20. 0 0
      man/docker-events.1.md
  21. 0 0
      man/docker-exec.1.md
  22. 0 0
      man/docker-export.1.md
  23. 0 0
      man/docker-history.1.md
  24. 0 0
      man/docker-images.1.md
  25. 0 0
      man/docker-import.1.md
  26. 0 0
      man/docker-info.1.md
  27. 0 0
      man/docker-inspect.1.md
  28. 0 0
      man/docker-kill.1.md
  29. 0 0
      man/docker-load.1.md
  30. 0 0
      man/docker-login.1.md
  31. 0 0
      man/docker-logout.1.md
  32. 0 0
      man/docker-logs.1.md
  33. 0 0
      man/docker-pause.1.md
  34. 0 0
      man/docker-port.1.md
  35. 0 0
      man/docker-ps.1.md
  36. 0 0
      man/docker-pull.1.md
  37. 0 0
      man/docker-push.1.md
  38. 0 0
      man/docker-rename.1.md
  39. 0 0
      man/docker-restart.1.md
  40. 0 0
      man/docker-rm.1.md
  41. 0 0
      man/docker-rmi.1.md
  42. 0 0
      man/docker-run.1.md
  43. 0 0
      man/docker-save.1.md
  44. 0 0
      man/docker-search.1.md
  45. 0 0
      man/docker-start.1.md
  46. 0 0
      man/docker-stats.1.md
  47. 0 0
      man/docker-stop.1.md
  48. 0 0
      man/docker-tag.1.md
  49. 0 0
      man/docker-top.1.md
  50. 0 0
      man/docker-unpause.1.md
  51. 0 0
      man/docker-version.1.md
  52. 0 0
      man/docker-wait.1.md
  53. 0 0
      man/docker.1.md
  54. 0 0
      man/md2man-all.sh
  55. 1 1
      project/ISSUE-TRIAGE.md

+ 1 - 1
contrib/mkimage-rinse.sh

@@ -80,7 +80,7 @@ sudo mkdir -m 755 dev
 # effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
 # effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
 #  locales
 #  locales
 sudo rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
 sudo rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
-#  docs
+#  docs and man pages
 sudo rm -rf usr/share/{man,doc,info,gnome/help}
 sudo rm -rf usr/share/{man,doc,info,gnome/help}
 #  cracklib
 #  cracklib
 sudo rm -rf usr/share/cracklib
 sudo rm -rf usr/share/cracklib

+ 1 - 1
contrib/mkimage/.febootstrap-minimize

@@ -10,7 +10,7 @@ shift
 	# effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
 	# effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
 	#  locales
 	#  locales
 	rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
 	rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
-	#  docs
+	#  docs and man pages
 	rm -rf usr/share/{man,doc,info,gnome/help}
 	rm -rf usr/share/{man,doc,info,gnome/help}
 	#  cracklib
 	#  cracklib
 	rm -rf usr/share/cracklib
 	rm -rf usr/share/cracklib

+ 4 - 17
docs/README.md

@@ -280,24 +280,11 @@ aws cloudfront  create-invalidation --profile docs.docker.com --distribution-id
 aws cloudfront  create-invalidation --profile docs.docker.com --distribution-id $DISTRIBUTION_ID --invalidation-batch '{"Paths":{"Quantity":1, "Items":["/v1.1/reference/api/docker_io_oauth_api/"]},"CallerReference":"6Mar2015sventest1"}'
 aws cloudfront  create-invalidation --profile docs.docker.com --distribution-id $DISTRIBUTION_ID --invalidation-batch '{"Paths":{"Quantity":1, "Items":["/v1.1/reference/api/docker_io_oauth_api/"]},"CallerReference":"6Mar2015sventest1"}'
 ```
 ```
 
 
-### Generate the man pages for Mac OSX
+### Generate the man pages 
 
 
-When using Docker on Mac OSX the man pages will be missing by default. You can manually generate them by following these steps:
+For information on generating man pages (short for manual page), see [the man
+page directory](https://github.com/docker/docker/tree/master/docker) in this
+project.
 
 
-1. Checkout the docker source. You must clone into your `/Users` directory because Boot2Docker can only share this path
-   with the docker containers.
 
 
-        $ git clone https://github.com/docker/docker.git
-		
-2. Build the docker image.
-   
-        $ cd docker/docs/man
-        $ docker build -t docker/md2man .
 
 
-3. Build the man pages.
-
-        $ docker run -v /Users/<path-to-git-dir>/docker/docs/man:/docs:rw -w /docs -i docker/md2man /docs/md2man-all.sh
-
-4. Copy the generated man pages to `/usr/share/man`
-
-        $ cp -R man* /usr/share/man/

+ 0 - 33
docs/man/README.md

@@ -1,33 +0,0 @@
-Docker Documentation
-====================
-
-This directory contains the Docker user manual in the Markdown format.
-Do *not* edit the man pages in the man1 directory. Instead, amend the
-Markdown (*.md) files.
-
-# Generating man pages from the Markdown files
-
-The recommended approach for generating the man pages is via a Docker
-container using the supplied `Dockerfile` to create an image with the correct
-environment. This uses `go-md2man`, a pure Go Markdown to man page generator.
-
-## Building the md2man image
-
-There is a `Dockerfile` provided in the `docker/docs/man` directory.
-
-Using this `Dockerfile`, create a Docker image tagged `docker/md2man`:
-
-    docker build -t docker/md2man .
-
-## Utilizing the image
-
-Once the image is built, run a container using the image with *volumes*:
-
-    docker run -v /<path-to-git-dir>/docker/docs/man:/docs:rw \
-    -w /docs -i docker/md2man /docs/md2man-all.sh
-
-The `md2man` Docker container will process the Markdown files and generate
-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]
-(https://docs.docker.com/use/working_with_volumes/).

+ 1 - 1
hack/make/.build-deb/docker-engine.manpages

@@ -1 +1 @@
-docs/man/man*/*
+man/man*/*

+ 1 - 1
hack/make/.build-deb/rules

@@ -9,7 +9,7 @@ override_dh_gencontrol:
 
 
 override_dh_auto_build:
 override_dh_auto_build:
 	./hack/make.sh dynbinary
 	./hack/make.sh dynbinary
-	# ./docs/man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
+	# ./man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
 
 
 override_dh_auto_test:
 override_dh_auto_test:
 	./bundles/$(VERSION)/dynbinary/docker -v
 	./bundles/$(VERSION)/dynbinary/docker -v

+ 3 - 3
hack/make/.build-rpm/docker-engine.spec

@@ -71,7 +71,7 @@ depending on a particular stack or provider.
 
 
 %build
 %build
 ./hack/make.sh dynbinary
 ./hack/make.sh dynbinary
-# ./docs/man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
+# ./man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
 
 
 %check
 %check
 ./bundles/%{_origversion}/dynbinary/docker -v
 ./bundles/%{_origversion}/dynbinary/docker -v
@@ -113,9 +113,9 @@ install -p -m 644 contrib/completion/fish/docker.fish $RPM_BUILD_ROOT/usr/share/
 
 
 # install manpages
 # install manpages
 install -d %{buildroot}%{_mandir}/man1
 install -d %{buildroot}%{_mandir}/man1
-install -p -m 644 docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1
+install -p -m 644 man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1
 install -d %{buildroot}%{_mandir}/man5
 install -d %{buildroot}%{_mandir}/man5
-install -p -m 644 docs/man/man5/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5
+install -p -m 644 man/man5/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5
 
 
 # add vimfiles
 # add vimfiles
 install -d $RPM_BUILD_ROOT/usr/share/vim/vimfiles/doc
 install -d $RPM_BUILD_ROOT/usr/share/vim/vimfiles/doc

+ 1 - 1
hack/make/build-deb

@@ -34,7 +34,7 @@ set -e
 	debDate="$(date --rfc-2822)"
 	debDate="$(date --rfc-2822)"
 
 
 	# if go-md2man is available, pre-generate the man pages
 	# if go-md2man is available, pre-generate the man pages
-	./docs/man/md2man-all.sh -q || true
+	./man/md2man-all.sh -q || true
 	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
 	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
 
 
 	# TODO add a configurable knob for _which_ debs to build so we don't have to modify the file or build all of them every time we need to test
 	# TODO add a configurable knob for _which_ debs to build so we don't have to modify the file or build all of them every time we need to test

+ 1 - 1
hack/make/build-rpm

@@ -38,7 +38,7 @@ set -e
 	rpmDate="$(date +'%a %b %d %Y')"
 	rpmDate="$(date +'%a %b %d %Y')"
 
 
 	# if go-md2man is available, pre-generate the man pages
 	# if go-md2man is available, pre-generate the man pages
-	./docs/man/md2man-all.sh -q || true
+	./man/md2man-all.sh -q || true
 	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
 	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
 
 
 	# TODO add a configurable knob for _which_ rpms to build so we don't have to modify the file or build all of them every time we need to test
 	# TODO add a configurable knob for _which_ rpms to build so we don't have to modify the file or build all of them every time we need to test

+ 2 - 2
hack/make/ubuntu

@@ -60,10 +60,10 @@ bundle_ubuntu() {
 	cp contrib/completion/fish/docker.fish "$DIR/etc/fish/completions/"
 	cp contrib/completion/fish/docker.fish "$DIR/etc/fish/completions/"
 
 
 	# Include contributed man pages
 	# Include contributed man pages
-	docs/man/md2man-all.sh -q
+	man/md2man-all.sh -q
 	manRoot="$DIR/usr/share/man"
 	manRoot="$DIR/usr/share/man"
 	mkdir -p "$manRoot"
 	mkdir -p "$manRoot"
-	for manDir in docs/man/man?; do
+	for manDir in man/man?; do
 		manBase="$(basename "$manDir")" # "man1"
 		manBase="$(basename "$manDir")" # "man1"
 		for manFile in "$manDir"/*; do
 		for manFile in "$manDir"/*; do
 			manName="$(basename "$manFile")" # "docker-build.1"
 			manName="$(basename "$manFile")" # "docker-build.1"

+ 0 - 0
docs/man/Dockerfile → man/Dockerfile


+ 0 - 0
docs/man/Dockerfile.5.md → man/Dockerfile.5.md


+ 44 - 0
man/README.md

@@ -0,0 +1,44 @@
+Docker Documentation
+====================
+
+This directory contains the Docker user manual in the Markdown format.
+Do *not* edit the man pages in the man1 directory. Instead, amend the
+Markdown (*.md) files.
+
+# Generating man pages from the Markdown files
+
+The recommended approach for generating the man pages is via a Docker
+container using the supplied `Dockerfile` to create an image with the correct
+environment. This uses `go-md2man`, a pure Go Markdown to man page generator.
+
+### Generate the man pages 
+
+On Linux installations, Docker includes a set of man pages you can access by typing `man command-name` on the command line. For example, `man docker` displays the `docker` man page. When using Docker on Mac OSX the man pages are not automatically included. 
+
+You can generate and install the `man` pages yourself by following these steps:
+
+1. Checkout the `docker` source. 
+
+        $ git clone https://github.com/docker/docker.git
+        
+  If you are using Boot2Docker, you must clone into your `/Users` directory
+  because Boot2Docker can only share this path with the docker containers.
+		
+2. Build the docker image.
+   
+        $ cd docker/man
+        $ docker build -t docker/md2man .
+
+3. Build the man pages.
+
+        $ docker run -v <path-to-git-dir>/docker/man:/man:rw -w /man -i docker/md2man /man/md2man-all.sh
+        
+  The `md2man` Docker container processes the Markdown files and generates
+ a `man1` and `man5` subdirectories in the `docker/man` directory. 
+
+4. Copy the generated man pages to `/usr/share/man`
+
+        $ cp -R man* /usr/share/man/
+
+
+

+ 0 - 0
docs/man/docker-attach.1.md → man/docker-attach.1.md


+ 0 - 0
docs/man/docker-build.1.md → man/docker-build.1.md


+ 0 - 0
docs/man/docker-commit.1.md → man/docker-commit.1.md


+ 0 - 0
docs/man/docker-cp.1.md → man/docker-cp.1.md


+ 0 - 0
docs/man/docker-create.1.md → man/docker-create.1.md


+ 0 - 0
docs/man/docker-diff.1.md → man/docker-diff.1.md


+ 0 - 0
docs/man/docker-events.1.md → man/docker-events.1.md


+ 0 - 0
docs/man/docker-exec.1.md → man/docker-exec.1.md


+ 0 - 0
docs/man/docker-export.1.md → man/docker-export.1.md


+ 0 - 0
docs/man/docker-history.1.md → man/docker-history.1.md


+ 0 - 0
docs/man/docker-images.1.md → man/docker-images.1.md


+ 0 - 0
docs/man/docker-import.1.md → man/docker-import.1.md


+ 0 - 0
docs/man/docker-info.1.md → man/docker-info.1.md


+ 0 - 0
docs/man/docker-inspect.1.md → man/docker-inspect.1.md


+ 0 - 0
docs/man/docker-kill.1.md → man/docker-kill.1.md


+ 0 - 0
docs/man/docker-load.1.md → man/docker-load.1.md


+ 0 - 0
docs/man/docker-login.1.md → man/docker-login.1.md


+ 0 - 0
docs/man/docker-logout.1.md → man/docker-logout.1.md


+ 0 - 0
docs/man/docker-logs.1.md → man/docker-logs.1.md


+ 0 - 0
docs/man/docker-pause.1.md → man/docker-pause.1.md


+ 0 - 0
docs/man/docker-port.1.md → man/docker-port.1.md


+ 0 - 0
docs/man/docker-ps.1.md → man/docker-ps.1.md


+ 0 - 0
docs/man/docker-pull.1.md → man/docker-pull.1.md


+ 0 - 0
docs/man/docker-push.1.md → man/docker-push.1.md


+ 0 - 0
docs/man/docker-rename.1.md → man/docker-rename.1.md


+ 0 - 0
docs/man/docker-restart.1.md → man/docker-restart.1.md


+ 0 - 0
docs/man/docker-rm.1.md → man/docker-rm.1.md


+ 0 - 0
docs/man/docker-rmi.1.md → man/docker-rmi.1.md


+ 0 - 0
docs/man/docker-run.1.md → man/docker-run.1.md


+ 0 - 0
docs/man/docker-save.1.md → man/docker-save.1.md


+ 0 - 0
docs/man/docker-search.1.md → man/docker-search.1.md


+ 0 - 0
docs/man/docker-start.1.md → man/docker-start.1.md


+ 0 - 0
docs/man/docker-stats.1.md → man/docker-stats.1.md


+ 0 - 0
docs/man/docker-stop.1.md → man/docker-stop.1.md


+ 0 - 0
docs/man/docker-tag.1.md → man/docker-tag.1.md


+ 0 - 0
docs/man/docker-top.1.md → man/docker-top.1.md


+ 0 - 0
docs/man/docker-unpause.1.md → man/docker-unpause.1.md


+ 0 - 0
docs/man/docker-version.1.md → man/docker-version.1.md


+ 0 - 0
docs/man/docker-wait.1.md → man/docker-wait.1.md


+ 0 - 0
docs/man/docker.1.md → man/docker.1.md


+ 0 - 0
docs/man/md2man-all.sh → man/md2man-all.sh


+ 1 - 1
project/ISSUE-TRIAGE.md

@@ -22,7 +22,7 @@ Before triaging an issue very far, make sure that the issue's author provided th
 -   the output of `uname -a`
 -   the output of `uname -a`
 -   a reproducible case if this is a bug, Dockerfiles FTW
 -   a reproducible case if this is a bug, Dockerfiles FTW
 -   host distribution and version ( ubuntu 14.04, RHEL, fedora 21 )
 -   host distribution and version ( ubuntu 14.04, RHEL, fedora 21 )
--   page URL if this is a docs issue
+-   page URL if this is a docs issue or the name of a man page 
 
 
 Depending on the issue, you might not feel all this information is needed. Use your best judgement.  If you cannot triage an issue using what its author provided, explain kindly to the author that they must provide the above information to clarify the problem. 
 Depending on the issue, you might not feel all this information is needed. Use your best judgement.  If you cannot triage an issue using what its author provided, explain kindly to the author that they must provide the above information to clarify the problem.