-
Notifications
You must be signed in to change notification settings - Fork 53
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
cookbook for apps #1636
Comments
related to #1378 |
Following up on how to include code snippets, here is the numpydoc description of how they should be formatted. |
Running
Output is:
|
Thanks @fredjaya ! I'm going to create another issue to trial this for one of the apps. |
|
I propose a new structure for app documentation that is consistent with the structure of the main documentation, i.e., sections for cookbook and tutorial content. Within the cookbook, we have subsections that loosely reflect the modules within cogent3.app. The current app documentation on sequence alignment and modelling sequence evolution is cookbook style so can be moved there. The rest of the current documentation within the app is tutorial-style, so it could be moved under that section.
Given the effort that fred is going though to document app usage in docstrings it shouldn't be too much original content, mainly just reorganisation and putting together clear examples. thoughts/comments @fredjaya @GavinHuttley? |
*for loaders, it's hard to document in a docstring without including data with cogent3; for writers, it's similarly tricky. Should the examples not be strictly runnable but instead be indicative of how to run? |
Thinking how it fits with the diataxis framework, will "cookbooks" be how-to guides? And is a reference/API section for apps required? |
For the Q1 deadline:
@KatherineCaley you are right about the docstring difficulty for loaders / writers. So those should probably use |
@fredjaya Yes, cookbooks are the how-to equivalent. I, too, am not sure about where API should go. The thesis for separating out the app documentation is that they are a distinct programming style. I've got two ideas (noting these are not necessary Q1 goals):
|
I have removed the apps that don't need to be plugins from the .toml file and updated the table above accordingly. |
I'll help it out! |
[CHANGED] not all apps need to be made available as plugins
MAINT: remove some plugins from toml file, relates to #1636
Note to check examples with |
@GavinHuttley @fredjaya todo: Decide on the TOC location, whether it is hidden from the central document or not. Then, apply it systematically to the documents. Note that the current documents are not consistent!! see https://cogent3.org/doc/examples/index.html for example of central TOC see https://cogent3.org/doc/cookbook/index.html for example of LHS TOC only |
Apps need documentation!! This should be structured based on the type of apps, i.e., loaders, filtering steps, data sampling apps.
todo: cookbook
todo: docstrings
The text was updated successfully, but these errors were encountered: