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

[#4829] improvement(client-python): Sphinx Initialization #4830

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

noidname01
Copy link
Collaborator

What changes were proposed in this pull request?

  • Add Sphinx configuration files and templates for generating documents automatically
  • Add new task doc for Sphinx documents generation and remove old task for docs
  • Generated website files will be in docs/build/html, open docs/build/html/index.html to see the home page
  • Feel free to improve this document configuration (what contents should be included, add project logos in documents, etc.)

Current Document Display

image

NOTES:

Why are the changes needed?

Fix: #4829

Does this PR introduce any user-facing change?

No

How was this patch tested?

./gradlew client:client-python:doc

@jerryshao
Copy link
Contributor

@noidname01 can you please fix the conflict?

@jerryshao
Copy link
Contributor

Let me take a try on this, to how Sphinx goes compared to pydoc.

gravitino



Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove the trailing blank lines, are they nesssary?

Copy link
Contributor

Choose a reason for hiding this comment

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

@noidname01 can you please check this comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed!

@jerryshao
Copy link
Contributor

Looks like each class will have a Apache License on the doc, maybe sphinx treats the ASF header as a Python doc, is it possible to remove it?

image

@noidname01
Copy link
Collaborator Author

@jerryshao Yeah, I plan to do it in next PR originally, as mentioned in #4797, because it will bring a lot of changes.

@jerryshao
Copy link
Contributor

Oh, I see. Thanks for the explanation.

@jerryshao jerryshao merged commit f8e39b4 into apache:main Sep 9, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] Sphinx Documentation Initialization for client-python
2 participants