Upload docusaurus local ke github pages

Tampil 09/August/2019

Bismillah...

Langsung ajah lo liat video youtube ini:

https://www.youtube.com/watch?v=dn4dgA51WNg

Jadi, Langkahnya yang gw tangkep:

  1. Buat Repository di Github
  2. Clone ke Lokal (Komputer)
  3. Install docusaurus di Folder hasil clone (di dalam foldernya), gw anggep lu tau install docusaurus
  4. Push ke master
  5. Commit ke branch
  6. $ git checkout -b gh-pages
  7. Masuk ke folder website, jalankan perintah ini:yarn run build # or `npm run build`
  8. $ git add -f website/build/nama_repo_github && git commit -m "Initial dist subtree commit"
  9. $ git subtree push --prefix website/build/nama_repo_github origin gh-pages
  10. Done. akses via: nama_username.github.io/nama_repo_github
 

Permasalahan_ke_1

Tanya: Gw Pengen Update ke Master, tapi github.io gak update?

Jawab:

  1. git branch -d the_local_branch
  2. git push origin --delete the_remote_branch
  3. Ikuti Ke-6 diatas sanpai langkah terakhir
  4. Selesai terupdate
Have a Nice Day!

source:

<ul>
 	<li>https://www.youtube.com/watch?v=dn4dgA51WNg</li>
 	<li>https://makandracards.com/makandra/621-git-delete-a-branch-local-or-remote</li>
 	<li>https://docusaurus.io/docs/en/publishing</li>
</ul>

have a nice day!