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

[fix][docs] Remove redudant steps in docs gen #18132

Merged
merged 7 commits into from
Oct 24, 2022

Conversation

SignorMercurio
Copy link
Contributor

@SignorMercurio SignorMercurio commented Oct 20, 2022

Motivation

There are some redundant information in current pulsar docs, as pointed out by @Anonymitaet. This PR aims to fix those.

Modifications

  1. Remove redundant markdown list in CLI docs gen steps
  2. Use markdown file for reference-configuration instead of links
  3. Remove unused leading warning on some pages

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: SignorMercurio#5

@github-actions github-actions bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Oct 20, 2022
@Anonymitaet
Copy link
Member

LGTM

PTAL @urfreespace @tisonkun thanks!

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Comments inline.

site2/docs/reference-configuration.md Outdated Show resolved Hide resolved
Comment on lines 370 to +371
"reference-cli-tools",
{
"type": "link",
"href": "https://pulsar.apache.org/reference",
"label": "Pulsar configuration"
},
"reference-configuration",
Copy link
Member

Choose a reason for hiding this comment

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

After #18101, I think both "reference-cli-tools" and this new "reference-configuration" page redirect to http://pulsar.apache.org/reference?

But we can improve the docsify side later...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Anonymitaet suggests that we should make it a Markdown page instead of a direct link, so it's changed back here.

Comment on lines -110 to -112
for (String s : cmdObj.jcommander.getCommands().keySet()) {
sb.append("* `").append(s).append("`\n");
}
Copy link
Member

Choose a reason for hiding this comment

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

Could you share a preview of diff how these lines affect the final result?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

These lists are removed by removing these code. They are redundant because we now already have a TOC on the right side.

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

LGTM.

@Anonymitaet
Copy link
Member

@SignorMercurio feel free to ping me to merge if all tests pass.

Copy link
Member

@urfreespace urfreespace left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #18132 (4bce553) into master (6c65ca0) will increase coverage by 11.08%.
The diff coverage is 52.72%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18132       +/-   ##
=============================================
+ Coverage     34.91%   45.99%   +11.08%     
- Complexity     5707    17667    +11960     
=============================================
  Files           607     1574      +967     
  Lines         53396   128502    +75106     
  Branches       5712    14144     +8432     
=============================================
+ Hits          18644    59107    +40463     
- Misses        32119    63283    +31164     
- Partials       2633     6112     +3479     
Flag Coverage Δ
unittests 45.99% <52.72%> (+11.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 70.80% <0.00%> (ø)
...org/apache/pulsar/broker/ServiceConfiguration.java 52.06% <ø> (ø)
.../pulsar/broker/service/AbstractBaseDispatcher.java 52.14% <ø> (+6.28%) ⬆️
.../service/SystemTopicBasedTopicPoliciesService.java 62.97% <0.00%> (+11.38%) ⬆️
.../pulsar/broker/stats/BrokerOperabilityMetrics.java 98.21% <ø> (+5.56%) ⬆️
...g/apache/pulsar/compaction/CompactedTopicImpl.java 69.28% <0.00%> (+58.57%) ⬆️
...g/apache/pulsar/admin/cli/CmdGenerateDocument.java 18.91% <ø> (ø)
...he/pulsar/client/cli/CmdGenerateDocumentation.java 8.57% <ø> (ø)
...va/org/apache/pulsar/client/impl/ConsumerBase.java 21.95% <0.00%> (ø)
.../pulsar/common/util/BaseGenerateDocumentation.java 0.00% <0.00%> (ø)
... and 1143 more

@SignorMercurio
Copy link
Contributor Author

/pulsarbot run-failure-checks

@SignorMercurio
Copy link
Contributor Author

/pulsarbot run-failure-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants