Skip to content

Add Sphinx to generate Code Documentation - #112

Merged
VijayanB merged 3 commits into
opensearch-project:mainfrom
PhilipMay:add_sphinx
Feb 8, 2022
Merged

VijayanB merged 3 commits into
opensearch-project:mainfrom
PhilipMay:add_sphinx

Conversation

@PhilipMay

@PhilipMay PhilipMay commented Jan 19, 2022 •

Copy link
Copy Markdown
Contributor

Description

This is still work in progress - please do not merge!
This adds Sphinx to generate the code documentation.

The PR is also related to #10 .

Issues Resolved

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@PhilipMay PhilipMay mentioned this pull request Jan 19, 2022
Comment thread docs/source/conf.py Resolved
@PhilipMay

PhilipMay commented Jan 20, 2022 •

Copy link
Copy Markdown
Contributor Author

Dear project maintainers ( @VijayanB ). Could you please set up the GH-page. Here is a screenshot how:

image

Please make sure to set the branch to gh-pages and enable "Enforce HTTPS".

Then the action I will add will deploy the generated code.

@PhilipMay
PhilipMay force-pushed the add_sphinx branch 8 times, most recently from fc58e32 to cd69543 Compare January 20, 2022 20:19
@PhilipMay

Copy link
Copy Markdown
Contributor Author

@VijayanB shuld the docs/source/conf.py file be formatted with black? Just with black docs/source/conf.py?

@PhilipMay

Copy link
Copy Markdown
Contributor Author

@PhilipMay

Copy link
Copy Markdown
Contributor Author

For the first version of documentation I did just choose a subset of all classes.
The classes I did choose are those imported in opensearchpy/__init__.py because these are the main API classes.

IMO this is enough for the first version of the documentation but can be extended later.

@PhilipMay

PhilipMay commented Jan 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Hello dear project maintainers. Could you please provide feedback on this PR? See comments and questions above.
@VijayanB @dblock @dtaivpp @sethmlarson

Thanks
Philip

@VijayanB

Copy link
Copy Markdown
Member

@PhilipMay Sorry for responding late. I will look at this PR.

@PhilipMay

Copy link
Copy Markdown
Contributor Author

@VijayanB the CI issue here is fixed by my PR #115 - can you please merge it? Then I can rebase.

@PhilipMay

Copy link
Copy Markdown
Contributor Author

Hi dear maintainers, feedback on this would be very nice.
@VijayanB

@Shivamdhar Shivamdhar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lint check is failing, please take a look at that.

@dtaivpp

dtaivpp commented Feb 1, 2022 •

Copy link
Copy Markdown

@Shivamdhar He already fixed the linting in PR #115. Once that is merged @PhilipMay offered to rebase

@PhilipMay

Copy link
Copy Markdown
Contributor Author

CI fails now because of: #119

@PhilipMay

Copy link
Copy Markdown
Contributor Author

PR #120 fixes the CI issue...

@PhilipMay PhilipMay changed the title WIP: Add Sphinx to generate Code Documentation Add Sphinx to generate Code Documentation Feb 4, 2022
@PhilipMay

Copy link
Copy Markdown
Contributor Author

Comment thread DEVELOPER_GUIDE.md Resolved
Comment thread DEVELOPER_GUIDE.md Resolved
@vchrombie

Copy link
Copy Markdown
Contributor

after merge please set up the GH page - see

Just adding a thought over here, can we do something with readthedocs instead with gh-pages? Does gh-pages have any advantages over readthedocs?

I think gh-pages is faster than readthedocs, since everything is just static content. Another benefit is no one has to take the burden of maintaining the extra readthedocs account and configurations. But, evaluating both the environments could be beneficial.

@PhilipMay

PhilipMay commented Feb 8, 2022 •

Copy link
Copy Markdown
Contributor Author

I think readthedocs adds advertising to your content - which I do not like.

@dtaivpp

dtaivpp commented Feb 8, 2022

Copy link
Copy Markdown

+1 to Philips comment about not liking ad's on docs. That being said I was just looking into why people would use readthedocs and it seems like they support internationalization which could be useful in the future. @vchrombie do you know if readthedocs uses the output of sphinx or are they closed source?

Signed-off-by: Philip May <philip@may.la>
Signed-off-by: Philip May <philip@may.la>
Signed-off-by: Philip May <philip@may.la>
@PhilipMay

Copy link
Copy Markdown
Contributor Author

do you know if readthedocs uses the output of sphinx or are they closed source?

Readthedocs can serve the content that Sphinx generates.

@PhilipMay

Copy link
Copy Markdown
Contributor Author

Changes are made - ready for merge from my point of view.

@dtaivpp

@dtaivpp dtaivpp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me! I will request one of the other maintainers approves and we will merge.

@VijayanB VijayanB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@VijayanB
VijayanB merged commit c34680a into opensearch-project:main Feb 8, 2022
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.

5 participants