-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Polish documents for fluid operators. #6526
Comments
Do we refine http://www.paddlepaddle.org/docs/develop/documentation/en/operators.html as well ? |
@luotao1 We have already refactored the latex equations and the English grammar in the operator docs in this project (https://github.com/PaddlePaddle/Paddle/projects/31). |
@abhinavarora @luotao1 Users have to refer |
@pkuyym I agree with you. Lets focus on this right now |
@pkuyym I am confused that should we keep the documents same between operators.html and layers.html, should we just only do copy and paste? |
@luotao1 I think both of them are different documents and both of them are targeted for different users. |
@pkuyym @lcy-seso @luotao1 @qingqing01 @kuke @chengduoZH @NHZlX We all should wait for @reyoung to merge #6564 before making more changes for this issue. He is working on this PR to split |
@abhinavarora I agree with you! |
@luotao1 I'm targeting to refine the documentation for |
I have the same question as @luotao1 , I looked at the PR, and I still don't understand what the difference between the documentations of |
@pkuyym Your example is fc, which doesn't have op in C++. But I am confused how to write two versions of @abhinavarora I agree with @kavyasrinet , maybe it's difficult for developers to write and maintain two versions of an same op. If layer=op, why we should rewrite a different doc version? |
Hi @pkuyym can you please edit the above documentation to explain how to set up the preview when using |
@kavyasrinet May be this file http://www.paddlepaddle.org/docs/develop/documentation/en/howto/dev/write_docs_en.html can help you. But this file should be updated since something is wrong. |
Thanks for pointing that out @luotao1 . But I was mostly asking about -- when building PaddlePaddle using Docker using the document mentioned here: https://github.com/PaddlePaddle/Paddle/blob/develop/doc/howto/dev/build_en.md . I am not sure how to enable the mentioned flags for enabling documentation. We should update the file above to address this as well. |
@kavyasrinet The flag is
|
@luotao1 Sorry, I forgot to reply to your previous comment. I think the reason we need 2 docs is because Also since PaddlePaddle, is an open source project, we need a separate documentation for Operators because some users might prefer to fork PaddlePaddle and then write some new layers which are specific to their use case. |
As we have API doc standard and a list of API doc jobs now, this issue could be closed. |
We have to polish the documents for fluid operators. This issue takes
fc
as an example to show the documentation specification.python/paddle/v2/fluid/layers.py#fc
And the final html looks like:
How to preview
After refined the documents in
layers.py
, we need to preview the html page. Here I list some key tips:WITH_DOC=1
andsphinx==1.5.6
.make -j `nproc` && python -m SimpleHTTPServer $PORT_NUM
$IP:$PORT_NUM/doc/en/html/api/v2/fluid/layers.html
to check the preview.doc/api/v2/fluid/layers.rst
URLs
Docs of sphnix: http://www.sphinx-doc.org/en/stable/contents.html
How to insert codes: http://www.sphinx-doc.org/en/stable/markup/code.html
How to insert math equations: http://www.sphinx-doc.org/en/stable/ext/math.html
Previous discussion: #6160
Operators need to polish
Please create an issue first before do polishing.
The text was updated successfully, but these errors were encountered: