Skip to content

TheoreticalAstrophysicsGroup/TheoreticalAstrophysicsGroup.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Theoretical Astrophysics Group Homepage

This is the Jekyll-powered webpage repo for the Theoretical Astrophysics Group (宇宙物理理論研究室) at the Center for Computational Sciences, University of Tsukuba.

The webpage is meant to give an overview of the members, research, and activities of the group.

The site is almost entirely bilingual (English and Japanese), and the language can be switched (top right menu, or collapsible menu for portable devices) whilst staying on the same page (that is, the corresponding page in the other language is loaded).

The design of the site is based on the OpenMind Bootstrap 4 template by AGM studio.

Contributing

All members of the group are welcome to contribute via pull requests. The categories for posts are:

  • uchu-forum
  • seminars (to be renamed colloquia at some point in the near future)
  • projects
  • news
  • conferences
  • featured (possibly discontinued in the future)
  • achievements (Auto-generated ― no need to contribute)
  • members (This is actually a "collection", but it's similar to a "category")

The posts themselves are under <category name>/_posts/[ja|en]. Tags should be chosen from the entries under tags: in _data/translations.yml. This will auto-translate them. Feel free to add new tags.

In the near future the site will be linked to netlify-cms so as to allow easier gui based contributing.

Achievements

Research achievements are a collection of publications that are collated in an ADS library. The posts are semi-autogenerated with a python script that fetches images and creates yaml/html files.

Members

Member information are stored as Jekyll collections. Information of members can be found under _members/[ja|en].

Contact form

The contact form sends an email to [email protected], to which the webadmin has access.

Calendar

The calendar is a google calendar. All staff and several other people of the group (e.g. those responsible for organizing seminars and meetings) have permission to add/edit entries.

Issues

All work in progress is tracked on the Issues board. Please log any issues you encounter or enhancements you would like to see on the issues board.

Install ruby and jekyll

覚えていない。まずruby入れて、その後

  sudo gem install bundler jekyll

をする。その後もう少しなんかやった気がする。

宇宙理論研究室の1年の流れ

4月ごろ

イベント: 新入生や卒研生が新しく入ってくる。

やること: https://www2.ccs.tsukuba.ac.jp/Astro/members/ja/ のメンバーを更新する。学年が上がった人、教員も含めて全員に改めて情報を入力してもらう。

手順:

  • ローカルにて、members/ja/index.htmlmembers/en/index.htmlform_activetrueに変更する。

  • (やらなくても良いが)以下のコマンドにより、フォームボタンがメンバーページに出現しているか、ローカルで確認する。

bundle exec jekyll serve --future
  • 以下のコマンドにより、ビルドを行う。
bundle exec jekyll build --future 
  • 以下のコマンドにより、デプロイする。
cd ../ccs_version/ && rsync -Prvi ./ charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source && cd - 
  • mail_script.txtを、[email protected]宛に送り、宇宙理論研究室全員がフォーム入力を完了するのを待つ。入力されたデータはcharon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source/membersform_dataに格納される。

  • 格納されたデータのうち、.tex.encのものは、zulipでAlexに対応してもらう。

  • ローカルで、以下を実行する. 注意点として、以下のスクリプトの11行目は適宜変更すること。実行後、 __temp/new_registerd_memberに、格納されたデータのうちの.htmlファイルが入る。_membersディレクトリに、入力されたデータが加工された状態で入る (適切に加工されていないと、ページに表示されない。)。 以下のスクリプト実行後は、charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source/membersform_dataに入ったファイルを消すか別のディレクトリに入れておくと良い。(私はmembersform_data_already_registerdディレクトリを作って、ファイルを入れていた。) 追加でフォームが入力され、新しいファイルがcharonに入った場合でも、もう一度以下のスクリプトを実行すれば良い。

./get_and_set_new_member.sh
  • 全員の入力を確認したら、ローカルにて、members/ja/index.htmlmembers/en/index.htmlform_activetrueに変更する。

  • (やらなくても良いが)以下のコマンドにより、フォームボタンがメンバーページに出現しているか、ローカルで確認する。

bundle exec jekyll serve --future
  • 以下のコマンドにより、ビルドを行う。
bundle exec jekyll build --future 
  • 以下のコマンドにより、デプロイする。
cd ../ccs_version/ && rsync -Prvi ./ charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source && cd - 

イベント: グループ写真変更

やること: https://www2.ccs.tsukuba.ac.jp/Astro/home/ja/の集合写真変更

手順:

  • 写真を受け取る

  • ローカル側で、写真をassets/img/group.jpgとして保存。

  • (やらなくても良いが)以下のコマンドにより、フォームボタンがメンバーページに出現しているか、ローカルで確認する。

bundle exec jekyll serve --future
  • 以下のコマンドにより、ビルドを行う。
bundle exec jekyll build --future 
  • 以下のコマンドにより、デプロイする。
cd ../ccs_version/ && rsync -Prvi ./ charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source && cd - 

10月ごろ

イベント: 天体形成研究会

やること: https://www2.ccs.tsukuba.ac.jp/Astro/conferences/ja/の中に、天体形成研究会の情報を載せる。

手順:

  • 多分、天体形成研究会の係の人が、ローカルのconferences/_posts/en/2023-11-01-tentaikeisei.htmlみたいな感じのファイルをくれると思う。

  • (やらなくても良いが)以下のコマンドにより、フォームボタンがメンバーページに出現しているか、ローカルで確認する。

bundle exec jekyll serve --future
  • 以下のコマンドにより、ビルドを行う。
bundle exec jekyll build --future 
  • 以下のコマンドにより、デプロイする。
cd ../ccs_version/ && rsync -Prvi ./ charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source && cd - 

だいたい毎月

イベント: 宇宙フォーラム

やること: https://www2.ccs.tsukuba.ac.jp/Astro/uchu_forum/ja/に宇宙フォーラムの情報を追加。

手順:

  • ローカルで以下のコマンドを入力することで、charonのuchu_forum/uchu_forum_form/imguchu_forum/uchu_forum_form/yaml/[ja,en]から、 hogehoge.[jpg, png, etc]と20xx-xx-xx-hoge.htmlを取り出す.
mkdir -p __temp && scp -r <user_name>@charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source/uchu_forum/uchu_forum_form/yml __temp/ && scp -r <user_name>@charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source/uchu_forum/uchu_forum_form/img __temp/
  • ローカル側でuchu_forum/_posts/[ja,en]に20xx-xx-xx-hoge.htmlを配置(enに配置するやつは英訳)

  • ローカル側でassets/img/uchu_forumにhogehoge.[jpg, png, etc]をuchu-forum-20xx-xx-xx.jpgとして保存する。

  • (やらなくても良いが)以下のコマンドにより、フォームボタンがメンバーページに出現しているか、ローカルで確認する。

bundle exec jekyll serve --future
  • 以下のコマンドにより、ビルドを行う。
bundle exec jekyll build --future 
  • 以下のコマンドにより、デプロイする。
cd ../ccs_version/ && rsync -Prvi ./ charon.ccs.tsukuba.ac.jp:/home-WWW/Research/Astro/Astro_source && cd - 

FAQ

  • 変更が反映されない。 --> ブラウザのキャッシュ消して

  • エラーが出る --> 自分で頑張って。もしかしたら権限の問題かも(特に、rsyncのエラーとか。あと、charon側でphpファイルの実行するときとか、phpファイルの第三者の実行権限付与とか忘れずに)。ZulipでAlexに助けを求めるのもあり。