gitbook-plugin-submodule-summary
v1.0.1
Published
Auto copy summary from git submodule.
Downloads
6
Maintainers
Readme
gitbook-plugin-submodule-summary
A gitbook plugin for merge git submodule summary.md.
Installation
book.json
{
"plugins": [
"submodule-summary"
]
}
and
gitbook install
Usage
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 [email protected]/yourname/repo.git path/to/submodule
Edit 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 test
Contributing
- 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