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

Finalize docs #19

Merged
merged 11 commits into from
Jul 1, 2021
Merged

Finalize docs #19

merged 11 commits into from
Jul 1, 2021

Conversation

DanielKotik
Copy link
Contributor

@DanielKotik DanielKotik commented Jun 28, 2021

I have added a section with build instructions for the documentation (for doing it locally), added a requirements.txt for docs dependencies and fixed remaining errors in conf.py. With these changes, we are ready to move on to setup the docs CI pipeline.

@timcallow
Copy link
Contributor

timcallow commented Jun 28, 2021

Looks good.

I think the docstring in models.ISModel is not rendering correctly due to some incorrect formatting... But even if it were rendering there would the same error as we saw in PRs #18 and #16. I will fix later today.

@DanielKotik
Copy link
Contributor Author

Looks good.

I think the docstring in models.ISModel is not rendering correctly due to some incorrect formatting... But even if it were rendering there would the same error as we saw in PRs #18 and #16. I will fix later today.

Mhh, for me this docsting looks good. Also, there are now warning messages anymore.

@timcallow
Copy link
Contributor

Looks good.
I think the docstring in models.ISModel is not rendering correctly due to some incorrect formatting... But even if it were rendering there would the same error as we saw in PRs #18 and #16. I will fix later today.

Mhh, for me this docsting looks good. Also, there are now warning messages anymore.

Strange there are no warnings, but I don't see any of the class parameters displaying? And the propertys have no docs

Screenshot from 2021-06-28 12-02-10

@DanielKotik
Copy link
Contributor Author

DanielKotik commented Jun 28, 2021

Looks good.
I think the docstring in models.ISModel is not rendering correctly due to some incorrect formatting... But even if it were rendering there would the same error as we saw in PRs #18 and #16. I will fix later today.

Mhh, for me this docsting looks good. Also, there are now warning messages anymore.

Strange there are no warnings, but I don't see any of the class parameters displaying? And the propertys have no docs

@timcallow Please follow these steps and report if the issues you mentioned persist:

cd docs
python3 -m venv docs-env
source docs-env/bin/activate
pip install -U pip
pip install -r requirements.txt
make clean
make apidocs
make html

This will create a simple virtual environment for the documentation using the dependencies given in requirements.txt I provided with branch finalize-docs. After testing, you can safely remove the virtual environment with rm -rf docs-env.

@timcallow
Copy link
Contributor

@DanielKotik I did try these steps but the problem above persists.

To be clear make html does not raise any actual errors, but you can see from my screenshot that the ISModel Parameters are not shown (and the propertys also missing docstrings). Maybe it's not the case for you somehow?

@timcallow
Copy link
Contributor

@DanielKotik I did try these steps but the problem above persists.

To be clear make html does not raise any actual errors, but you can see from my screenshot that the ISModel Parameters are not shown (and the propertys also missing docstrings). Maybe it's not the case for you somehow?

Anyway it's a simple fix, I'll do it later

@DanielKotik
Copy link
Contributor Author

DanielKotik commented Jun 28, 2021

@DanielKotik I did try these steps but the problem above persists.
To be clear make html does not raise any actual errors, but you can see from my screenshot that the ISModel Parameters are not shown (and the propertys also missing docstrings). Maybe it's not the case for you somehow?

Anyway it's a simple fix, I'll do it later

Ahh, now I get it. The docstring of the __init__ method is not rendered at all. I was just wondering, that your properties are somehow grouped together. Anyway, we need to fix this. Also the parameter and attribute list seems not to correctly reflect the constructor signature (e.g. atom is missing).

@DanielKotik DanielKotik mentioned this pull request Jun 28, 2021
@DanielKotik
Copy link
Contributor Author

DanielKotik commented Jul 1, 2021

@timcallow Please have a look at https://stackoverflow.com/questions/5599254/how-to-use-sphinxs-autodoc-to-document-a-classs-init-self-method
It seems that constructor methods do not get parsed an rendered by Sphinx' autodoc by default. Let us first merge this PR, make a dedicated issue (I will do that -> #26 ) and fix it on a dedicated branch.

@timcallow
Copy link
Contributor

@timcallow Please have a look at https://stackoverflow.com/questions/5599254/how-to-use-sphinxs-autodoc-to-document-a-classs-init-self-method
It seems that constructor methods do not get parsed an rendered by Sphinx' autodoc by default. Let us first merge this PR, make a dedicated issue (I will do that -> #26 ) and fix it on a dedicated branch.

Ok, I merge this PR now. See my comment on #26

@timcallow timcallow merged commit 6024dd0 into documentation Jul 1, 2021
@timcallow timcallow deleted the finalize-docs branch July 1, 2021 13:59
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.

None yet

2 participants