Skip to content

Commit

Permalink
[fix] Catch up matser docs change update
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Jul 1, 2023
1 parent e0557ec commit 5496ecf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.py]
indent_size = 4

[Makefile]
indent_style = tab
indent_style = tab
13 changes: 10 additions & 3 deletions tools/pytools/lib/execute/config_doc_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from dataclasses import dataclass
from pathlib import Path

import semver
from command import find_command, run
from constant import site_path

Expand All @@ -38,9 +39,15 @@ def execute(master: Path, version: str):
classpath = master / 'distribution' / 'server' / 'target' / 'classpath.txt'
classpath = classpath.read_text()

broker_doc_generator = 'org.apache.pulsar.utils.CmdGenerateDocumentation'
client_doc_generator = 'org.apache.pulsar.client.impl.conf.CmdGenerateDocumentation'
proxy_doc_generator = 'org.apache.pulsar.proxy.util.CmdGenerateDocumentation'
broker_doc_generator = 'org.apache.pulsar.docs.tools.CmdGenerateDocumentation'
client_doc_generator = 'org.apache.pulsar.docs.tools.CmdGenerateDocumentation'
proxy_doc_generator = 'org.apache.pulsar.docs.tools.CmdGenerateDocumentation'

# FIXME(*) b/w compatibility - removed if they are no longer maintained
if version != "next" and semver.VersionInfo.parse(version[:-2] + ".0") <= "3.0.0":
broker_doc_generator = 'org.apache.pulsar.utils.CmdGenerateDocumentation'
client_doc_generator = 'org.apache.pulsar.client.impl.conf.CmdGenerateDocumentation'
proxy_doc_generator = 'org.apache.pulsar.proxy.util.CmdGenerateDocumentation'

configs = [
Settings(
Expand Down

0 comments on commit 5496ecf

Please sign in to comment.