- Setup jekyll using the offical documentation.
- Checkout to
sources
branch.
git checkout sources
- To add a new page, copy two markdown files, one for Bangla another for English (
index.md
andindex-bn.md
). - Change the title and ref, according to
lang
. - Write English and Bangla content.
- Run the following to see the result locally.
bundle exec jekyll build
- Deploy running the deployment script. Commit and push to
sources
when satistied.
./publish-to-github.sh
The script builds the htmls, stashes current changes, changes to master
branch, copies all the files under _site
to the root of the repo, commits and pushes to master
. The it returns back to source
branch and pops the stashed changes.
- You can deploy without committing the source to
sources
. (Always keep the source and the production). - Remember, the
master
branch is for output htmls, DO NOT commit commit/push anything in that branch. The script does everything for you.