8000 docs cookbook polish by alexcg1 · Pull Request #2446 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs cookbook polish #2446

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

Merged
merged 7 commits into from
May 21, 2021
Merged

docs cookbook polish #2446

merged 7 commits into from
May 21, 2021

Conversation

alexcg1
Copy link
Member
@alexcg1 alexcg1 commented May 19, 2021

Just some minor wording cleanup. Re-reading and editing also helps it live in my brain

  • docs(cookbook): polish english
  • docs(cookbook): polish english

@alexcg1 alexcg1 requested a review from a team as a code owner May 19, 2021 13:06
@alexcg1 alexcg1 requested review from JoanFM and BastinJafari May 19, 2021 13:06
@alexcg1 alexcg1 self-assigned this May 19, 2021
@alexcg1 alexcg1 requested a review from hanxiao May 19, 2021 13:06
@jina-bot jina-bot added size/M area/housekeeping This issue/PR is housekeeping labels May 19, 2021
@alexcg1 alexcg1 removed request for JoanFM and BastinJafari May 19, 2021 13:06
@codecov
Copy link
codecov bot commented May 19, 2021

Codecov Report

Merging #2446 (3dc1d4d) into master (077ce5e) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2446      +/-   ##
==========================================
- Coverage   83.56%   83.44%   -0.12%     
==========================================
  Files         150      150              
  Lines        9380     9380              
==========================================
- Hits         7838     7827      -11     
- Misses       1542     1553      +11     
Flag Coverage Δ
daemon 47.14% <0.00%> (ø)
jina 83.25% <100.00%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/jaml/parsers/__init__.py 92.68% <100.00%> (ø)
jina/jaml/parsers/flow/legacy.py 22.72% <0.00%> (-20.46%) ⬇️
jina/peapods/peas/__init__.py 94.26% <0.00%> (-2.46%) ⬇️
jina/peapods/pods/compound.py 92.30% <0.00%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update baaa909...3dc1d4d. Read the comment docs.

Copy link
Member
@hanxiao hanxiao left a comment

Choose a reason for hiding this comment

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

  • text in the code should not be changed, plz do not batch replace all document to Document, especially when they are in the code

@@ -1,7 +1,7 @@
# Cookbook on Clean Code
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we follow the same guidelines as for other READMES? So title case here too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Title case doesn't mean every word capitalized :) This is in title case already

Minor words shouldn't be capitalized

@@ -574,12 +574,12 @@ DocumentArray has 3 items:

### Use `itertools` on `DocumentArray`

As `DocumenArray` is an `Iterable`, you can also use [Python built-in `itertools` module](https://docs.python.org/3/library/itertools.html) on it. This enables advanced "iterator algebra" on the `DocumentArray`.
As `DocumentArray` is an `Iterable`. You can also use [Python's built-in `itertools` module](https://docs.python.org/3/library/itertools.html) on it. This enables advanced "iterator algebra" on the `DocumentArray`.
Copy link
Contributor

Choose a reason for hiding this comment

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

We really should have a dot here? those two sentences are connected right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, my bad. I'll fix

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@alexcg1
Copy link
Member Author
alexcg1 commented May 20, 2021
  • text in the code should not be changed, plz do not batch replace all document to Document, especially when they are in the code

Fixed

@alexcg1
Copy link
Member Author
alexcg1 commented May 20, 2021

@hanxiao @theUnkownName please let me know if you find any other glitches. Git was throwing merge conflict stuff at me earlier - I'm pretty sure all of my edits and corrections got through (and I checked), but something might've fallen through the gaps

@CatStark
Copy link
Contributor

@hanxiao @theUnkownName please let me know if you find any other glitches. Git was throwing merge conflict stuff at me earlier - I'm pretty sure all of my edits and corrections got through (and I checked), but something might've fallen through the gaps

Is it me maybe? I'm not seeing any of the changes

@alexcg1
Copy link
Member Author
alexcg1 commented May 20, 2021

For some reason we can't see any of the changes on the GitHub interface. But if you go to the branch in the repo you can see the updated docs (either here or in your terminal)

Comment on lines 99 to 102
<jina.types.Document.Document id=2ca74b98-aed9-11eb-b791-1e008a366d48 mimeType=text/plain text=hello at 6247702096>
<jina.types.Document.Document id=2ca74f1c-aed9-11eb-b791-1e008a366d48 buffer=DDE= mimeType=text/plain at 6247702160>
<jina.types.Document.Document id=2caab594-aed9-11eb-b791-1e008a366d48 blob={'dense': {'buffer': 'AQAAAAAAAAACAAAAAAAAAAMAAAAAAAAA', 'shape': [3], 'dtype': '<i8'}} at 6247702416>
<jina.types.Document.Document id=4c008c40-af9f-11eb-bb84-1e008a366d49 uri=https://static.jina.ai/logo/core/notext/light/logo.png mimeType=image/png at 6252395600>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<jina.types.Document.Document id=2ca74b98-aed9-11eb-b791-1e008a366d48 mimeType=text/plain text=hello at 6247702096>
<jina.types.Document.Document id=2ca74f1c-aed9-11eb-b791-1e008a366d48 buffer=DDE= mimeType=text/plain at 6247702160>
<jina.types.Document.Document id=2caab594-aed9-11eb-b791-1e008a366d48 blob={'dense': {'buffer': 'AQAAAAAAAAACAAAAAAAAAAMAAAAAAAAA', 'shape': [3], 'dtype': '<i8'}} at 6247702416>
<jina.types.Document.Document id=4c008c40-af9f-11eb-bb84-1e008a366d49 uri=https://static.jina.ai/logo/core/notext/light/logo.png mimeType=image/png at 6252395600>
<jina.types.document.Document id=2ca74b98-aed9-11eb-b791-1e008a366d48 mimeType=text/plain text=hello at 6247702096>
<jina.types.document.Document id=2ca74f1c-aed9-11eb-b791-1e008a366d48 buffer=DDE= mimeType=text/plain at 6247702160>
<jina.types.document.Document id=2caab594-aed9-11eb-b791-1e008a366d48 blob={'dense': {'buffer': 'AQAAAAAAAAACAAAAAAAAAAMAAAAAAAAA', 'shape': [3], 'dtype': '<i8'}} at 6247702416>
<jina.types.document.Document id=4c008c40-af9f-11eb-bb84-1e008a366d49 uri=https://static.jina.ai/logo/core/notext/light/logo.png mimeType=image/png at 6252395600>

Copy link
Member
@hanxiao hanxiao May 20, 2021

Choose a reason for hiding this comment

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

same for all incode document, they have to be lower case, because they implies a real module path

Copy link
Member Author

Choose a reason for hiding this comment

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

I changed those all already. For some reason my commit isn't showing in the PR, but it's showing in the branch itself. God knows how or why

Copy link
Member Author

Choose a reason for hiding this comment

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

WTF? I'm going to look into this. I DEFINITELY changed all of those yesterday. I remember going through it by hand. And now it's not showing on my local box

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, fixed. And I ran a grep on all the files to ensure there are no remaining occurrences

@alexcg1 alexcg1 requested review from hanxiao and CatStark May 21, 2021 08:09
@hanxiao hanxiao merged commit a86a745 into master May 21, 2021
@hanxiao hanxiao deleted the docs-cookbook-polish branch May 21, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/housekeeping This issue/PR is housekeeping size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0