Skip to content

The repository publishes the document archive to the GitHub Pages website, providing a quick start for new members of CGRG.

Notifications You must be signed in to change notification settings

CGRG-lab/doc-archive

Repository files navigation

doc-archive

github pages

The repository publishes the document archive to the Github Pages website, providing a quick start for new members of CGRG.

Modify the website and view the changes locally

Repository has not been downloaded

  1. Install git from the official website.
  2. Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to your desired directory.
    cd replace-your-desired-dir-here
    For example
    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.

  3. Clone the repository with the following command.
    git clone --recursive https://github.com/CGRG-lab/doc-archive.git
  4. Go to Repository downloaded section and follow the instructions.

Repository downloaded

  1. Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to doc-archive directory.
  2. Use git pull to update the remote repository version to the local.
  3. Open File Explorer and browse the doc-archive folder. Then double-click serve_locally.bat to serve the hugo locally.
  4. After a successful serve, you will see the cmd.exe window display
    ... lots of messages ...
    Web Server is available at http://localhost:1313/doc-archive/ (bind address 127.0.0.1)
    Press Ctrl+C to stop
    
    You can use a web browser to link to http://localhost:1313/doc-archive/.
  5. Edit files in doc-archive/content. Changes to the file will also change the local web page you are serving.
  6. Press Ctrl+C in the cmd.exe window to terminate the server.

Contribute your changes to the remote repository on github

  1. Open a terminal (Git Bash, Windows PowerShell, Command Prompt, etc.) and change the current working directory to doc-archive directory.
  2. Use git pull to update the remote repository version to the local.
  3. Use git add . to add all changed file contents to the index.
  4. Use git commit -m "your commit message" to commit changes. For example, git commit -m "Update config.toml"
  5. Use git push to update remote repository on github.

References

About

The repository publishes the document archive to the GitHub Pages website, providing a quick start for new members of CGRG.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published