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

first iteration: docs restructure #1103

Merged
merged 15 commits into from
Sep 5, 2023
Merged

first iteration: docs restructure #1103

merged 15 commits into from
Sep 5, 2023

Conversation

samhita-alla
Copy link
Contributor

@samhita-alla samhita-alla commented Aug 30, 2023

This PR rearranges the docs examples and updates those found in the basics section, as well as the decks and decorating tasks examples.

samhita-alla and others added 6 commits July 31, 2023 17:40
Signed-off-by: Samhita Alla <[email protected]>
This reverts commit ac154eb.
Signed-off-by: Samhita Alla <[email protected]>
* Sandbox notifications example (#1072)

* Fix merge_sort.py code bug

If the count variable is set to 25, then the code will only sort the first 24 numbers.

Signed-off-by: Hacker-Davinci <[email protected]>

* Fix merge_sort.py code bug

If the count variable is set to 25, then the code will only sort the first 24 numbers.

Signed-off-by: Hacker-Davinci <[email protected]>

* fix the variable naming error

Signed-off-by: Future Outlier <[email protected]>

* Delete merge_sort.py

Signed-off-by: Future-Outlier <[email protected]>

* Create merge_sort.py

Signed-off-by: Future-Outlier <[email protected]>

* sandbox notifications example

Signed-off-by: Future Outlier <[email protected]>

---------

Signed-off-by: Hacker-Davinci <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Co-authored-by: Future Outlier <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>

* Fix linting error (#1074)

Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>

* Update agent doc (#1073)

Signed-off-by: Hongxin Liang <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>

* Bump gitpython from 3.1.31 to 3.1.32 in /examples/snowflake_plugin (#1078)

Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.31 to 3.1.32.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.31...3.1.32)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Samhita Alla <[email protected]>

* add type datetime.date (#1084)

Signed-off-by: troychiu <[email protected]>
Co-authored-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>

* revise documentation for plugins requiring flyte backend setup (#1062)

* revise documentation for plugins requiring flyte backend setup

Signed-off-by: Samhita Alla <[email protected]>

* nit

Signed-off-by: Samhita Alla <[email protected]>

* update docs

Signed-off-by: Samhita Alla <[email protected]>

* update requirements

Signed-off-by: Samhita Alla <[email protected]>

* downgrade pydantic

Signed-off-by: Samhita Alla <[email protected]>

* revert requirements update

Signed-off-by: Samhita Alla <[email protected]>

* revert requirements update

Signed-off-by: Samhita Alla <[email protected]>

* generate requirements in databricks

Signed-off-by: Samhita Alla <[email protected]>

* add envd

Signed-off-by: Samhita Alla <[email protected]>

* ray isort

Signed-off-by: Samhita Alla <[email protected]>

* sort imports

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* add envd to plugin requirements

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* add requirements.txt file

Signed-off-by: Samhita Alla <[email protected]>

* fix requirements

Signed-off-by: Samhita Alla <[email protected]>

* modify imagespec registry

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* tf dependencies

Signed-off-by: Samhita Alla <[email protected]>

* modify deps and add registry

Signed-off-by: Samhita Alla <[email protected]>

* modify registry

Signed-off-by: Samhita Alla <[email protected]>

* mpi protobuf

Signed-off-by: Samhita Alla <[email protected]>

* add placeholder

Signed-off-by: Samhita Alla <[email protected]>

* incorporate suggestions

Signed-off-by: Samhita Alla <[email protected]>

---------

Signed-off-by: Samhita Alla <[email protected]>

* rearrange folders

Signed-off-by: Samhita Alla <[email protected]>

* downgrade pyyaml version

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* update deps

Signed-off-by: Samhita Alla <[email protected]>

* new line

Signed-off-by: Samhita Alla <[email protected]>

* update dockerfiles

Signed-off-by: Samhita Alla <[email protected]>

* update requirements

Signed-off-by: Samhita Alla <[email protected]>

* update requirements

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* remove python 3.8-10

Signed-off-by: Samhita Alla <[email protected]>

* update requirements

Signed-off-by: Samhita Alla <[email protected]>

* validate

Signed-off-by: Samhita Alla <[email protected]>

* add envd

Signed-off-by: Samhita Alla <[email protected]>

* debug

Signed-off-by: Samhita Alla <[email protected]>

* debug

Signed-off-by: Samhita Alla <[email protected]>

* final

Signed-off-by: Samhita Alla <[email protected]>

---------

Signed-off-by: Hacker-Davinci <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Hongxin Liang <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: troychiu <[email protected]>
Co-authored-by: Future-Outlier <[email protected]>
Co-authored-by: Future Outlier <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
Co-authored-by: Honnix <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yi Chiu <[email protected]>
* update basics

Signed-off-by: Samhita Alla <[email protected]>

* nit

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* update dockerfile and code

Signed-off-by: Samhita Alla <[email protected]>

* lint

Signed-off-by: Samhita Alla <[email protected]>

* add envd

Signed-off-by: Samhita Alla <[email protected]>

* registry

Signed-off-by: Samhita Alla <[email protected]>

* fix resource allocation example

Signed-off-by: Samhita Alla <[email protected]>

* modify the name of the launch plan

Signed-off-by: Samhita Alla <[email protected]>

* gh action

Signed-off-by: Samhita Alla <[email protected]>

* modify lp name

Signed-off-by: Samhita Alla <[email protected]>

* fix reference lp name

Signed-off-by: Samhita Alla <[email protected]>

---------

Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
@@ -146,7 +143,7 @@ Because Flyte uses executable docker containers as the smallest unit of compute,
:header-rows: 0
:widths: 20 30

* - {doc}`Raw Container Tasks <auto_examples/containerization/raw_container>`
* - {doc}`Raw Container Tasks <auto_examples/04_customizing_dependencies/raw_container>`
Copy link
Contributor

@cosmicBboy cosmicBboy Aug 31, 2023

Choose a reason for hiding this comment

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

why are we numbering these?

note that 04_customizing_dependencies is not a valid (importable) python module name. Let's go for it if we don't care about that. We also risk locking ourselves into a particular order... what if we decide to re-order these sections? We'll then have to rename all of the directories and example modules to reflect the new ordering.

If we really want the numbering for readability purposes when a developer clones the flytesnacks repo, we can create a table of contents in the readme to enforce a particular ordering.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ketan really wants to tidy things up. He wants to make it super easy to contribute to the docs. While we don't have to be strict about it, Ketan believes reorganizing folders in the examples directory will simplify contributing to the docs.

What do you suggest we do?

Copy link
Contributor

@cosmicBboy cosmicBboy Sep 1, 2023

Choose a reason for hiding this comment

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

I guess I'm skeptical that numbering the examples folders will actually make it easier to contribute.

We can solve this by working on a way to link an example page to the github python file (I can help add this functionality, this was supported with the old sphinx gallery setup).

I just want to future proof these names so that we don't have to update a bunch of places if/when we decide to restructure the docs again. For example, adding a new section in the middle will require bumping the numbers of all the subsequent sections. Same with deleting/merging a section. @kumare3

Copy link
Contributor Author

@samhita-alla samhita-alla Sep 3, 2023

Choose a reason for hiding this comment

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

Alright then, I'll remove the numbers. After we merge this PR, could you please add the functionality you mentioned?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cosmicBboy, can you approve this PR?

Signed-off-by: Samhita Alla <[email protected]>
@samhita-alla samhita-alla merged commit 1565219 into master Sep 5, 2023
@samhita-alla samhita-alla deleted the docs-restructure branch September 5, 2023 16:00
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.

3 participants