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

Drop 'brodocs' backend for API reference generation #102

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

tengqm
Copy link
Contributor

@tengqm tengqm commented Dec 27, 2019

We cannot afford maintaining two backends for generating the reference
docs. This PR drops the legacy 'brodocs' way of building refernece docs.
We drop it because:

  • The brodocs container has to be managed by a specific person so the
    team collaboration model is not scalable.
  • The brodocs container has not been maintained for a long period.
  • The markdown output from the brodocs container are difficult to tune
    for web presentation -- main use case of the tool.
  • The new 'html' generator has been used for several release cycles and
    it is generating satisfactory output for users. It can be considered
    mature.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 27, 2019
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 27, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 27, 2019
panic(fmt.Sprintf("Unknown backend specified: %s", *Backend))
}

writer := NewHTMLWriter(config, copyright, title)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation of line 61?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indentation should be one TAB according Go convention. I have got TABs autoconverted to 4 spaces in my VIM. Will fix.

@@ -84,74 +84,3 @@ func PrintInfo(config *api.Config) {
// }
//}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Is PrintInfo(), JsonOutputFile(manifest.json) used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PrintInfo is still referenced, by JsonOutputFile is not (will fix).

Copy link
Contributor

Choose a reason for hiding this comment

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

@tengqm , How do these changes affect the generation of the kubectl command reference?

docker run -v $(shell pwd)/gen-kubectldocs/generators/includes:/source -v $(shell pwd)/gen-kubectldocs/generators/build:/build -v $(shell pwd)/gen-kubectldocs/generators/:/manifest pwittrock/brodocs

Eventually the tooling/build of the kubectl reference will be updated (I hope to reopen the related kubectl reference generation PR and continue work) too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is irrelevant to the gen-kubectldocs. This PR is only related to the API reference generation. I'd like to have the kubectl reference reworked as well.

We cannot afford maintaining two backends for generating the reference
docs. This PR drops the legacy 'brodocs' way of building refernece docs.
We drop it because:

- The brodocs container has to be managed by a specific person so the
  team collaboration model is not scalable.
- The brodocs container has not been maintained for a long period.
- The markdown output from the brodocs container are difficult to tune
  for web presentation -- main use case of the tool.
- The new 'html' generator has been used for several release cycles and
  it is generating satisfactory output for users. It can be considered
  mature.
@kbhawkey
Copy link
Contributor

@tengqm , Looks fine. Do you know what version of the k8s API was the last version to be generated from the brodocs backend?

@kbhawkey
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 31, 2019
@k8s-ci-robot k8s-ci-robot merged commit bd08d17 into kubernetes-sigs:master Dec 31, 2019
@tengqm
Copy link
Contributor Author

tengqm commented Jan 2, 2020

@tengqm , Looks fine. Do you know what version of the k8s API was the last version to be generated from the brodocs backend?

The "new" generator was merged in July 2018 (#53). So IIRC, 1.11 was the last version that used brodocs for API reference generation.

@tengqm tengqm deleted the drop-brodocs-build branch January 2, 2020 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants