-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I suggest keeping the document as close as the code so that the developers can keep the document aligned with the code easily. A case shows that putting the document and the code in the same repo benefits. Considering we are going to change dependency A to dependency B and also want to keep the document correct enough at any moment, we have to do three steps when the document and the code are located in different repos:
- Added B as a dependency in the document (A is still the dependency, so we cannot remove A from the document here.)
- Switch dependency A to dependency B in the codebase
- Removed dependency A from the document
It's worth to mention it is not possible to make the document aligned with the codebase at each moment when dependency A conflicts with dependency B in this case.
By merging the document repo into this repo, we can easily make the document aligned with the code over time. We only need one step, even one commit, to finish the job that needs three steps above while the document and the code are located in different repos. PyTorch also put their doc and code in the same repo.
Here is the steps for merging two git repos: https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories
Steps:
- Merge Cytnx_doc to Cytnx (Migrate Cytnx_doc repo to docs/ under this repo #603).
- Format the code in the new doc folder to follow the rules of Cytnx repo (Migrate Cytnx_doc repo to docs/ under this repo #603).
- Move GitHub actions in the new doc folder to the Cytnx repo.