This is the Developer Training Repo for Golioth. Here we have two main items:
- The Docusaurus v2 based website that includes all training material
- The Golioth Docs as a submodule so that it's easy to update SDK install instructions across documentation sites.
Clone the repository (along with the submodule):
git clone git@github.com:golioth/developer-training.git
cd developer-training
git submodule update --initWhen updates are made to the Golioth Docs repo, they can be pulled into this one by updating the submodule to the tip of its default branch (main):
git submodule update --remote --mergeThis leaves the updated submodule pointer staged, so commit it to record the update:
git add submodule-goliothdocs
git commit -m "Update Golioth Docs submodule"Note: Don't use
git submodule foreach git pull. Submodules are checked out in a detached-HEAD state, so a plaingit pullhas no branch to track and fails with "You are not currently on a branch."
The Docusaurus site lives in the website/ directory, so run all npm commands from there.
Docs pages can be tested locally:
cd website
npm install
npm startDocs can be deployed to the live page by running:
cd website
npm run deploy