Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove type_label, such as "instance method", from <title> for methods #95

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

pocke
Copy link
Member

@pocke pocke commented Jan 8, 2020

Close #93

インスタンスメソッドやクラスメソッドの個別のページの<title>タグから、"instance method"や"singleton method"という表記を取り除きます。
これによってClass#methodのような表記が<title>の先頭に来るので、検索結果を見た時やブラウザのタブでの表示が見やすくなるのではと思います。

なお、このPRでは<body>の中には変更がありません。
たとえば、青い帯の中のタイトルは変更しておらず、従来どおり"instance method"などが表示されています。

200108201516

また、メソッド以外のページ(クラス、モジュール、Cの関数など)は変更していません。
これらは文字が充分短い(class, module, function, macro)ですし、取り除いてしまうと例えばクラスとモジュールの区別がつかなくなってしまいます。
対してメソッドの場合はArray.[]Array#[]のように記号で区別がつくようになっています。
まあこの記号の意味を知らないと区別がつかないのですが、ページにアクセスすれば区別できるし許容できるかなと思っています。

ブラウザのタブの例

before

200108201312

after

200108201326

@pocke pocke merged commit 883d4f6 into rurema:master Jan 14, 2020
@pocke pocke deleted the make-short-title branch January 14, 2020 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

meta情報のtitleから"instance method"などの表記をなくしたい
2 participants