The repository publishes the document archive to the Github Pages website, providing a quick start for new members of CGRG.
- Install git from the official website.
- Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to your desired directory.
For example
cd replace-your-desired-dir-here
cd D:\dir-where-doc-archive-is-stored
If you are using the Command Prompt in Windows, you may need to change to a different drive with
cd /d replace-your-desired-dir-here
. - Clone the repository with the following command.
git clone --recursive https://github.com/CGRG-lab/doc-archive.git
- Go to Repository downloaded section and follow the instructions.
- Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to
doc-archive
directory. - Use
git pull
to update the remote repository version to the local. - Open
File Explorer
and browse thedoc-archive
folder. Then double-clickserve_locally.bat
to serve the hugo locally. - After a successful serve, you will see the
cmd.exe
window displayYou can use a web browser to link to http://localhost:1313/doc-archive/.... lots of messages ... Web Server is available at http://localhost:1313/doc-archive/ (bind address 127.0.0.1) Press Ctrl+C to stop
- Edit files in
doc-archive/content
. Changes to the file will also change the local web page you are serving. - Press Ctrl+C in the
cmd.exe
window to terminate the server.
- Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to
doc-archive
directory. - Use
git pull
to update the remote repository version to the local. - Use
git add .
to add all changed file contents to the index. - Use
git commit -m "your commit message"
to commit changes. For example,git commit -m "Update config.toml"
- Use
git push
to update remote repository on github.