d2l-ai / d2l-book

Books with Jupyter notebooks
https://book.d2l.ai/
Apache License 2.0
222 stars 95 forks source link

[Feat] Pass whole chapter for translation #41

Closed AnirudhDagar closed 2 years ago

AnirudhDagar commented 2 years ago

This PR adds the ability to pass a whole chapter name instead of passing single sections for translation. Note that #40 needs to be merged before this works correctly.

Example Use Case:

d2lbook translate --commit 35a64ab chapter_optimization chapter_computer-vision/anchor.md This will translate all sections in chapter optimization and only the anchor section in chapter computer vision.

cheungdaven commented 2 years ago

It looks good to me. @astonzhang @AnirudhDagar