Skip to content

Laefy/CPP_Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Output

Published Website is accessible at this address : https://laefy.github.io/CPP_Learning/.

Usage

Tools

This site is built with Hugo.
You need to install the tool in order to rebuild the site locally.

Sources

To obtain the sources:

git clone https://github.com/Laefy/CPP_Learning.git  
git submodule update --init --recursive

Testing

Once you have made some changes to the sources, you can test your modifications locally by running:

hugo server

The website will be accessible on http://localhost:1313/CPP_Learning/.

Publishing

If you want to publish your website on GitHub (after forking), you need to put the generated files inside the gh-pages branch.
In order to do that, you may create a worktree in the public/ folder targeting the gh-pages branch:

git worktree add -b gh-pages public origin/gh-pages

Then, you generate the site by running:

rm -rf public/*
hugo

You can then commit the new version and push it to GitHub:

hash="$(git rev-parse --short HEAD)"
branch="$(git rev-parse --abbrev-ref HEAD)"
desc="$(git show --pretty="format:%s" | head -n 1)"

cd public
git add .
git commit -m "Generated site from ${hash} (${branch}) | ${desc}"

Alternatively, you can use the provided do_publish.sh to do all of this for you:

./do_publish.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •