Menu

Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Thursday, February 27, 2020

[GitHub] การสร้างเว็บไซต์จาก Repository บน GitHub
[GitHub] How to Create Website from Repository on GitHub

  1. สร้าง Repository บน GitHub
  2. เพิ่มไฟล์สำหรับหน้าเว็บ เช่น index.html, ไฟล์ CSS, ไฟล์ JS เป็นต้น ใน repository นั้น
  3. เข้าไปที่แท็บ Settings ของ repository นั้น
  4. เลื่อนลงไปยังส่วนของ GitHub Pages
  5. เลือก Source เป็น branch ที่เราเพิ่มไฟล์เข้าไปตามข้อ 2
  6. เรียกหน้าเว็บผ่าน URL ในรูปแบบดังนี้
  7. https://<username>.github.io/<repository_name>/<file_path>
    
    เช่น
    https://arzeroid.github.io/syntaxhighlighter_css_js/css/shThemeDefault.css