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

735-improving-fedot-documentation (structure) #804

Merged
merged 53 commits into from Aug 12, 2022

Conversation

IIaKyJIuH
Copy link
Collaborator

Partial improvement.

  1. Changed structure of the documentation according to this document
  2. Added docstrings to classes/functions/props and improved existing ones
  3. Created copy_doc decorator to copy docstrings for logically the same functions
  4. Improved code blocks, typings, variables names

@IIaKyJIuH IIaKyJIuH linked an issue Aug 3, 2022 that may be closed by this pull request
14 tasks
@IIaKyJIuH IIaKyJIuH requested a review from nicl-nno August 3, 2022 11:36
@pep8speaks
Copy link

pep8speaks commented Aug 3, 2022

Hello @IIaKyJIuH! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-08-12 07:39:19 UTC

@IIaKyJIuH
Copy link
Collaborator Author

IIaKyJIuH commented Aug 3, 2022

В этом PR упор делается на изменение структуры всей документации, чем на текст.

Так что не обращайте особо внимание на те докстринги, которые я изменил или добавил, всё равно @DenisSidoren перепишет их

@IIaKyJIuH IIaKyJIuH changed the title 735-improving-fedot-documentation 735-improving-fedot-documentation (structure) Aug 3, 2022
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #804 (0ed6459) into master (072e21c) will increase coverage by 0.27%.
The diff coverage is 95.69%.

@@            Coverage Diff             @@
##           master     #804      +/-   ##
==========================================
+ Coverage   87.09%   87.36%   +0.27%     
==========================================
  Files         184      184              
  Lines       12893    12911      +18     
==========================================
+ Hits        11229    11280      +51     
+ Misses       1664     1631      -33     
Impacted Files Coverage Δ
...timisers/gp_comp/pipeline_composer_requirements.py 100.00% <ø> (ø)
fedot/core/pipelines/tuning/hyperparams.py 93.87% <ø> (ø)
fedot/core/pipelines/tuning/search_space.py 100.00% <ø> (ø)
fedot/core/visualisation/opt_viz.py 53.45% <0.00%> (ø)
fedot/core/dag/node_operator.py 91.48% <87.50%> (-1.99%) ⬇️
fedot/core/pipelines/pipeline.py 98.23% <90.47%> (+1.12%) ⬆️
fedot/core/dag/graph_operator.py 92.59% <94.87%> (-1.28%) ⬇️
fedot/core/pipelines/node.py 95.69% <95.23%> (-0.07%) ⬇️
fedot/core/dag/graph.py 94.36% <96.29%> (-0.80%) ⬇️
fedot/api/main.py 79.21% <100.00%> (ø)
... and 22 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nicl-nno
Copy link
Collaborator

nicl-nno commented Aug 3, 2022

А в read-the-docs можно посмотреть на собранную версию с этими правками?

@DenisSidoren
Copy link
Collaborator

DenisSidoren commented Aug 4, 2022

А в read-the-docs можно посмотреть на собранную версию с этими правками?

В rtd настроено автоматическое формирование документации для каждого PR - посмотреть можно в сборках там..

Но и тут, в checks должна появляться ссылка на эту версию документации, возможно, в checks показывается не более 3 записей и это как-то можно поменять в настройках

@nicl-nno
Copy link
Collaborator

nicl-nno commented Aug 4, 2022

image

Идеи по неймингу разделов. Мб ещё какие-то идеи будут, как сделать понятнее и лаконичнее.

@DenisSidoren
Copy link
Collaborator

DenisSidoren commented Aug 4, 2022

image

Идеи по неймингу разделов. Мб ещё какие-то идеи будут, как сделать понятнее и лаконичнее.

Classes -> Code structure -> Modules (Units/ Components etc) in details

под Code Structure я бы ожидал увидеть иерархию всего кода, какую-то картинку-дерево

@IIaKyJIuH
Copy link
Collaborator Author

IIaKyJIuH commented Aug 4, 2022

А в read-the-docs можно посмотреть на собранную версию с этими правками?

Ссылка на собранную документацию


conceptual
problem_solving
others
Copy link
Collaborator

@gkirgizov gkirgizov Aug 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оказывается, что первые и самые общие вопросы оказываются где-то в третьем разделе "Остального". Как что-то необязательное, а не что-то самое общее. Кроме того, раздел "Conceptual" не очень хорошо сообщает, о чем он. Предлагаю объединить Conceptual & Others, переименовать в General и поставить их первым разделом.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Может быть тогда лучше засунуть те вопросы, которые не касаются самого внутреннего устройства (т.е. сейчас все из "Others"), в "Abstract", а "Conceptual" переименовать в "API Usage"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abstract вроде ок и пояснее, как если бы это abstract в научной статье.
Насчет API Usage я тоже не против, достаточно очевидно. Вот только текущий вопрос-ответ насчет why feature_name is not supported будто по смыслу не вписывается. Но, наверное, это уже вопрсо к PR с наполнением и не структурой

docs/source/index.rst Show resolved Hide resolved
docs/source/index.rst Show resolved Hide resolved
@nicl-nno
Copy link
Collaborator

nicl-nno commented Aug 8, 2022

"под Code Structure я бы ожидал увидеть иерархию всего кода, какую-то картинку-дерево"

А RTD так не умеет в плане иерархии меню? Сделать группировку по модулям было бы довольно удобно

@nicl-nno
Copy link
Collaborator

nicl-nno commented Aug 8, 2022

Как альтернативный вариант - вручную выделать несколько высокоуровневых разделов, на который разбить описание интерфейсов классов. API/Pipeline/Optimiser/etc

Copy link
Collaborator

@nicl-nno nicl-nno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом в этом PR можно влить базовые структурные правки, а раздел modules и проч. уже отдельно менять.

@IIaKyJIuH IIaKyJIuH force-pushed the 735-improving-fedot-documentation branch from a16578d to e4173c9 Compare August 11, 2022 06:05
@IIaKyJIuH IIaKyJIuH force-pushed the 735-improving-fedot-documentation branch from d586111 to 0ed6459 Compare August 12, 2022 07:39
@IIaKyJIuH IIaKyJIuH merged commit bf39974 into master Aug 12, 2022
@IIaKyJIuH IIaKyJIuH deleted the 735-improving-fedot-documentation branch August 12, 2022 09:57
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.

Improving FEDOT documentation
5 participants