From 262f7e5bb53e4b8305cd6bbba78ca70766e99a43 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 16 Sep 2021 23:44:24 +0900 Subject: MDN以下の文書内のリンクURLを正規化 (#2359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /en-US へのリンクを /ja へのリンクに修正 - /ja が付いていないものに /ja を付加 - MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正 --- .../index.html | 8 ++++---- files/ja/mdn/contribute/howto/create_and_edit_pages/index.html | 8 ++++---- files/ja/mdn/contribute/howto/index.html | 2 +- .../contribute/howto/write_a_new_entry_in_the_glossary/index.html | 2 +- .../contribute/howto/write_an_api_reference/sidebars/index.html | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'files/ja/mdn/contribute/howto') diff --git a/files/ja/mdn/contribute/howto/create_an_interactive_exercise_to_help_learning_the_web/index.html b/files/ja/mdn/contribute/howto/create_an_interactive_exercise_to_help_learning_the_web/index.html index 00d20765d7..46b48385ba 100644 --- a/files/ja/mdn/contribute/howto/create_an_interactive_exercise_to_help_learning_the_web/index.html +++ b/files/ja/mdn/contribute/howto/create_an_interactive_exercise_to_help_learning_the_web/index.html @@ -15,7 +15,7 @@ translation_of: MDN/Contribute/Howto/Create_an_interactive_exercise_to_help_lear

MDN ライブサンプル

-

MDN has a very cool feature called live samples. It's a mechanism that turns any HTML, CSS, and JavaScript code inside an MDN page into its executed equivalent. Before using it, you should read over Using the live sample system, which is our complete documentation for building them. While they're easy to do, there are quirks and tricks you'll learn along the way.

+

MDN has a very cool feature called live samples. It's a mechanism that turns any HTML, CSS, and JavaScript code inside an MDN page into its executed equivalent. Before using it, you should read over Using the live sample system, which is our complete documentation for building them. While they're easy to do, there are quirks and tricks you'll learn along the way.

What is interesting is that it's really easy to tweak that feature to use it in order to embed any kind of tool or utility you want into an MDN page.

@@ -164,7 +164,7 @@ document.addEventListener('keyup', function () { \{{EmbedLiveSample('hidden_code_example', 120, 120)}} </div> -

You can see a more advance example of such a tweak on the Canvas API page.

+

You can see a more advance example of such a tweak on the Canvas API page.

Code from outside the page

@@ -178,6 +178,6 @@ document.addEventListener('keyup', function () {

Click on the following square to randomly change its color or just type a hexadecimal code color

{{EmbedLiveSample('The_example', 120, 120, '', 'MDN/Contribute/Howto/Create_an_interactive_exercise_to_help_learning_the_web/distant_example')}} -

This time, if you take a look at that page's HTML using the MDN editor, you'll see no hidden code. If you want to see the code, just go to the page that hosts it.

+

This time, if you take a look at that page's HTML using the MDN editor, you'll see no hidden code. If you want to see the code, just go to the page that hosts it.

-

You can see a more advanced example of this usage in our HTML Form tutorial, which uses this technique to allow experimentation with forms.

+

You can see a more advanced example of this usage in our HTML Form tutorial, which uses this technique to allow experimentation with forms.

diff --git a/files/ja/mdn/contribute/howto/create_and_edit_pages/index.html b/files/ja/mdn/contribute/howto/create_and_edit_pages/index.html index 7a0cf12f4c..5bc83935d3 100644 --- a/files/ja/mdn/contribute/howto/create_and_edit_pages/index.html +++ b/files/ja/mdn/contribute/howto/create_and_edit_pages/index.html @@ -56,7 +56,7 @@ translation_of: MDN/Contribute/Howto/Create_and_edit_pages

添付ファイル

-

ファイルを添付するには、特殊なユーザー権限が必要です。詳細は Attachments in the MDN editor をご覧ください。そこにアップロード権限のリクエスト方法も書かれています。

+

ファイルを添付するには、特殊なユーザー権限が必要です。詳細は Attachments in the MDN editor をご覧ください。そこにアップロード権限のリクエスト方法も書かれています。

公開、破棄、編集の続行

@@ -159,18 +159,18 @@ translation_of: MDN/Contribute/Howto/Create_and_edit_pages
  1. 既存ページのテキスト内の (意味のある) どこかの場所に新しいページの名前を入力します。
  2. -
  3. その名前をハイライトしてエディターツールバーからリンクアイコン () をクリックします。'Update Link' のダイアログが開き、 'Link To' 欄が強調されています。
  4. +
  5. その名前をハイライトしてエディターツールバーからリンクアイコン () をクリックします。'Update Link' のダイアログが開き、 'Link To' 欄が強調されています。
  6. 既定では URL 欄の最初に "/ja/docs/" が挿入されます。 "/ja/docs/" の後にページ名を入力します。ページ名はリンクテキストと同じである必要はありません。
  7. OK をクリックしてリンクを作成、挿入します。
-

ページがまだ存在しない場合、リンクは赤く表示されます。ページがすでに存在する場合、リンクは青く表示されます。新しいページを作成したいが、ページタイトルがすでに取られている場合、まずはすでにあるページの編集を助けたり改良したりするのがもっと意味があるのではないのかを確認してください。そうでない場合、新しいページに別の名前を考えてリンクを作成します。ガイドラインの page naming guide を参照してください。

+

ページがまだ存在しない場合、リンクは赤く表示されます。ページがすでに存在する場合、リンクは青く表示されます。新しいページを作成したいが、ページタイトルがすでに取られている場合、まずはすでにあるページの編集を助けたり改良したりするのがもっと意味があるのではないのかを確認してください。そうでない場合、新しいページに別の名前を考えてリンクを作成します。ガイドラインの page naming guide を参照してください。

新しいページに中身を追加するには、 (エディターを保存して閉じた後に) 作成したばかりの赤いリンクをクリックします。新しいページがエディターモードで開かれて、書き始められます。エディターモードの使用については、この記事の既存のページを編集する節を参照してください。

ページ内容の更新

-

KumaScript のマクロの MDN 対応や、他のページの内容の統合は、パフォーマンス上の理由でページをキャッシュする必要により妨げられることがあります。ページはソースから構築され、その出力は将来のリクエストのためにキャッシュされます。そのため、マクロ (テンプレート) や (Page マクロを使用した) 統合はマクロやその出力、統合された素材の内容のその後の変更が反映されません。

+

KumaScript のマクロの MDN 対応や、他のページの内容の統合は、パフォーマンス上の理由でページをキャッシュする必要により妨げられることがあります。ページはソースから構築され、その出力は将来のリクエストのためにキャッシュされます。そのため、マクロ (テンプレート) や (Page マクロを使用した) 統合はマクロやその出力、統合された素材の内容のその後の変更が反映されません。