📜 제목으로 보기

스샷 레포 생성 후 토큰 생성

  1. 빈 github_id로 로그인해서 스크린샷 레포를 만든다.

    image-20220317230902061 image-20220317231006766

  2. 프로필 > Settings > Developer settings로 넘어간다. image-20220317231044509 image-20220317231116510

  3. Personal aceess tokens로 넘어와 > Generate new token을 만든다. image-20220317231202549 image-20220317231225140

    • 각종 필요한 설정을 해준다.

      • Note: 아무거나 image-20220317231322305

      • Expiration: 무기한으로

        image-20220317231340789

      • scopes

        • repo 전체 체크

        • write: packages 체크

        • admin:repo_hook 체크

        • write: discussion 체크

          image-20220317231402898 image-20220317231429258 image-20220317231511028 image-20220317231533045

      • 토큰을 챙겨놓는다.

TYPORA에 적용

image-20220317235240441

  • 서식 > 이미지 > 전역 이미지 설정

    1. when Insert : upload image로 선택

    2. [x] 로컬 이미지에 위 규칙을 적용 체크

    3. image Uploader: PicGo-Core(command line) 선택

    4. Open Config File클릭후 아래 템플릿대로 작성

      • 예시
       {
           "picBed": {
               "current": "github",
               "github": {
                   "repo": "is2js/screenshots", //변경
                   "token": "ghp_8nmOf//ymaH8bBHqXNsLRtoTHUEN8j1B6vh/", //변경
                   "path": "",
                   "customUrl": "https://raw.githubusercontent.com/is2js/screenshots/main", //변경
                   "branch": "main"
               }
           },
           "settings": {
               "showUpdateTip": true,
               "autoStart": true,
               "uploadNotification": true,
               "miniWindowOntop": true
           },
           "needReload": false,
           "picgoPlugins": {}
       }
      

사용 중 레포지토리만 교체

  • typora > 서식 > 이미지 > 전역이미지 설정 > Open config file >

    • "repo""customUrl"에서 폴더명만 바꿔주면 된다.

    • 토큰은 계속 유지중이니.. 레포만 바꿔주면 끝.

      image-20220317232429326