Uh oh!
There was an error while loading. Please reload this page.
[SPARK-3430] [PySpark] [Doc] generate PySpark API docs using Sphinx - #2292
[SPARK-3430] [PySpark] [Doc] generate PySpark API docs using Sphinx#2292davies wants to merge 7 commits into
Conversation
JoshRosen
commented
Sep 5, 2014
When I tried this, I got a lot of warnings saying that Sphinx couldn't import the PySpark modules: I guess this is because When I do it picks up the imports and runs. |
davies
commented
Sep 5, 2014
thanks, I had update the PR description. |
JoshRosen
commented
Sep 5, 2014
Maybe we can just stick that command inside the Makefile... |
JoshRosen
commented
Sep 5, 2014
JoshRosen
commented
Sep 5, 2014
JoshRosen
commented
Sep 5, 2014
davies
commented
Sep 5, 2014
Yes, I tried to convert most of the markup (but not all of them), what does this mean in epydocs? |
JoshRosen
commented
Sep 5, 2014
The markup like |
nchammas
commented
Sep 5, 2014
FYI: Those ones are broken in epydoc, too, so in the case of |
JoshRosen
commented
Sep 5, 2014
I guess we have some choices for the markup language dialect that we use for our docstrings. I tend to prefer the Google style to ReStructuredText / Javadoc, since it's a little less cluttered to edit / read. We can revisit this later, though; I don't think it's important to rewrite all of the docstrings as part of this patch. |
davies
commented
Sep 5, 2014
@JoshRosen@nchammas I had addressed all the comments, please take a look again. |
nchammas
commented
Sep 5, 2014
Oh, sorry I didn't mean the badly formatted doc strings should be fixed in this PR. At least not the ones that are also bad in epydoc. That probably should be left for another PR. There are many strings that need fixing:
Etc... |
JoshRosen
commented
Sep 5, 2014
Hmm, the Makefile PYTHONPATH didn't seem to work. Maybe we should add those directories to sys.path in # If extensions (or modules to document with autodoc) are in another directory,# add these directories to sys.path here. If the directory is relative to the# documentation root, use os.path.abspath to make it absolute, like shown here.sys.path.insert(0, os.path.abspath('.')) |
davies
commented
Sep 5, 2014
@JoshRosen The Makefile has been fixed. |
davies
commented
Sep 6, 2014
Jenkins, test this please. |
JoshRosen
commented
Sep 6, 2014
Jenkins, retest this please. |
marmbrus
commented
Sep 10, 2014
Jenkins, test this please. |
SparkQA
commented
Sep 10, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 10, 2014
QA tests have finished for PR 2292 at commit
|
marmbrus
commented
Sep 10, 2014
Weird, I've never seen Hive fail to initialize like this before. |
marmbrus
commented
Sep 10, 2014
Jenkins, test this please. |
SparkQA
commented
Sep 10, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 10, 2014
QA tests have finished for PR 2292 at commit
|
SparkQA
commented
Sep 11, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 11, 2014
QA tests have finished for PR 2292 at commit
|
rnowling
commented
Sep 12, 2014
Conflicts: python/pyspark/serializers.py
SparkQA
commented
Sep 13, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 13, 2014
QA tests have finished for PR 2292 at commit
|
davies
commented
Sep 13, 2014
@JoshRosen I had moved the docs to python/docs/, rebased with master. I think it's ready to merge, please take another look, thanks. |
SparkQA
commented
Sep 13, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 13, 2014
Tests timed out after a configured wait of |
SparkQA
commented
Sep 13, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 13, 2014
Tests timed out after a configured wait of |
SparkQA
commented
Sep 13, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 13, 2014
QA tests have finished for PR 2292 at commit
|
SparkQA
commented
Sep 14, 2014
QA tests have started for PR 2292 at commit
|
SparkQA
commented
Sep 14, 2014
QA tests have finished for PR 2292 at commit
|
JoshRosen
commented
Sep 16, 2014
This looks good to me; I'm going to merge this into master but leave the JIRA open so that we remember to eventually remove the epydocs / etc. |



Using Sphinx to generate API docs for PySpark.
requirement: Sphinx
The generated API docs will be located at python/docs/_build/html/index.html
It can co-exists with those generated by Epydoc.
This is the first working version, after merging in, then we can continue to improve it and replace the epydoc finally.