Originally a clone of Default JSDoc template, since modified.
When cloning a repo that references this submodule,
be sure to give the --recurse-submodules
option to clone the
contents of the submodule:
git clone --recurse-submodules https://github.com/fin-hypergrid/rectangular.git
If you forget, you can still do it (soon) after cloning as a separate command:
git clone https://github.com/fin-hypergrid/rectangular.git
git submodule update --init --recursive
To add this template to a new repo in a jsdoc-template
folder (after git clone
or git init
):
git submodule add https://github.com/fin-hypergrid/jsdoc-template-hypergrid jsdoc-template
These changes will then need to be committed.
Sometimes it is useful to use an existing repo as a template for a new repo. But, like the existing repo, you want to reference the submodule (rather than copying it).
cp existing-repo new-repo
cd new-repo
rm -fdr .git
rm .gitmodules
git init
rm -drf jsdoc-template/
Then proceed as for New repo.