Skip to content

WIP: Dev branch documentation#65

Open
abzaremba wants to merge 18 commits intoCADLabs:devfrom
abzaremba:dev
Open

WIP: Dev branch documentation#65
abzaremba wants to merge 18 commits intoCADLabs:devfrom
abzaremba:dev

Conversation

@abzaremba
Copy link
Copy Markdown

I've created a pull request for the mkdocs documentation.
The static pages are on my fork, and are available at: https://abzaremba.github.io/radCAD/
I would appreciate comments :)

@BenSchZA BenSchZA changed the title Dev Dev branch documentation Jun 12, 2023
Comment thread docs/about.md

## Contributing

Place for optional information about contributors or direction for how to contribute. For the latter --> the cadCAD [contributing](https://github.com/CADLabs/cadCAD/blob/master/CONTRIBUTING.md) directions are useful.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with all these placeholders, let's fill in some MVP versions of each of these. For acknowledgements, let's follow the Ethereum Economic Model as a blueprint about how to automate this.

Comment thread docs/about.md

## Table of Contents

- [Acknowledgments](#acknowledgments)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's remove these table of contents on all pages. The table of contents is already automated and shown on the right hand side in MkDocs.

Comment thread docs/advanced_features.md
* Only works for single subsets (no parameter sweeps)


## Model implementation
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure this is an accurate title for what is included below - Model is one of the classes, the content below is about model, simulation, etc.

Comment thread docs/advanced_features.md

---

## Model classes and specifications
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This section includes one subsection - "Iterating over a Model". I don't think "Model classes and specifications" is an accurate title for the section.

@@ -0,0 +1,97 @@
## cadCAD Compatibility
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the section "cadCAD Compatibility" is a page under "Reference", is it possibly to have this structure in the directory structure too for all pages? This would make it easier to navigate and review structure I think.

Comment thread mkdocs.yml
- Examples: examples.md
- Examples (accessible): examples_accessible.md
- Features:
- Features: features.md
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible to not repeat the title as in "Features/Features", "Examples/Examples", "Reference/Reference"? It can be confusing to navigate.

Comment thread docs/reference.md

## Development

Jump to [Development](development.md) section for information about:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These summary sections referencing other pages are unnecessary I think and will become difficult to maintain.

# print(df.head(10))
# To analyse the last 10 rows of the raw results
# print(df.tail(10))
print(f"The final sizes of the populations are, prey: {df['prey_population'][2001]} and predator: {df['predator_population'][2001]}.") No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's remove hardcoded index - if the index were to change, this would break. Better to select the last row I think.

Comment thread pyproject.toml
ray = { version = "^1.1.0", optional = true }
boto3 = { version = "^1.16.43", optional = true }
numpy = "^1.24.1"
ipywidgets = "7.7.2"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ipywidgets is not a core dependency I think, it should be under dev-dependencies. If we include it here, then anyone who installs radCAD will also be installing ipywidgets.

@@ -1,3 +1,6 @@
"""Backend here!
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's make these titles consistent - they will appear in the automated documentation. Suggest seeing what the best practise is from Google. Backend here! should be a summary, or left blank if we only want a summary for each of the specific backends below.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's describe here what a Backend is.

@@ -1,3 +1,7 @@
"""Backend that allows multiprocessing
No examples now.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Instead of No examples now., let's use TODO or leave blank.

@BenSchZA BenSchZA changed the title Dev branch documentation WIP: Dev branch documentation Jun 22, 2023
@BenSchZA BenSchZA deleted the branch CADLabs:dev December 27, 2023 08:51
@BenSchZA BenSchZA closed this Dec 27, 2023
@BenSchZA BenSchZA reopened this Feb 11, 2024
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.

2 participants