1.0.1 • Published 7 years ago
gitbook-plugin-submodule-summary v1.0.1
gitbook-plugin-submodule-summary
A gitbook plugin for merge git submodule summary.md.
Installation
book.json
{
"plugins": [
"submodule-summary"
]
}and
gitbook installUsage
General usage:
Host Repo(HR): origin gitbook repo. Submodule Repo(SR): git submodule gitbook repo.
- HR add a git submodule from SR.
- Edit HR
SUMMARY.md. - Enjoy it!
Add git submodule
git submodule add git@github.com/yourname/repo.git path/to/submoduleEdit SUMMARY.md
Edit the HR SUMMARY.md, replace specific location with the placeholder string <!-- SUBMODULE-SUMMARY path/to/submodule/SUMMARY.md -->
Build
Now you can build the gitbook, the HR SUMMARY.md contain pre-step string will replace with path/to/submodule/SUMMARY.md content.
Tests
npm testContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT