-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat: exampleタグの使う場面をドキュメントに追記 #491
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
668ce5f
feat: write example tag document
yumetodo 3c324fb
fix: move notification to the top of template
yumetodo db7b0b1
Revert "fix: move notification to the top of template"
yumetodo 5ab8c56
Revert "feat: write example tag document"
yumetodo f5a5c15
feat: rewrite notification on the top of template
yumetodo a6c520e
partial revert: 5ab8c56
yumetodo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
「概要」にサンプルコードを書くことは無いと思うので、記載の位置が変な気が
しました。で、ここじゃなくて「例」のところに書けばいいのでは?と思って
見に行くと、すでに example タグは付いてますしコメントで言及もありました。
そっちに "(ref: cppref特有の拡張構文)" を追加するだけでよかったりしませんか?
(いっしょに編集されてるほかのページもまとめての話です。)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k-satoda 本提案の主旨として、
#487 (comment)
以上の @yumetodo さんのコメントにあるように、以下のような点が背景にあります。
example
タグを付けることが望ましい(という風に僕が方針を示した)このため、説明文に関してはご指摘のように「例」だけに書かれているのでは分かりづらいので、「どこでもサンプルコードを書いてよい」という風に奨励する意図を書く必要があります。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saki7 「例」以外のコードブロックにも example をつけるおねがいは
いっしょに追加されてる example タグの説明に書かれているので、
新しく編集する人も「cpprefjpを編集するには」→「cpprefjp特有の拡張構文」
と読み進めれば拾えるようにはなっていそうです。
「新規ページ作成者さんが必ず読むところに重ねての注意が欲しい」という
ことなら文書構造とは関係ない話なので「概要」の一部として書くのではなく
テンプレ先頭に上記文書への参照を置いたほうがいいんじゃないかと思いました。
「どこでも~」という意図を考えてもやっぱり「概要」の中で言及することは
合わないように思います。現状の「例」でのみ言及されている状態を問題とする
なら「概要」と「例」でのみ言及されている状態にしても解決とはいえなさそうで。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あります。
ex.)
# page_title (ページのタイトルです)
これの直下に、ということですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
僕は現状の書き方でもOKですが、 @k-satoda さんの指摘のように記載場所に違和感があるということも少し分かります。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yumetodo なるほど、概要を示すにあたって多少長くなってでも
コードを示したほうが手っ取り早いことはありますね。気づいてませんでした。
「テンプレ先頭に」はタイトルよりも上のつもりでした。タイトルの書き方に
関する情報が参照先の文書に載っててもおかしくはないと思いますし。
ただし、機械処理とか、なんか支障が出るようなら下でもいいと思います。