Skip to content

Restructure documentation dir#4354

Merged
openshift-merge-robot merged 2 commits intocontainers:masterfrom
baude:newdocsstruct
Oct 31, 2019
Merged

Restructure documentation dir#4354
openshift-merge-robot merged 2 commits intocontainers:masterfrom
baude:newdocsstruct

Conversation

@baude
Copy link
Member

@baude baude commented Oct 28, 2019

Restructuring the docs dir to make integration with sphinx easier. man
pages now exist in docs/source/man and the sphinx make files exists in
docs.

Signed-off-by: baude bbaude@redhat.com

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL labels Oct 28, 2019
@TomSweeneyRedHat
Copy link
Member

Changes LGTM, but gating is biting you.

@rhatdan
Copy link
Member

rhatdan commented Oct 28, 2019

LGTM

@baude baude force-pushed the newdocsstruct branch 3 times, most recently from 2b4c255 to 17efbb3 Compare October 29, 2019 13:43
@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably #4187) made this pull request unmergeable. Please resolve the merge conflicts.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 30, 2019
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming happy tests

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 30, 2019
@baude baude force-pushed the newdocsstruct branch 2 times, most recently from 9ee6078 to 64ea009 Compare October 30, 2019 19:01
@baude
Copy link
Member Author

baude commented Oct 30, 2019

/test images

@cevich
Copy link
Member

cevich commented Oct 31, 2019

@jwhonce @baude how about:

diff --git a/Makefile b/Makefile
index d04b5980f..73442eb7c 100644
--- a/Makefile
+++ b/Makefile
@@ -167,7 +167,7 @@ podman-remote: .gopathok $(PODMAN_VARLINK_DEPENDENCIES) ## Build with podman on
        $(GO_BUILD) $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS) remoteclient" -o bin/$@ $(PROJECT)/cmd/podman
 
 .PHONY: podman.msi
-podman.msi: podman-remote podman-remote-windows install-podman-remote-docs ## Will always rebuild exe as there is no podman-remote-windows.exe target to verify timestamp
+podman.msi: podman-remote podman-remote-windows install-podman-remote-windows-docs ## Will always rebuild exe as there is no podman-remote-windows.exe target to verify timestamp
        $(eval DOCFILE := docs/build/remote/windows)
        find $(DOCFILE) -print \
        |wixl-heat --var var.ManSourceDir --component-group ManFiles --directory-ref INSTALLDIR --prefix $(DOCFILE)/ >$(DOCFILE)/pages.wsx
@@ -319,13 +319,11 @@ docdir:
 
 docs: docdir $(MANPAGES) ## Generate documentation
 
-install-podman-remote-docs: podman-remote docs $(MANPAGES)
+install-podman-remote-%-docs: podman-remote docs $(MANPAGES)
        rm -rf docs/build/remote
        mkdir -p docs/build/remote
        ln -sf $(shell pwd)/docs/source/markdown/links docs/build/man/
-       docs/remote-docs.sh darwin docs/build/remote/darwin docs/build/man
-       docs/remote-docs.sh linux docs/build/remote/linux docs/build/man
-       docs/remote-docs.sh windows docs/build/remote/windows docs/source/markdown
+       docs/remote-docs.sh $* docs/build/remote/$* $(if $(findstring windows,$*),docs/source/markdown,docs/build/man)
 
 man-page-check:
        hack/man-page-checker
@@ -352,7 +350,7 @@ podman-v$(RELEASE_NUMBER).tar.gz: binaries docs release.txt
 
 # Must call make in-line: Dependency-spec. w/ wild-card also consumes variable value.
 podman-remote-v$(RELEASE_NUMBER)-%.zip:
-       $(MAKE) podman-remote-$* install-podman-remote-docs release.txt \
+       $(MAKE) podman-remote-$* install-podman-remote-$*-docs release.txt \
                RELEASE_BASENAME=$(shell hack/get_release_info.sh REMOTENAME) \
                RELEASE_DIST=$* RELEASE_DIST_VER="-"
        $(eval TMPDIR := $(shell mktemp -d -p '' $podman_remote_XXXX))

This avoids needing to have pandoc and wixl present on all platforms in order to build the remote client.

@cevich
Copy link
Member

cevich commented Oct 31, 2019

That's untested by the way.

baude and others added 2 commits October 31, 2019 12:31
Restructuring the docs dir to make integration with sphinx easier.  man
pages now exist in docs/source/man and the sphinx make files exists in
docs.

Signed-off-by: baude <bbaude@redhat.com>
* Refactored code and Makefile to support new docs layout
* Removed some old code packaging code
* Add Readme.md to document what we're doing

Signed-off-by: Jhon Honce <jhonce@redhat.com>
Signed-off-by: baude <bbaude@redhat.com>
@mheon
Copy link
Member

mheon commented Oct 31, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 31, 2019
@openshift-merge-robot openshift-merge-robot merged commit ffe36ea into containers:master Oct 31, 2019
Foxboron added a commit to Foxboron/libpod that referenced this pull request Nov 2, 2019
The final versions of the documentation has been shifted from `docs/` to
`docs/build/man`. Most of the Makefile has been changed accordingly, but
the docker documentation generation was not.

Introduced by containers#4354

Signed-off-by: Morten Linderud <morten@linderud.pw>
@baude baude deleted the newdocsstruct branch December 22, 2019 18:59
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants