4 Hosting on GitHub pages
Tulir Asokan edited this page 2020-09-17 14:23:58 +03:00

If you don't have a webserver to run the files on, you can also use something like GitHub pages.

Setup

  1. Fork the repo
    arrow pointing at fork button
  2. Go to settings
    arrow pointing at settings button
  3. Scroll down to the bottom to the "GitHub Pages" section"
  4. In the "Source" dropdown, select "master"
    arrow pointing at branch dropdown in GH pages settings
  5. Click "Save"
    arrow pointing at save button
  6. Clone your fork (git clone git@github.com:username/stickerpicker.git)
  7. Follow the instructions in Creating packs to create packs. N.B. Skip step 1 of the install instructions as you already cloned your fork of the repo.
  8. Commit your changes (git add web/packs && git commit) and push (git push)
  9. Follow the instructions in Enabling the widget using https://username.github.io/stickerpicker/web/?theme=$theme as the url field.

Updating

To add more packs, simply do steps 7 and 8 again.

To update your copy of the sticker picker to the latest version, first add the upstream repo as a remote: git remote add upstream https://github.com/maunium/stickerpicker.git (this only needs to be done once). Then whenever you want to update, run git fetch upstream, git merge upstream/master and git push