Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove update/verify-munge-docs.sh #38309

Merged

Conversation

caesarxuchao
Copy link
Member

These scripts are no long needed because:

  1. most docs are moved to other repos
  2. the mungers are pre-processing the docs for gh pages, which are created with a whole different process now.

cc @bgrant0607 @thockin

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 7, 2016
@k8s-reviewable
Copy link

This change is Reviewable

@grodrigues3
Copy link
Contributor

i'll add lgtm once tests pass

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-label-needed labels Dec 7, 2016
@caesarxuchao caesarxuchao added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Dec 7, 2016
@bgrant0607
Copy link
Member

Our goal is to move all significant docs and examples out of the main repo. We no longer publish docs from this repo to github pages. The verify script is mostly a hindrance at this point. So, we're nuking it.

FYI: @lavalamp @pwittrock @devin-donnelly @jaredbhatti @jeffmendoza @viglesiasce @david-mcmahon @ixdy

@bgrant0607
Copy link
Member

/lgtm

@k8s-ci-robot
Copy link
Contributor

@bgrant0607: you can't LGTM a PR unless you are assigned as a reviewer.

In response to this comment:

/lgtm

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 7, 2016
@bgrant0607 bgrant0607 self-assigned this Dec 7, 2016
@thockin
Copy link
Member

thockin commented Dec 7, 2016 via email

@bgrant0607
Copy link
Member

bgrant0607 commented Dec 7, 2016 via email

@david-mcmahon david-mcmahon removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 7, 2016
@david-mcmahon
Copy link
Contributor

There are many references to munge-docs.sh:

$ fgrep -r munge-docs.sh *
docs/devel/how-to-doc.md:valid, etc. To munge a document, simply run `hack/update-munge-docs.sh`. We
docs/devel/how-to-doc.md:verify that all documents have been munged using `hack/verify-munge-docs.sh`.
docs/devel/how-to-doc.md:After running `hack/update-munge-docs.sh`, you'll see a table of contents
docs/devel/how-to-doc.md:example file. Then `hack/update-munge-docs.sh` will generate a code block with
docs/devel/how-to-doc.md:generates the following after `hack/update-munge-docs.sh`:
docs/devel/how-to-doc.md:you run `hack/update-munge-docs.sh`. See
docs/devel/how-to-doc.md:After running `hack/update-munge-docs.sh`, you may see some code / mungers in
hack/verify-munge-docs.sh:  echo "${DOCROOT} is out of date. Please run hack/update-munge-docs.sh"
hack/verify-munge-docs.sh:  echo "${EXAMPLEROOT} is out of date. Please run hack/update-munge-docs.sh"
hack/verify-munge-docs.sh:  echo "${KUBE_ROOT}/ is out of date. Please run hack/update-munge-docs.sh"
hack/verify-munge-docs.sh:  echo "Docs need munging. Please run hack/update-munge-docs.sh"
hack/generate-docs.sh:echo "Generated docs have been placed in the repository tree. Running hack/update-munge-docs.sh."
hack/generate-docs.sh:"${KUBE_ROOT}/hack/update-munge-docs.sh"
hack/update-generated-docs.sh:echo "Generated docs have been placed in the repository tree. Running hack/update-munge-docs.sh."
hack/update-generated-docs.sh:"${KUBE_ROOT}/hack/update-munge-docs.sh"
hooks/pre-commit:if ! hack/verify-munge-docs.sh > /dev/null; then
hooks/pre-commit:  echo "  hack/update-munge-docs.sh"

@david-mcmahon
Copy link
Contributor

What's generating TOCs now then? I ask because during the release we update CHANGELOG.md and run munge-docs to update the TOC. If this is the only thing still using the TOC generator, we'll have to come up with something else.

@caesarxuchao
Copy link
Member Author

caesarxuchao commented Dec 7, 2016

Are there use cases other than generating TOC for the CHANGELOG.md? If that's the only use case I'd say we can manually run the TOC munger. Otherwise we should keep the update-munge-docs.sh.

@david-mcmahon
Copy link
Contributor

To minimize disruption, let's leave update-munge-doc.sh (and verify?) for now. We'll need an independent TOC generator at some point.

@caesarxuchao
Copy link
Member Author

Ok, I can keep the updaet-. Do we really need the verify-?

@david-mcmahon
Copy link
Contributor

You could probably remove one, but it's a set. Either way.

@caesarxuchao
Copy link
Member Author

Updated. @david-mcmahon PTAL. Thanks.

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 7, 2016
@thockin
Copy link
Member

thockin commented Dec 7, 2016 via email

@bgrant0607
Copy link
Member

@david-mcmahon You use the TOC for CHANGELOG.md?

Pretty much all other docs should be removed.

@bgrant0607
Copy link
Member

@thockin Thanks!

@david-mcmahon
Copy link
Contributor

@bgrant0607 Yes. munge-docs is heavy handed for that, but at the time it conveniently took care of the CHANGELOG.md TOC too. Next step is to replace this with a lighter footprint TOC generator and fully remove munge-docs.

@caesarxuchao
Copy link
Member Author

@david-mcmahon may I get the lgtm? Thanks.

@david-mcmahon david-mcmahon added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 9, 2016
@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 37270, 38309, 37568, 34554)

@k8s-github-robot k8s-github-robot merged commit 971d713 into kubernetes:master Dec 9, 2016
@david-mcmahon
Copy link
Contributor

Now why did I lgtm this? Not sure. But all of these still need to be dealt with (at least for the verify- mentions)

@caesarxuchao
Copy link
Member Author

I'll send a follow-up for this mention:

hooks/pre-commit:if ! hack/verify-munge-docs.sh > /dev/null; then

I'll send a followup to the doc repo to revise the docs.

@nikhiljindal
Copy link
Contributor

Deleting gh-pages branch broke http://kubernetes.io/kubernetes/third_party/swagger-ui/ which is still one of the top results when searching for "kubernetes swagger".
Fixing it in kubernetes/website#1921

k8s-github-robot pushed a commit that referenced this pull request Jan 30, 2017
Automatic merge from submit-queue (batch tested with PRs 39832, 40660)

Complete *-munge-docs.sh deprecation.

**What this PR does / why we need it**:\
Complete *-munge-docs.sh deprecation.
TOC generation now handled by kubernetes/release#247

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
ref #38309

**Special notes for your reviewer**:

cc @bgrant0607 @thockin
@spiffxp spiffxp mentioned this pull request Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants