sciruby-jp.github.ioは、Rubyにおける科学技術計算/データ可視化ライブラリの現状をまとめたWebページです。
React.jsとcytoscape.jsを用いて作成しています。
以下のコマンドを実行することで、開発サーバーが起動します。
$ npm install
$ npm startsrc/contents.mdを編集することで、ページに表示されている文章を変更することができます。
ライブラリの関係性グラフは、src/ruby.json、src/python.jsonの2つのファイルから生成されています。
また、src/ruby.json、src/python.jsonの2つのファイルは、src/library_graph.jsonの内容を元に生成されています。
関係性グラフにライブラリを追加するには、src/library_graph.jsonに追記し、src/ruby.json、src/python.jsonを再生成する必要があります。
Rubyのライブラリを追加するには、src/library_graph.jsonの、"ruby_libraries"キーの中に、
{
"name": "some_ruby_library",
"github": "https://github.com/repository_owner/some_ruby_library",
"group": "computing"
},のようなHashを追記します。
また、ライブラリ間の関係を表す線を追加するには、"ruby_edges"キーの中に、
{
"source": "library_name_using_target_library",
"target": "library_name_used_by_source_library",
"description": "library description",
"type": "${depends|optional}"
},のようなHashを追記します。
これらのファイルを再生成するには、以下のコマンドを実行します。
$ npm install
$ node src/generate_json.js ${your_github_id} ${your_github_password} # githubレポジトリのスター数を取得するため