Below is the step-by-step instructions on how to modify, test and deploy the Tristan v2 documentation.
Install Hugo.
Clone the wiki branch:
git clone -b wiki git@github.com:PrincetonUniversity/tristan-v2.git tristan-v2-wiki cd tristan-v2-wikiDownload all the dependency modules locally:
hugo mod tidyRun the website on localhost in debug mode:
hugo server -DModify any of the
.mdfiles in thecontent/directory and view the changes live inhttp://localhost:PORT/tristan-v2(Hugo will print which port it’s using when you launchhugo server -D).When finished, make sure everything looks as expected, and simply add/commit and push your changes. GitHub actions workflow will automatically deploy the website.
git add . git commit -m 'COMMENT' git push