{"title":"ドキュメントを書く","version":"6.1","locale":"ja","docname":"internals/contributing/writing-documentation","url":"/ja/6.1/internals/contributing/writing-documentation/","canonical":"https://djangodocs.dev/ja/6.1/internals/contributing/writing-documentation/","summary":"私たちはドキュメントの一貫性と読みやすさを重要視しています。結局のところ、Django はジャーナリズムの環境で作られました！ですから、私たちはコードを扱うようにドキュメントを扱います。できるだけ頻繁に改善することを目指しています。 ドキュメンテーションの変更には、一般的に2つの形式があります: 全般的な改善:…","html":"<h1>ドキュメントを書く<a class=\"heading-anchor\" href=\"#writing-documentation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>私たちはドキュメントの一貫性と読みやすさを重要視しています。結局のところ、Django はジャーナリズムの環境で作られました！ですから、私たちはコードを扱うようにドキュメントを扱います。できるだけ頻繁に改善することを目指しています。</p>\n<p>ドキュメンテーションの変更には、一般的に2つの形式があります:</p>\n<ul class=\"simple\">\n<li><p>全般的な改善: 誤字脱字の修正、エラーの修正、より分かりやすい文章とより多くの例による説明の改善。</p></li>\n<li><p>新機能: 前回のリリース以降にフレームワークに追加された機能のドキュメントです。</p></li>\n</ul>\n<p>このセクションでは、ライターが最も有用でミスの少ない方法で文書の変更を行う方法について説明します。</p>\n<section id=\"the-django-documentation-process\">\n<h2>Django のドキュメント作成プロセス<a class=\"heading-anchor\" href=\"#the-django-documentation-process\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Django のドキュメントは、 <a class=\"reference external\" href=\"https://docs.djangoproject.com/\">https://docs.djangoproject.com/</a> で HTML として読まれることを想定していますが、柔軟性を最大にするために、 reStructuredText マークアップ言語で書かれたプレーンテキストファイルの集合として編集しています。</p>\n<p>私たちは開発版のリポジトリで作業します。なぜなら、最新かつ最高のドキュメントがあり、最新かつ最高のコードがあるからです。</p>\n<p>また、マージャーの判断で、ドキュメントの修正や改良を最後のリリースブランチにバックポートします。これは、最終リリースのドキュメントが最新で正しい方が有利だからです (<a class=\"reference internal\" href=\"/ja/6.1/intro/whatsnext/#differences-between-doc-versions\"><span class=\"std std-ref\">バージョンごとの違い</span></a> を参照してください)。</p>\n<p>Django のドキュメンテーションは <a class=\"reference external\" href=\"https://www.sphinx-doc.org/\">Sphinx</a> ドキュメンテーションシステムを使っ ており、<a class=\"reference external\" href=\"https://docutils.sourceforge.io/\">docutils</a> をベースにしています。基本的な考え方は、軽く整形されたプレーンテキストのドキュメントを HTML や PDF などの出力形式に変換するというものです。</p>\n<p>Sphinxには <code class=\"docutils literal notranslate\"><span class=\"pre\">sphinx-build</span></code> コマンドがあり、 reStructuredText を他のフォーマット、例えば HTML や PDF に変換できます。このコマンドは設定可能ですが、Djangoのドキュメンテーションには <code class=\"docutils literal notranslate\"><span class=\"pre\">Makefile</span></code> があり、より短い <code class=\"docutils literal notranslate\"><span class=\"pre\">make</span> <span class=\"pre\">html</span></code> コマンドを提供しています。</p>\n</section>\n<section id=\"how-the-documentation-is-organized\">\n<h2>ドキュメントの構成<a class=\"heading-anchor\" href=\"#how-the-documentation-is-organized\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>ドキュメントはいくつかのカテゴリーに分類されています:</p>\n<ul>\n<li><p><a class=\"reference internal\" href=\"/ja/6.1/intro/\"><span class=\"doc\">チュートリアル</span></a> は、何かを作るための一連のステップを読者に手取り足取り教えてくれます。</p>\n<p>チュートリアルで重要なことは、読者に自信を持たせるために、できればできるだけ早い段階で、何か役に立つことを達成させることです。</p>\n<p>解決しようとしている問題の性質を説明することで、読者がこれから達成しようとしていることを理解できるようにしてください。物事がどう機能するかについての説明から始める必要はありません。重要なのは読者が何をするかであり、あなたが説明する内容ではありません。行ったことを振り返り、その後で説明することは時に有用です。</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ja/6.1/topics/\"><span class=\"doc\">トピックガイド</span></a> は、概念や主題をかなり高いレベルで説明することを目的としています。</p>\n<p>参考資料を繰り返すのではなく、リンクさせましょう。自分にとっては基本的なことでも、他の人には必要な説明かもしれません。</p>\n<p>背景となる文脈を提供することで、初心者がトピックをすでに知っている事柄と結びつけることができます。</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ja/6.1/ref/\"><span class=\"doc\">リファレンスガイド</span></a> には API の技術的なリファレンスが含まれています。Django の内部的な仕組みや使い方を説明しています。</p>\n<p>参考資料は主題にしっかりと焦点を絞ってください。読者はすでに基本的な概念を理解しているが、 Django がどのようにそれを行うかを知るか、思い出す必要があると仮定してください。</p>\n<p>リファレンスガイドは、一般的な説明をする場所ではありません。基本的な概念を説明する場合は、その資料をトピックガイドに移すとよいでしょう。</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ja/6.1/howto/\"><span class=\"doc\">How-to ガイド</span></a> は鍵となる主題に関して、いくつかのステップを踏んで説明しているレシピ集です。</p>\n<p>ハウツーガイドで最も重要なのは、ユーザが何を達成したいかです。ハウツーは常に、 Django が何をどのように実装しているかという内部的な詳細に焦点を当てるよりも、結果指向であるべきです。</p>\n<p>これらのガイドはチュートリアルよりも高度で、Django がどのように動作するかについて、ある程度の知識があることを前提としています。読者はチュートリアルに従ったことがあると仮定し、同じ内容を繰り返すのではなく、適切なチュートリアルに戻ることを躊躇しないでください。</p>\n</li>\n</ul>\n</section>\n<section id=\"how-to-start-contributing-documentation\">\n<h2>ドキュメントの寄稿を始めるには<a class=\"heading-anchor\" href=\"#how-to-start-contributing-documentation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<section id=\"clone-the-django-repository-to-your-local-machine\">\n<h3>Django リポジトリをローカルマシンにクローンします。<a class=\"heading-anchor\" href=\"#clone-the-django-repository-to-your-local-machine\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>ドキュメントへの貢献を始めたい場合は、ソースコードリポジトリから Django の開発版を入手してください (<a class=\"reference internal\" href=\"/ja/6.1/topics/install/#installing-development-version\"><span class=\"std std-ref\">開発バージョンをインストールする</span></a> を参照してください):</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-0-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>git<span class=\"w\"> </span>clone<span class=\"w\"> </span>https://github.com/django/django.git\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-0-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> git clone https://github.com/django/django.git\n</code></pre></div></div></div>\n<p>これらの変更を提出するつもりなら、代わりに Django リポジトリをフォークして、このフォークをクローンすると便利かもしれません。</p>\n</section>\n<section id=\"set-up-a-virtual-environment-and-install-dependencies\">\n<h3>仮想環境のセットアップと依存関係のインストール<a class=\"heading-anchor\" href=\"#set-up-a-virtual-environment-and-install-dependencies\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>仮想環境を作成してアクティブにし、依存関係をインストールします:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>venv<span class=\"w\"> </span>.venv\n$<span class=\"w\"> </span><span class=\"nb\">source</span><span class=\"w\"> </span>.venv/bin/activate\n$<span class=\"w\"> </span>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>-r<span class=\"w\"> </span>docs/requirements.txt\n</code></pre></div>\n</section>\n<section id=\"build-the-documentation-locally\">\n<span id=\"build-documentation-locally\"></span><h3>ドキュメントをローカルでビルドする<a class=\"heading-anchor\" href=\"#build-the-documentation-locally\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> ディレクトリから HTML 出力をビルドできます:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-1-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span><span class=\"nb\">cd</span><span class=\"w\"> </span>docs\n<span class=\"gp\">$ </span>make<span class=\"w\"> </span>html\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-1-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> <span class=\"k\">cd</span> docs\n<span class=\"gp\">...\\&gt;</span> make.bat html\n</code></pre></div></div></div>\n<p>ローカルにビルドされたドキュメントは <code class=\"docutils literal notranslate\"><span class=\"pre\">_build/html/index.html</span></code> にアクセスできるようになり、どのウェブブラウザでも閲覧できるようになりますが、 <a class=\"reference external\" href=\"https://docs.djangoproject.com/\">docs.djangoproject.com</a> にあるドキュメントとは異なるテーマで表示されます。これはOKです！あなたのローカルマシンで変更がうまくいけば、 ウェブサイトでもうまくいくでしょう。</p>\n<section id=\"automating-documentation-rebuilds\">\n<h4>Automating documentation rebuilds<a class=\"heading-anchor\" href=\"#automating-documentation-rebuilds\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p><a class=\"extlink-pypi reference external\" href=\"https://pypi.org/project/sphinx-autobuild/\">sphinx-autobuild</a> can be used to automatically rebuild the documentation\nand reload the documentation page in the browser whenever a file changes. To\nenable auto-reloading:</p>\n<ol class=\"arabic\">\n<li><p>Install the package:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-2-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>sphinx-autobuild\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-2-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> py -m pip install sphinx-autobuild\n</code></pre></div></div></div>\n</li>\n<li><p>From the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory, run one of the following commands:</p>\n<ul>\n<li><p>On Linux and macOS:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span><span class=\"nv\">SPHINXBUILD</span><span class=\"o\">=</span>sphinx-autobuild<span class=\"w\"> </span><span class=\"nv\">SPHINXOPTS</span><span class=\"o\">=</span><span class=\"s2\">&quot;--open-browser --delay 0&quot;</span><span class=\"w\"> </span>make<span class=\"w\"> </span>html\n</code></pre></div>\n</li>\n<li><p>On Windows (Command Prompt):</p>\n<div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows code\"><code><span class=\"gp\">...\\&gt;</span> <span class=\"k\">set</span> <span class=\"nv\">SPHINXBUILD</span><span class=\"p\">=</span>sphinx-autobuild\n<span class=\"gp\">...\\&gt;</span> <span class=\"k\">set</span> <span class=\"nv\">SPHINXOPTS</span><span class=\"p\">=</span>--open-browser --delay 0\n<span class=\"gp\">...\\&gt;</span> make html\n</code></pre></div>\n</li>\n<li><p>On Windows (PowerShell):</p>\n<div class=\"code-block\" data-language=\"powershell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Powershell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Powershell code\"><code><span class=\"n\">PS</span><span class=\"p\">&gt;</span> <span class=\"nv\">$env:SPHINXBUILD</span><span class=\"p\">=</span><span class=\"s2\">&quot;sphinx-autobuild&quot;</span>\n<span class=\"n\">PS</span><span class=\"p\">&gt;</span> <span class=\"nv\">$env:SPHINXOPTS</span><span class=\"p\">=</span><span class=\"s2\">&quot;--open-browser --delay 0&quot;</span>\n<span class=\"n\">PS</span><span class=\"p\">&gt;</span> <span class=\"n\">make</span> <span class=\"n\">html</span>\n</code></pre></div>\n</li>\n</ul>\n<p>Alternatively, <code class=\"docutils literal notranslate\"><span class=\"pre\">sphinx-autobuild</span></code> can be invoked directly:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-3-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>sphinx-autobuild<span class=\"w\"> </span>.<span class=\"w\"> </span>_build/html<span class=\"w\"> </span>--open-browser<span class=\"w\"> </span>--delay<span class=\"w\"> </span><span class=\"m\">0</span>\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-3-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> sphinx-autobuild . _build\\html --open-browser --delay 0\n</code></pre></div></div></div>\n</li>\n</ol>\n<p>The auto-reloader can be stopped with <code class=\"docutils literal notranslate\"><span class=\"pre\">Ctrl+C</span></code>.</p>\n</section>\n</section>\n<section id=\"making-edits-to-the-documentation\">\n<h3>ドキュメントの編集<a class=\"heading-anchor\" href=\"#making-edits-to-the-documentation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>ソースファイルは <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/</span></code> ディレクトリにある <code class=\"docutils literal notranslate\"><span class=\"pre\">.txt</span></code> ファイルです。</p>\n<p>これらのファイルはreStructuredTextマークアップ言語で書かれています。マークアップを学ぶには <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html#rst-index\" title=\"(in Sphinx v9.1.1)\"><span class=\"xref std std-ref\">reStructuredText reference</span></a> を参照してください。</p>\n<p>このページを編集するには、例えば <a class=\"extlink-source reference external\" href=\"https://github.com/django/django/blob/stable/6.1.x/docs/internals/contributing/writing-documentation.txt\">docs/internals/contributing/writing-documentation.txt</a> というファイルを編集し、 <code class=\"docutils literal notranslate\"><span class=\"pre\">make</span> <span class=\"pre\">html</span></code> でHTMLを再構築します。</p>\n</section>\n<section id=\"documentation-quality-checks\">\n<span id=\"documentation-checks\"></span><h3>Documentation quality checks<a class=\"heading-anchor\" href=\"#documentation-quality-checks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Several checks help maintain Django's documentation quality, including\n<a class=\"reference internal\" href=\"#documentation-spelling-check\"><span class=\"std std-ref\">spelling</span></a>,\n<a class=\"reference internal\" href=\"#documentation-code-block-format-check\"><span class=\"std std-ref\">code block formatting</span></a>, and\n<a class=\"reference internal\" href=\"#documentation-lint-check\"><span class=\"std std-ref\">documentation style</span></a>.</p>\n<p>These checks are run automatically in CI and must pass before documentation\nchanges can be merged. They can also be run locally with a single command:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-4-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>check\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-4-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat check\n</code></pre></div></div></div>\n<p>This command runs all current checks and will include any new checks added in\nthe future.</p>\n<section id=\"spelling-check\">\n<span id=\"documentation-spelling-check\"></span><h4>スペルチェック<a class=\"heading-anchor\" href=\"#spelling-check\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Before you commit your docs, it's a good idea to run the spelling checker.\nYou'll need to install <a class=\"extlink-pypi reference external\" href=\"https://pypi.org/project/sphinxcontrib-spelling/\">sphinxcontrib-spelling</a> first. The spell checker\nalso requires a system-level spell checking backend such as <a class=\"reference external\" href=\"http://aspell.net/\">Aspell</a>. Then from the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory, run:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-5-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>spelling\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-5-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat spelling\n</code></pre></div></div></div>\n<p>Wrong words (if any) along with the file and line number where they occur will\nbe saved to <code class=\"docutils literal notranslate\"><span class=\"pre\">_build/spelling/output.txt</span></code>.</p>\n<p>誤検出（実際には正しいのに検出されたエラー）が発生した場合は、以下のいずれかを行ってください:</p>\n<ul class=\"simple\">\n<li><p>Surround inline code or brand/technology names with double grave accents\n(``)</p></li>\n<li><p>スペルチェッカーが認識する同義語を探します。</p></li>\n<li><p>あなたが使っている単語が正しいと確信できる場合のみ、その単語を <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/spelling_wordlist</span></code> に追加してください（リストはアルファベット順にしてください）。</p></li>\n</ul>\n</section>\n<section id=\"code-block-format-check\">\n<span id=\"documentation-code-block-format-check\"></span><h4>Code block format check<a class=\"heading-anchor\" href=\"#code-block-format-check\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>All Python code blocks should be formatted using the <a class=\"extlink-pypi reference external\" href=\"https://pypi.org/project/blacken-docs/\">blacken-docs</a>\nauto-formatter. This is automatically run by the <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/coding-style/#coding-style-pre-commit\"><span class=\"std std-ref\">pre-commit hook</span></a> if configured.</p>\n<p>The check can also be run manually: provided that <code class=\"docutils literal notranslate\"><span class=\"pre\">blacken-docs</span></code> is\ninstalled, run the following command from the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-6-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>black\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-6-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat black\n</code></pre></div></div></div>\n<p>The formatter will report any issues by printing them to the terminal and will\nreformat code blocks where possible.</p>\n</section>\n<section id=\"documentation-lint-check\">\n<span id=\"id3\"></span><h4>Documentation lint check<a class=\"heading-anchor\" href=\"#documentation-lint-check\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Django's documentation is checked for reStructuredText style and formal issues\nusing <a class=\"extlink-pypi reference external\" href=\"https://pypi.org/project/sphinx-lint/\">sphinx-lint</a>. This helps catch problems like stray tabs, trailing\nwhitespace, excessive line length, and similar formatting problems.</p>\n<p>Once <code class=\"docutils literal notranslate\"><span class=\"pre\">sphinx-lint</span></code> is installed, the check can be run with the following\ncommand from the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-7-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>lint\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-7-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat lint\n</code></pre></div></div></div>\n<p>The command prints any violations to the terminal in the form\n<code class=\"docutils literal notranslate\"><span class=\"pre\">path:line:</span> <span class=\"pre\">message</span></code>. If problems are encountered:</p>\n<ul class=\"simple\">\n<li><p>Read the message and fix the indicated issue (for example, remove trailing\nwhitespace, adjust backticks, or replace tabs with spaces).</p></li>\n<li><p>For long lines consider wrapping text onto new lines or breaking long inline\nlinks into named references. The custom line length check should already skip\ncommon false positives such as headings, tables and long links.</p></li>\n</ul>\n</section>\n</section>\n<section id=\"link-check\">\n<span id=\"documentation-link-check\"></span><h3>リンクの確認<a class=\"heading-anchor\" href=\"#link-check\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Links in documentation can become broken or changed such that they are no\nlonger the canonical link. Sphinx provides a builder that can check whether the\nlinks in the documentation are working. From the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory, run:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-8-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>linkcheck\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-8-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat linkcheck\n</code></pre></div></div></div>\n<p>Output is printed to the terminal, but can also be found in\n<code class=\"docutils literal notranslate\"><span class=\"pre\">_build/linkcheck/output.txt</span></code> and <code class=\"docutils literal notranslate\"><span class=\"pre\">_build/linkcheck/output.json</span></code>.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">警告</p>\n<p>The execution of the command requires an internet connection and takes\nseveral minutes to complete, because the command tests all the links\nthat are found in the documentation.</p>\n</aside>\n<p>ステータスが &quot;working &quot;のエントリーは問題ありませんが、&quot;unchecked &quot;または &quot;ignored &quot;のエントリーは、チェックできないか、設定の無視ルールにマッチしているため、スキップされています。</p>\n<p>ステータスが &quot;broken&quot; のエントリは修正する必要があります。 &quot;redirected&quot; のステータスを持つものは、正規の場所を指すように更新する必要があるかもしれません。例えば、スキームが <code class=\"docutils literal notranslate\"><span class=\"pre\">http://</span></code> → <code class=\"docutils literal notranslate\"><span class=\"pre\">https://</span></code> に変更された場合などです。場合によっては、&quot;redirected&quot; リンクを更新したくないこともあります。例えば、常にドキュメントの最新版や安定版を指すように書き換えたい場合などです。例えば、 <code class=\"docutils literal notranslate\"><span class=\"pre\">/en/stable/</span></code> → <code class=\"docutils literal notranslate\"><span class=\"pre\">/en/3.2/</span></code> のようにです。</p>\n</section>\n</section>\n<section id=\"writing-style\">\n<h2>執筆スタイル<a class=\"heading-anchor\" href=\"#writing-style\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>&quot;セッション・クッキーを持つユーザ&quot; のような、仮想的な人物を指して代名詞を使うときは、下記のようなものの代わりに、性別に中立な代名詞(they/their/them)を使うべきです。:</p>\n<ul class=\"simple\">\n<li><p>he や she... they を使います。</p></li>\n<li><p>him や her... them を使います。</p></li>\n<li><p>his や her... their を使います。</p></li>\n<li><p>his や hers... theirs を使います。</p></li>\n<li><p>himself や herself... themselves を使います。</p></li>\n</ul>\n<p>「簡単に」、「単に」、「ただ」、「単に」、「単純に」など、作業や操作の難しさを最小化するような言葉はなるべく使わないようにしましょう。人々の経験とあなたの期待とは一致しないかもしれませんし、暗示されているような「簡単な」「単純な」ステップを見つけられなかったときに、不満を抱くかもしれません。</p>\n</section>\n<section id=\"commonly-used-terms\">\n<h2>よく使われる用語<a class=\"heading-anchor\" href=\"#commonly-used-terms\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>ここでは、ドキュメントの中でよく使われる用語についてのスタイルガイドラインを示します:</p>\n<ul class=\"simple\">\n<li><p><strong>Django</strong> -- このフレームワークを指すときは、Django を大文字にします。Python のコードと djangoproject.com のロゴの中だけ小文字です。</p></li>\n<li><p><strong>email</strong> -- ハイフンなし。</p></li>\n<li><p><strong>HTTP</strong> -- 予想される発音は &quot;Aitch Tee Tee Pee &quot;なので、&quot;a &quot;ではなく &quot;an &quot;を前に置くべきです。</p></li>\n<li><p><strong>MySQL</strong>, <strong>PostgreSQL</strong>, <strong>SQLite</strong></p></li>\n<li><p><strong>SQL</strong> -- SQLを指す場合、&quot;sequel &quot;ではなく、&quot;Ess Queue Ell &quot;と発音します。したがって、&quot;Returns an SQL expression &quot;のようなフレーズでは、&quot;SQL &quot;の前に &quot;an &quot;を付けるべきであり、&quot;a &quot;を付けるべきではありません。</p></li>\n<li><p><strong>Python</strong> -- 言語を指すときは、Pythonを大文字にします。</p></li>\n<li><p><strong>realize</strong>, <strong>customize</strong>, <strong>initialize</strong> など。接尾辞は &quot;ise&quot; ではなく、アメリカの &quot;ize&quot; を使います。</p></li>\n<li><p><strong>subclass</strong> -- 動詞（「そのモデルをサブクラス化する」）としても名詞（「サブクラスを作成する」）としても、ハイフンなしの1語です。</p></li>\n<li><p><strong>the web</strong>, <strong>web framework</strong> -- 大文字ではありません。</p></li>\n<li><p><strong>website</strong> -- 大文字にせず、1語にしてください。</p></li>\n</ul>\n</section>\n<section id=\"django-specific-terminology\">\n<h2>Django 特有の用語<a class=\"heading-anchor\" href=\"#django-specific-terminology\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<ul class=\"simple\">\n<li><p><strong>model</strong> -- 大文字ではありません。</p></li>\n<li><p><strong>template</strong> -- 大文字ではありません。</p></li>\n<li><p><strong>URLconf</strong> -- &quot;conf &quot;の前にはスペースを入れず、大文字を3文字使います。</p></li>\n<li><p><strong>view</strong> -- 大文字ではありません。</p></li>\n</ul>\n</section>\n<section id=\"guidelines-for-restructuredtext-files\">\n<h2>reStructuredText ファイルのガイドライン<a class=\"heading-anchor\" href=\"#guidelines-for-restructuredtext-files\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>このガイドラインは、reST（reStructuredText）文書の書式を規定しています:</p>\n<ul>\n<li><p>セクションのタイトルでは、最初の単語と固有名詞のみ先頭を大文字にします。</p></li>\n<li><p>コード例が2行に分割されると著しく読みにくくなる場合や、その他の正当な理由がある場合を除き、ドキュメントは80文字の幅で折り返します。</p></li>\n<li><p>ドキュメントを書いたり編集したりするときに心に留めておくべきことは、セマンティックなマークアップは多ければ多いほど良いということです。よって:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code>Add <span class=\"s\">``django.contrib.auth``</span> to your <span class=\"s\">``INSTALLED_APPS``</span>...\n</code></pre></div>\n<p>このように書くより、次のように書くほうが役立ちます:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code>Add <span class=\"na\">:mod:</span><span class=\"nv\">`django.contrib.auth`</span> to your <span class=\"na\">:setting:</span><span class=\"nv\">`INSTALLED_APPS`</span>...\n</code></pre></div>\n<p>これは、Sphinxが後者のために適切なリンクを生成してくれるからです。</p>\n<p>ターゲットの前に <code class=\"docutils literal notranslate\"><span class=\"pre\">~</span></code> (チルダ) を付けると、そのパスの「最後の部分」だけを取得できます。つまり、 <code class=\"docutils literal notranslate\"><span class=\"pre\">:mod:`~django.contrib.auth`</span></code> は &quot;auth&quot; というタイトルのリンクを表示します。</p>\n</li>\n<li><p>PythonとSphinxのドキュメントを参照するには、 <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#module-sphinx.ext.intersphinx\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">intersphinx</span></code></a> を使用してください。</p></li>\n<li><p>リテラルブロックには <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">&lt;lang&gt;</span></code> を追加して、ハイライトされるようにします。 <code class=\"docutils literal notranslate\"><span class=\"pre\">::</span></code> （2つのコロン）を使用した自動ハイライトに頼るほうがいいでしょう。これには、コードに無効な構文が含まれていてハイライトされないような場合に利点があります。たとえば <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">python</span></code> を追加すると、無効な構文があっても強制的にハイライトされます。</p></li>\n<li><p>可読性を向上させるために、 <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">note::</span></code> の代わりに <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">admonition::</span> <span class=\"pre\">Descriptive</span> <span class=\"pre\">title</span></code> を使用してください。これらのボックスは控えめに使用してください。</p></li>\n<li><p>これらの見出しスタイルを使用してください:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"gh\">===</span>\n<span class=\"gh\">One</span>\n<span class=\"gh\">===</span>\n\n<span class=\"gh\">Two</span>\n<span class=\"gh\">===</span>\n\n<span class=\"gh\">Three</span>\n<span class=\"gh\">-----</span>\n\n<span class=\"gh\">Four</span>\n<span class=\"gh\">~~~~</span>\n\n<span class=\"gh\">Five</span>\n<span class=\"gh\">^^^^</span>\n</code></pre></div>\n</li>\n<li><p>Use <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-rfc\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">:rfc:</span></code></a> to reference a Request for Comments (RFC) and\ntry to link to the relevant section if possible. For example, use\n<code class=\"docutils literal notranslate\"><span class=\"pre\">:rfc:`2324#section-2.3.2`</span></code> or\n<code class=\"docutils literal notranslate\"><span class=\"pre\">:rfc:`Custom</span> <span class=\"pre\">link</span> <span class=\"pre\">text</span> <span class=\"pre\">&lt;2324#section-2.3.2&gt;`</span></code>.</p></li>\n<li><p>Python Enhancement Proposal (PEP) を参照するには <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-pep\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">:pep:</span></code></a> を使い、可能であれば関連するセクションにリンクするようにしてください。例えば、 <code class=\"docutils literal notranslate\"><span class=\"pre\">:pep:`20#easter-egg`</span></code> や <code class=\"docutils literal notranslate\"><span class=\"pre\">:pep:`Easter</span> <span class=\"pre\">Egg</span> <span class=\"pre\">&lt;20#easter-egg&gt;`</span></code> を使います。</p></li>\n<li><p>コードの例で値が引用符で囲まれていない限り、MIMEタイプを参照するには <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-mimetype\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">:mimetype:</span></code></a> を使用します。</p></li>\n<li><p>環境変数を参照するには <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/referencing.html#role-envvar\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">:envvar:</span></code></a> を使います。また、 <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/domains/standard.html#directive-envvar\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-dir docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">envvar::</span></code></a> を使って、その環境変数のドキュメントへの参照を定義する必要があるかもしれません。</p></li>\n<li><p>Use <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-cve\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">:cve:</span></code></a> to reference a Common Vulnerabilities and\nExposures (CVE) identifier. For example, use <code class=\"docutils literal notranslate\"><span class=\"pre\">:cve:`2019-14232`</span></code>.</p></li>\n<li><p>When documenting Python objects (classes, methods, attributes, etc.) using\n<a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html\">Sphinx directives</a> such as <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">class::</span></code>, <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">method::</span></code>, and\n<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">attribute::</span></code>, all content must be properly indented to ensure correct\nrendering and to support features like automatic table of contents\ngeneration.</p>\n<p>Follow these rules:</p>\n<ul class=\"simple\">\n<li><p>The directive itself remains flush with the left margin (no indentation).</p></li>\n<li><p>All descriptive text under the directive must be indented by 4 spaces.</p></li>\n<li><p>Multi-line descriptions must keep the same indentation level.</p></li>\n<li><p>Nested directives (for example, methods inside a class) require an\nadditional 4 spaces of indentation to maintain hierarchy.</p></li>\n<li><p>Field lists (such as <code class=\"docutils literal notranslate\"><span class=\"pre\">:param:</span></code>, <code class=\"docutils literal notranslate\"><span class=\"pre\">:returns:</span></code>, etc.) must align with the\ndirective's content level.</p></li>\n</ul>\n<p>Example:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">class</span><span class=\"p\">::</span> MyClass\n\n    A brief description of the class.\n\n<span class=\"p\">    ..</span> <span class=\"ow\">method</span><span class=\"p\">::</span> my_method(arg1, arg2)\n\n        Method description.\n\n        <span class=\"nc\">:param arg1:</span> Description of the first parameter\n        <span class=\"nc\">:param arg2:</span> Description of the second parameter\n\n<span class=\"p\">    ..</span> <span class=\"ow\">attribute</span><span class=\"p\">::</span> my_attribute\n\n        Attribute description.\n</code></pre></div>\n</li>\n</ul>\n</section>\n<section id=\"django-specific-markup\">\n<h2>Django 固有のマークアップ<a class=\"heading-anchor\" href=\"#django-specific-markup\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p><a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html#rst-index\" title=\"(in Sphinx v9.1.1)\"><span class=\"xref std std-ref\">Sphinx's built-in markup</span></a> 以外にも、Djangoドキュメントではいくつかの追加拡張を利用しています：</p>\n<ul>\n<li><p>設定:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">setting</span><span class=\"p\">::</span> INSTALLED_APPS\n</code></pre></div>\n<p>設定にリンクするには <code class=\"docutils literal notranslate\"><span class=\"pre\">:setting:`INSTALLED_APPS`</span></code> を使用します。</p>\n</li>\n<li><p>テンプレートタグ:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">templatetag</span><span class=\"p\">::</span> regroup\n</code></pre></div>\n<p>リンクするには <code class=\"docutils literal notranslate\"><span class=\"pre\">:ttag:`regroup`</span></code> を使います。</p>\n</li>\n<li><p>テンプレートフィルタ:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">templatefilter</span><span class=\"p\">::</span> linebreaksbr\n</code></pre></div>\n<p>リンクするには <code class=\"docutils literal notranslate\"><span class=\"pre\">:tfilter:`linebreaksbr`</span></code> を使います。</p>\n</li>\n<li><p>フィールドのルックアップ (例 <code class=\"docutils literal notranslate\"><span class=\"pre\">Foo.objects.filter(bar__exact=whatever)</span></code>):</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">fieldlookup</span><span class=\"p\">::</span> exact\n</code></pre></div>\n<p>リンクするには <code class=\"docutils literal notranslate\"><span class=\"pre\">:lookup:`exact`</span></code> を使います。</p>\n</li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">dango-admin</span></code> コマンド:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">django-admin</span><span class=\"p\">::</span> migrate\n</code></pre></div>\n<p>リンクするには <code class=\"docutils literal notranslate\"><span class=\"pre\">:djadmin:`migrate`</span></code> を使用します。</p>\n</li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">django-admin</span></code> のコマンドラインオプション:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">django-admin-option</span><span class=\"p\">::</span> --traceback\n</code></pre></div>\n<p>リンクするには、 <code class=\"docutils literal notranslate\"><span class=\"pre\">:option:`command_name</span> <span class=\"pre\">--traceback`</span></code> を使います（ <code class=\"docutils literal notranslate\"><span class=\"pre\">--verbosity</span></code> のようなすべてのコマンドに共通するオプションの場合は <code class=\"docutils literal notranslate\"><span class=\"pre\">command_name</span></code> を省略することもできます）。</p>\n</li>\n<li><p>Trac チケットへのリンク (通常、パッチリリースノート用に予約されています):</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"na\">:ticket:</span><span class=\"nv\">`12345`</span>\n</code></pre></div>\n</li>\n</ul>\n<p>Django's documentation uses a custom <code class=\"docutils literal notranslate\"><span class=\"pre\">console</span></code> directive for documenting\ncommand-line examples involving <code class=\"docutils literal notranslate\"><span class=\"pre\">django-admin</span></code>, <code class=\"docutils literal notranslate\"><span class=\"pre\">manage.py</span></code>, <code class=\"docutils literal notranslate\"><span class=\"pre\">python</span></code>,\netc. In the HTML documentation, it renders a two-tab UI, with one tab showing\na Unix-style command prompt and a second tab showing a Windows prompt.</p>\n<p>例えば、次のような断片を:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code>use this command:\n\n<span class=\"p\">..</span> <span class=\"ow\">code-block</span><span class=\"p\">::</span> console\n\n    $ python manage.py shell\n</code></pre></div>\n<p>このように置き換えることができます:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code>use this command:\n\n<span class=\"p\">..</span> <span class=\"ow\">console</span><span class=\"p\">::</span>\n\n    $ python manage.py shell\n</code></pre></div>\n<p>下記の2点に注意してください:</p>\n<ul class=\"simple\">\n<li><p>通常、 <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">console</span></code> ディレクティブの出現箇所を置き換えることになります。</p></li>\n<li><p>コード例の実際の内容を変更する必要はありません。Unixライクな環境（つまり、 <code class=\"docutils literal notranslate\"><span class=\"pre\">'$'</span></code> というプロンプト記号、ファイルシステムパスコンポーネントの区切りとしての <code class=\"docutils literal notranslate\"><span class=\"pre\">'/'</span></code> など）を前提にしたまま記述します。</p></li>\n</ul>\n<p>上の例では、2つのタブを持つコード例ブロックがレンダリングされます。最初のタブは:</p>\n<div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>python<span class=\"w\"> </span>manage.py<span class=\"w\"> </span>shell\n</code></pre></div>\n<p>(<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">console</span></code> がレンダリングするものと変わりません)。</p>\n<p>２つめのタブは次のようになります:</p>\n<div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows code\"><code><span class=\"gp\">...\\&gt;</span> py manage.py shell\n</code></pre></div>\n</section>\n<section id=\"documenting-new-features\">\n<span id=\"id5\"></span><h2>新機能のドキュメントを書く<a class=\"heading-anchor\" href=\"#documenting-new-features\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>私たちの新機能に関するポリシーは以下のとおりです:</p>\n<blockquote>\n<div><p>新機能のドキュメントはすべて、Django の開発版でしか利用できない機能を明確に指定するように書くべきです。ドキュメントの読者は開発版ではなく、最新のリリースを使っていると仮定してください。</p>\n</div></blockquote>\n<p>新機能をマークするには、その機能のドキュメントの前に &quot;<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">versionadded::</span> <span class=\"pre\">X.Y</span></code>&quot; を付与し、必須の空白行とオプションの説明（インデントされたもの）を続けます。</p>\n<p>General improvements or other changes to the APIs that should be emphasized\nshould use the &quot;<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">versionchanged::</span> <span class=\"pre\">X.Y</span></code>&quot; directive (with the same format\nas the <code class=\"docutils literal notranslate\"><span class=\"pre\">versionadded</span></code> mentioned above).</p>\n<p>これらの <code class=\"docutils literal notranslate\"><span class=\"pre\">versionadded</span></code> と <code class=\"docutils literal notranslate\"><span class=\"pre\">versionchanged</span></code> ブロックは &quot;自己完結型&quot; であるべきです。言い換えると、これらの注釈は2つのリリースの間だけ残しておくために、周囲のテキストをリフローしたり、インデントを変更したり、編集したりすることなく、注釈とその内容を削除できればいいのです。例えば、新機能や変更された機能の説明全体をブロックに入れる代わりに、次のようにします:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">class</span><span class=\"p\">::</span> Author(first_name, last_name, middle_name=None)\n\n    A person who writes books.\n\n    <span class=\"s\">``first_name``</span> is ...\n\n<span class=\"c\">    ...</span>\n\n<span class=\"c\">    ``middle_name`` is ...</span>\n\n<span class=\"c\">    .. versionchanged:: A.B</span>\n\n<span class=\"c\">        The ``middle_name`` argument was added.</span>\n</code></pre></div>\n<p>changed 注釈ノートはセクションの上ではなく、一番下に配置します。</p>\n<p>また、 <code class=\"docutils literal notranslate\"><span class=\"pre\">versionadded</span></code> や <code class=\"docutils literal notranslate\"><span class=\"pre\">versionchanged</span></code> ブロックの外側で Django の特定のバージョンを参照するのは避けてください。ブロックの中であっても、これらのアノテーションはそれぞれ &quot;New in Django A.B:&quot; や &quot;Changed in Django A.B&quot; としてレンダリングされるので、そうするのは冗長な場合が多いです。</p>\n<p>関数や属性などが追加された場合は、このように <code class=\"docutils literal notranslate\"><span class=\"pre\">versionadded</span></code> 注釈を使っても構いません:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">attribute</span><span class=\"p\">::</span> Author.middle_name\n\n<span class=\"p\">    ..</span> <span class=\"ow\">versionadded</span><span class=\"p\">::</span> A.B\n\n    An author&#39;s middle name.\n</code></pre></div>\n<p>この <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">versionadded::</span> <span class=\"pre\">A.B</span></code> 注釈は、インデントを変更することなく削除できます。</p>\n</section>\n<section id=\"minimizing-images\">\n<h2>画像を縮小する<a class=\"heading-anchor\" href=\"#minimizing-images\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>可能な限り画像圧縮を最適化してください。 PNG ファイルの場合は、 OptiPNG と AdvanceCOMP の <code class=\"docutils literal notranslate\"><span class=\"pre\">advpng</span></code> を使用してください:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-9-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span><span class=\"nb\">cd</span><span class=\"w\"> </span>docs\n<span class=\"gp\">$ </span>optipng<span class=\"w\"> </span>-o7<span class=\"w\"> </span>-zm1-9<span class=\"w\"> </span>-i0<span class=\"w\"> </span>-strip<span class=\"w\"> </span>all<span class=\"w\"> </span><span class=\"sb\">`</span>find<span class=\"w\"> </span>.<span class=\"w\"> </span>-type<span class=\"w\"> </span>f<span class=\"w\"> </span>-not<span class=\"w\"> </span>-path<span class=\"w\"> </span><span class=\"s2\">&quot;./_build/*&quot;</span><span class=\"w\"> </span>-name<span class=\"w\"> </span><span class=\"s2\">&quot;*.png&quot;</span><span class=\"sb\">`</span>\n<span class=\"gp\">$ </span>advpng<span class=\"w\"> </span>-z4<span class=\"w\"> </span><span class=\"sb\">`</span>find<span class=\"w\"> </span>.<span class=\"w\"> </span>-type<span class=\"w\"> </span>f<span class=\"w\"> </span>-not<span class=\"w\"> </span>-path<span class=\"w\"> </span><span class=\"s2\">&quot;./_build/*&quot;</span><span class=\"w\"> </span>-name<span class=\"w\"> </span><span class=\"s2\">&quot;*.png&quot;</span><span class=\"sb\">`</span>\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-9-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> <span class=\"k\">cd</span> docs\n<span class=\"gp\">...\\&gt;</span> optipng -o7 -zm1-9 -i0 -strip all `find . -type f -not -path <span class=\"s2\">&quot;.\\_build\\*&quot;</span> -name <span class=\"s2\">&quot;*.png&quot;</span>`\n<span class=\"gp\">...\\&gt;</span> advpng -z4 `find . -type f -not -path <span class=\"s2\">&quot;.\\_build\\*&quot;</span> -name <span class=\"s2\">&quot;*.png&quot;</span>`\n</code></pre></div></div></div>\n<p>これは OptiPNG バージョン 0.7.5 に基づいています。古いバージョンは、<code class=\"docutils literal notranslate\"><span class=\"pre\">-strip</span> <span class=\"pre\">all</span></code> オプションが非可逆であることに文句を言うかもしれません。</p>\n</section>\n<section id=\"an-example\">\n<h2>例<a class=\"heading-anchor\" href=\"#an-example\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>それぞれの例がどのように連携するのか、簡単な例を見てみましょう:</p>\n<ul>\n<li><p>まず、 <code class=\"docutils literal notranslate\"><span class=\"pre\">ref/settings.txt</span></code> ドキュメント全体のレイアウトはこのようになっています:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"gh\">========</span>\n<span class=\"gh\">Settings</span>\n<span class=\"gh\">========</span>\n\n<span class=\"c\">...</span>\n\n<span class=\"p\">..</span> <span class=\"nt\">_available-settings:</span>\n\n<span class=\"gh\">Available settings</span>\n<span class=\"gh\">==================</span>\n\n<span class=\"c\">...</span>\n\n<span class=\"p\">..</span> <span class=\"nt\">_deprecated-settings:</span>\n\n<span class=\"gh\">Deprecated settings</span>\n<span class=\"gh\">===================</span>\n\n<span class=\"c\">...</span>\n</code></pre></div>\n</li>\n<li><p>次に、 <code class=\"docutils literal notranslate\"><span class=\"pre\">topics/settings.txt</span></code> ドキュメントには以下のような内容が含まれるかもしれません:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code>You can access a :ref:`listing of all available settings\n<span class=\"nt\">&lt;available-settings&gt;</span>`. For a list of deprecated settings see\n<span class=\"na\">:ref:</span><span class=\"nv\">`deprecated-settings`</span>.\n\nYou can find both in the :doc:`settings reference document\n<span class=\"nt\">&lt;/ref/settings&gt;</span>`.\n</code></pre></div>\n<p>別のドキュメント全体へのリンクを作成したい場合は Sphinx の <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/referencing.html#role-doc\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">doc</span></code></a> クロスリファレンス要素を使用し、ドキュメント内の任意の場所へのリンクを作成したい場合は <a class=\"reference external\" href=\"https://www.sphinx-doc.org/en/master/usage/referencing.html#role-ref\" title=\"(in Sphinx v9.1.1)\"><code class=\"xref rst rst-role docutils literal notranslate\"><span class=\"pre\">ref</span></code></a> 要素を使用します。</p>\n</li>\n<li><p>次に、設定がどのようにアノテーションされているかに注目してください:</p>\n<div class=\"code-block\" data-language=\"rst\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Rst</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Rst code\"><code><span class=\"p\">..</span> <span class=\"ow\">setting</span><span class=\"p\">::</span> ADMINS\n\n<span class=\"gh\">ADMINS</span>\n<span class=\"gh\">======</span>\n\nDefault: <span class=\"s\">``[]``</span> (Empty list)\n\nA list of all the people who get code error notifications...\n</code></pre></div>\n<p>これにより、以降のヘッダが <code class=\"docutils literal notranslate\"><span class=\"pre\">ADMINS</span></code> という設定の &quot;正規の&quot; ターゲットとしてマークアップされます。これは <code class=\"docutils literal notranslate\"><span class=\"pre\">ADMINS</span></code> について話すときはいつでも <code class=\"docutils literal notranslate\"><span class=\"pre\">:setting:`ADMINS`</span></code> を使って参照できることを意味します。</p>\n</li>\n</ul>\n<p>これが基本的な組み立て方です。</p>\n</section>\n<section id=\"translating-documentation\">\n<h2>ドキュメントを翻訳する<a class=\"heading-anchor\" href=\"#translating-documentation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>ドキュメントを他の言語に翻訳したい場合は <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/localizing/#translating-documentation\"><span class=\"std std-ref\">Django ドキュメントのローカライズ</span></a> を参照してください。</p>\n</section>\n<section id=\"django-admin-man-page\">\n<span id=\"django-admin-manpage\"></span><h2><code class=\"docutils literal notranslate\"><span class=\"pre\">django-admin</span></code> の man ページ<a class=\"heading-anchor\" href=\"#django-admin-man-page\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Sphinxは <a class=\"reference internal\" href=\"/ja/6.1/ref/django-admin/\"><span class=\"doc\">django-admin</span></a> コマンドのマニュアルページを生成できます。これは <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/conf.py</span></code> で設定します。他のドキュメントの出力とは異なり、このマニュアルページは <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/man/django-admin.1</span></code> として Django リポジトリやリリースに含める必要があります。ドキュメントを更新する際に、このファイルを更新する必要はありません。</p>\n<p>To generate an updated version of the man page, in the <code class=\"docutils literal notranslate\"><span class=\"pre\">docs</span></code> directory, run:</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-10-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>make<span class=\"w\"> </span>man\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-10-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> make.bat man\n</code></pre></div></div></div>\n<p>The new man page will be written in <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/_build/man/django-admin.1</span></code>.</p>\n</section>","rootId":"writing-documentation","toc":[{"title":"Django のドキュメント作成プロセス","anchor":"the-django-documentation-process","children":[]},{"title":"ドキュメントの構成","anchor":"how-the-documentation-is-organized","children":[]},{"title":"ドキュメントの寄稿を始めるには","anchor":"how-to-start-contributing-documentation","children":[{"title":"Django リポジトリをローカルマシンにクローンします。","anchor":"clone-the-django-repository-to-your-local-machine","children":[]},{"title":"仮想環境のセットアップと依存関係のインストール","anchor":"set-up-a-virtual-environment-and-install-dependencies","children":[]},{"title":"ドキュメントをローカルでビルドする","anchor":"build-the-documentation-locally","children":[{"title":"Automating documentation rebuilds","anchor":"automating-documentation-rebuilds","children":[]}]},{"title":"ドキュメントの編集","anchor":"making-edits-to-the-documentation","children":[]},{"title":"Documentation quality checks","anchor":"documentation-quality-checks","children":[{"title":"スペルチェック","anchor":"spelling-check","children":[]},{"title":"Code block format check","anchor":"code-block-format-check","children":[]},{"title":"Documentation lint check","anchor":"documentation-lint-check","children":[]}]},{"title":"リンクの確認","anchor":"link-check","children":[]}]},{"title":"執筆スタイル","anchor":"writing-style","children":[]},{"title":"よく使われる用語","anchor":"commonly-used-terms","children":[]},{"title":"Django 特有の用語","anchor":"django-specific-terminology","children":[]},{"title":"reStructuredText ファイルのガイドライン","anchor":"guidelines-for-restructuredtext-files","children":[]},{"title":"Django 固有のマークアップ","anchor":"django-specific-markup","children":[]},{"title":"新機能のドキュメントを書く","anchor":"documenting-new-features","children":[]},{"title":"画像を縮小する","anchor":"minimizing-images","children":[]},{"title":"例","anchor":"an-example","children":[]},{"title":"ドキュメントを翻訳する","anchor":"translating-documentation","children":[]},{"title":"django-admin の man ページ","anchor":"django-admin-man-page","children":[]}],"breadcrumbs":[{"docname":"internals/index","title":"Django internals","url":"/ja/6.1/internals/"},{"docname":"internals/contributing/index","title":"Django へのコントリビュート","url":"/ja/6.1/internals/contributing/"}],"prev":{"docname":"internals/contributing/committing-code","title":"コードのコミット","url":"/ja/6.1/internals/contributing/committing-code/"},"next":{"docname":"internals/contributing/localizing","title":"Django のローカライズ","url":"/ja/6.1/internals/contributing/localizing/"},"formats":{"html":"/ja/6.1/internals/contributing/writing-documentation/","markdown":"/ja/6.1/internals/contributing/writing-documentation.md","json":"/ja/6.1/internals/contributing/writing-documentation.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/internals/contributing/writing-documentation.txt","official":"https://docs.djangoproject.com/ja/6.1/internals/contributing/writing-documentation/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}