Documentation only#206
Conversation
… make command to serve docs locally.
|
Hey @BenjaminDev , Or is this PR a better solution to that? |
|
hahaha. Okay I missed that. I have never used read the docs. I didn't see a Can you point it to the gh-pages branch? or can readthedocs run the build command?d I'd say the only issue is somewhere we need to build the docs as it'll get messy if we commit all the built files to github. We'd need to look into what readthedocs offers and whether sphinx can play nicely with sphinx. Where is our .readthedocs.yml file? Is this current solution better? I'd say same same. But if other OpenMined projects are using readthedocs service then let's do the same. |
|
Can we add markdown support? |
I'm sure we can. which files are in markdown that need to be added? Unless they exist let's leave them to another PR. I'm sure there will be plenty to add. |
| @@ -0,0 +1,2 @@ | |||
| python-dp | |||
| sphinx-rtd-theme No newline at end of file | |||
There was a problem hiding this comment.
Can we remove python-dp? or is that essential to the build?
There was a problem hiding this comment.
Also, is this requirement file necessary?
There was a problem hiding this comment.
The way sphinx works is by stripping the docs from the docstrings of the released (installed) package. Yes! this requirements.txt is needed and is used by reathedocs (or the github action proposed) when the docs are built.
|
Also since we have added readthedocs, can we remove the github action? |
Yeah we should. I'll do that. |
Description
Addresses #107
Added sphinx documentation see example. This means we need to write docstrings in a sphinx compatible way. See
benjaminDev/pydp@distributionspr for examples. This pr has a workflow that will run on pushes todevwhich will build and put the built docs in thegh-pagesbranch.Affected Dependencies
Added dev dependencies:
sphinxandsphinx-rtd-theme.How has this been tested?
Checklist
Todo:
This pr will has a workflow that will run on pushes to
devwhich will put the built docs in thegh-pagesbranch. To serve these an Openmined developer must go to settings and activate github pages as shown below.