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

BPE2: build and publish documentation #98

Open
3 of 5 tasks
anilbey opened this issue Sep 28, 2022 · 9 comments
Open
3 of 5 tasks

BPE2: build and publish documentation #98

anilbey opened this issue Sep 28, 2022 · 9 comments

Comments

@anilbey
Copy link
Contributor

anilbey commented Sep 28, 2022

Once BPE2 becomes the master branch the following are needed to build an up-to-date documentation.

  • create files to represent sphinx structure for each API page
  • have a link to refer to the e-feature documentation https://bluebrain.github.io/eFEL/efeature-documentation.pdf
  • complete missing docstrings
  • Add a paragraph to the README to describe the general way BPE works.
  • [OPTIONAL] use type hints in some function/method signatures to make sure the parameter and return types are always correct and they never go out of date (unlike docstrings). https://pypi.org/project/sphinx-autodoc-typehints/ This feature also shortens the docstrings. Moreover, IDEs and static code analysis tools (like pylint, mypy) read these signatures to prevent misuses.
@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 28, 2022

Thanks for the list !
I will take care of the docstrings.

@anilbey
Copy link
Contributor Author

anilbey commented Sep 28, 2022

Thanks @DrTaDa !

@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 28, 2022

A first batch: #99

@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 29, 2022

For the link to the e-features, I put it in the example notebook for now.
I think you can add to the todo list: Add a paragraph to the README to describe the general way BPE works.

@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 29, 2022

create files to represent sphinx structure for each API page

What does that mean ?

@anilbey
Copy link
Contributor Author

anilbey commented Sep 29, 2022

These rst files under docs/source to tell how the API documentation should be structured.
https://github.com/BlueBrain/BluePyOpt/blob/master/docs/source/ephys.rst

@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 29, 2022

Aren't these files supposed to be created automatically ?

@anilbey
Copy link
Contributor Author

anilbey commented Sep 29, 2022

The html files are generated using these rst files but the rst files are manually created because they can be created in different ways. Using these files we can specify which classes and functions to show in which page it's like the main structure of the documentation. For example all ecodes can be documented in one page or there can be a single page for each one of them.

@DrTaDa
Copy link
Contributor

DrTaDa commented Sep 30, 2022

I give up on sphinx for this week 😄

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

No branches or pull requests

2 participants