File tree Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ Markdown 中に `<a class="handle">chokudai</a>` のように AtCoder ID を書
9696色の情報は [ _ sass/user-colors.scss] ( https://github.com/kmyk/algorithm-encyclopedia/blob/gh-pages/_sass/user-colors.scss ) ファイルに CSS として保存されています。このファイルは [ scripts/user-ratings.py] ( https://github.com/kmyk/algorithm-encyclopedia/blob/gh-pages/scripts/user-ratings.py ) によって生成されます。定期的に ` $ python3 scripts/user-ratings.py ` を実行して色の情報のファイルを更新してください。
9797
9898
99+ ## 画像ファイル
100+
101+ [ ` assets/img/ ` ] ( https://github.com/kmyk/algorithm-encyclopedia/tree/gh-pages/assets/img ) に置いてください。
102+ また、後から画像を修正する必要が発生したときのために、画像の編集方法を [ ` assets/img/README.md ` ] ( https://github.com/kmyk/algorithm-encyclopedia/tree/gh-pages/assets/img/README.md ) に書いておいてください。
103+
99104### ローカルでの記事の閲覧
100105
101106ローカルで記事を閲覧するには、以下のコマンドを順に実行してください。HTTP サーバが建ち < http://127.0.0.1:4000/ > から閲覧できます。
@@ -242,6 +247,7 @@ $ python3 scripts/lint.py
242247- リンクを張るときはリンク先の永続性に注意する。特に他人のブログ記事や競プロライブラリへのリンクを貼るときは [ Internet Archive] ( https://archive.org/web/ ) によるスナップショットを取っておく ([ Save Page Now - Wayback Machine] ( https://web.archive.org/save/ ) )。
243248- リンクを張るときはリンク先との関係が分かるようにする。例題を紹介するならば簡単な解説を書いておく。記事を紹介するならばなぜ他の記事でなくその記事が選ばれているのか分かるようにしておく。
244249- ソースコードはそのままコピペして動くものを載せる。ソースコードの妥当性は簡単に検証できるようにしておく。
250+ - 画像ファイルは後から他の人が修正しやすいような形式を選び、修正方法のドキュメントを残しておく。
245251
246252
247253## ライセンスについて
Original file line number Diff line number Diff line change 9898 a . href = baseurl . replace ( / \/ $ / , "" ) + a . pathname ;
9999 }
100100 }
101+ for ( const img of main . getElementsByTagName ( "img" ) ) {
102+ if ( new URL ( baseurl ) . host == img . src . host && ! img . src . startsWith ( baseurl ) ) {
103+ img . src = baseurl . replace ( / \/ $ / , "" ) + img . src . pathname ;
104+ }
105+ }
101106 }
102107 } ) ( ) ;
103108 </ script >
Original file line number Diff line number Diff line change 1+ # Tikz/PGF
2+ * .aux
3+ * .div
4+ * .log
5+ * .pdf
Original file line number Diff line number Diff line change 1+ # assets/img
2+
3+ ## この README.md について
4+
5+ 後から画像を修正する必要が発生したときのために、画像の編集方法をこのファイルに書いておきましょう。
You can’t perform that action at this time.
0 commit comments