The following code builds a simple doc tutorial service that lets you build a training course for anything. It's based off of https://lotusdocs.dev with the addition of VSCode and a Terminal
- Docker / Docker desktop Installed
- Git /Github access
- Fork the following repo https://github.com/maniak-academy/training-hugo-project.git
If you have forked the repo then you can clone it into your own machine.
git clone https://github.com/maniak-academy/training-hugo-project.git
Jump into the directory and take a look at the docker-compose.yaml file, this will run docker and deploy hugo server and run it with the content in your repo.
It will deploy
- Hugo Server port 1313
- TTYD Terminal Server 7681
- VSCode Server (coming soon)
- Quacaomole Server (coming soon)
Exectue the following command to spin the docker up
docker-compose up -d
To shut it down run
docker-compose down
Now you can go to http://localhost:1313 or http://localhost:7681 and you are set
Add content using markup language in the content/docs folder.
hugo new docs/Start/_index.md hugo new docs/Start/doc-three.md