LoginSignup
19
16

More than 5 years have passed since last update.

GithubのWikiで画像を使用する

Posted at

前提

GithubのWikiやREADME.mdで画像を表示させたい。
でも、画像はどこに保存すれば良いのか。

結論

Wikiリポジトリで管理する。

手順

Wikiリポジトリで画像を管理

  1. GithubのWikiリポジトリ(※)をクローンする。
  2. 適当にimagesフォルダを作成したり、画像を入れたり、なんだりかんだり。
  3. コミットしてプッシュする。

(※)Wikiページのここ!
Wiki repository

画像を表示させる

(直下にimagesフォルダを作成した場合)
![リンクテキスト](images/hogehoge.png "タイトル")

ただ、このパスの指定だとプレビューでは画像が表示されない。
プレビューでも表示させたいなら、パス部分にまるっとURLを入れればOK。
https://github.com/ユーザー/リポジトリ/wiki/images/hogehoge.png

19
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
16