{"title":"Scríobh cáipéis","version":"6.0","locale":"ga","docname":"internals/contributing/writing-documentation","url":"/ga/6.0/internals/contributing/writing-documentation/","canonical":"https://djangodocs.dev/ga/6.0/internals/contributing/writing-documentation/","summary":"Cuirimid an-tábhacht ar chomhsheasmhacht agus ar inléiteacht na ndoiciméad. Tar éis an tsaoil, cruthaíodh Django i dtimpeallacht iriseoireachta! Mar sin caithimid…","html":"<h1>Scríobh cáipéis<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>Cuirimid an-tábhacht ar chomhsheasmhacht agus ar inléiteacht na ndoiciméad. Tar éis an tsaoil, cruthaíodh Django i dtimpeallacht iriseoireachta! Mar sin caithimid lenár ndoiciméadú mar a chaithimid lenár gcód: tá sé mar aidhm againn é a fheabhsú chomh minic agus is féidir.</p>\n<p>De ghnáth is dhá fhoirm a bhíonn athruithe doiciméadaithe:</p>\n<ul class=\"simple\">\n<li><p>Feabhsuithe ginearálta: ceartúcháin tíopála, earráidí a cheartú agus míniúcháin níos fearr trí scríobh níos soiléire agus níos mó samplaí.</p></li>\n<li><p>Gnéithe nua: doiciméadú gnéithe a cuireadh leis an gcreat ón scaoileadh deireanach.</p></li>\n</ul>\n<p>Mínítear sa chuid seo conas is féidir le scríbhneoirí athruithe a dhéanamh ar a ndoiciméadú ar na bealaí is úsáidí agus is lú seans go mbeidh earráidí ann.</p>\n<section id=\"the-django-documentation-process\">\n<h2>An próiseas doiciméadaithe 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>Cé go bhfuil sé beartaithe doiciméadú Django a léamh mar HTML ag <a class=\"reference external\" href=\"https://docs.djangoproject.com/\">https://docs.djangoproject.com/</a>, déanaimid é a chur in eagar mar bhailiúchán de chomhaid téacs simplí atá scríofa sa teanga marcála RestructuredText chun an tsolúbthacht is mó a fháil.</p>\n<p>Oibrímid ó leagan forbartha an stór toisc go bhfuil an doiciméadú is déanaí agus is mó aige, díreach mar atá an cód is déanaí agus is mó aige.</p>\n<p>Déanaimid socruithe agus feabhsuithe doiciméadaithe ar ais freisin, de réir rogha an chumaisc, go dtí an bhrainse scaoilte deireanach. Tá sé seo toisc go bhfuil sé buntáisteach go mbeadh na doiciméid don eisiúint deireanach cothrom le dáta agus ceart (féach: ref: difríochtaí idir doc-versions).</p>\n<p>Úsáideann cáipéisíocht Django córas doiciméadaithe <a class=\"reference external\" href=\"https://www.sphinx-doc.org/\">Sphinx</a>, atá bunaithe ar <a class=\"reference external\" href=\"https://docutils.sourceforge.io/\">docutils</a> ina dhiaidh sin. Is é an smaoineamh bunúsach ná go ndéantar doiciméadú téacs simplí formáidithe go héadrom a athrú go HTML, PDF, agus aon fhormáid aschuir eile.</p>\n<p>Cuimsíonn Sphinx ordú <code class=\"docutils literal notranslate\"><span class=\"pre\">sphinx-build</span></code> chun RestructuredText a iompú i bhformáidí eile, m.sh., HTML agus PDF. Tá an t-ordú seo inchumraithe, ach cuimsíonn cáipéisíocht Django <code class=\"docutils literal notranslate\"><span class=\"pre\">Makefile</span></code> a sholáthraíonn ordú <code class=\"docutils literal notranslate\"><span class=\"pre\">make</span> <span class=\"pre\">html</span></code> níos giorra.</p>\n</section>\n<section id=\"how-the-documentation-is-organized\">\n<h2>Conas a eagraítear na doiciméid<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>Tá an doiciméadú eagraithe i roinnt catagóirí:</p>\n<ul>\n<li><p><a class=\"reference internal\" href=\"/ga/6.0/intro/\"><span class=\"doc\">Tutorials</span></a> take the reader by the hand through a series\nof steps to create something.</p>\n<p>Is é an rud tábhachtach i rang teagaisc cabhrú leis an léitheoir rud éigin úsáideach a bhaint amach, b'fhearr chomh luath agus is féidir, d'fhonn muinín a thabhairt dóibh.</p>\n<p>Mínigh nádúr na fadhbanna atá á réiteach againn, ionas go dtuigeann an léitheoir cad atá againn ag iarraidh a bhaint amach. Ná mhothaigh gur gá duit tosú le mínithe ar an gcaoi a n-oibríonn rudaí - is é an rud is tábhachtaí ná cad a dhéanann an léitheoir, ní an méid a mhíníonn tú D'fhéadfadh sé a bheith cabhrach tagairt a dhéanamh ar ais don méid a rinne tú agus míniú ina dhiaidh sin.</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ga/6.0/topics/\"><span class=\"doc\">Topic guides</span></a> aim to explain a concept or subject at a\nfairly high level.</p>\n<p>Nasc le hábhar tagartha seachas é a athdhéanamh. Úsáid samplaí agus ná bíodh drogall ort rudaí atá an-bhunúsach duit a mhíniú - b'fhéidir gurb é an míniú a theastaíonn ó dhuine eile.</p>\n<p>Trí chomhthéacs cúlra a sholáthar cabhraíonn sé le núíosach an topaic a nascadh le rudaí atá ar eolas acu cheana féin.</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ga/6.0/ref/\"><span class=\"doc\">Reference guides</span></a> contain technical references for APIs.\nThey describe the functioning of Django's internal machinery and instruct in\nits use.</p>\n<p>Coinnigh ábhar tagartha dírithe go docht ar an ábhar. Glac leis go dtuigeann an léitheoir cheana féin na bunchoincheapa atá i gceist ach go gcaithfidh sé fios a bheith aige nó a mheabhrú conas a dhéanann Django é.</p>\n<p>Ní hé treoracha tagartha an áit le haghaidh míniú ginearálta. Má fhaigheann tú tú féin ag míniú bunchoincheapa, b'fhéidir gur mhaith leat an t-ábhar sin a aistriú chuig treoir ábhair.</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ga/6.0/howto/\"><span class=\"doc\">How-to guides</span></a> are recipes that take the reader through\nsteps in key subjects.</p>\n<p>Is é an rud is tábhachtaí i dtreoir conas is féidir leis an úsáideoir a bhaint amach. Ba chóir go mbeadh conas-le-dírithe i gcónaí ar thorthaí seachas a bheith dírithe ar shonraí inmheánacha faoin gcaoi a gcuireann Django i bhfeidhm cibé rud atá á phlé.</p>\n<p>Tá na treoracha seo níos airde ná ranganna teagaisc agus glacann siad roinnt eolais faoi conas a oibríonn Django. Glac leis gur lean an léitheoir na ranganna teagaisc agus ná bíodh aon leisce ort an léitheoir a tharchur ar ais chuig an rang teagaisc cuí seachas an t-ábhar céanna a athdhéanamh.</p>\n</li>\n</ul>\n</section>\n<section id=\"how-to-start-contributing-documentation\">\n<h2>Conas tosú ag cur cáipéisíocht<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>Clóin stór Django chuig do mheaisín áitiúil<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>Más mian leat tosú ag cur lenár ndoiciméad, faigh an leagan forbartha de Django ón stór cód foinse (féach: ref: installing-development-version):</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>Má tá sé ar intinn agat na hathruithe seo a chur isteach, b'fhéidir go mbeadh sé úsáideach duit forc a dhéanamh de stór Django agus an forc seo a chlónú ina ionad sin.</p>\n</section>\n<section id=\"set-up-a-virtual-environment-and-install-dependencies\">\n<h3>Cuir timpeallacht fhíorúil ar bun agus spleáchais a shuiteáil<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>Cruthaigh agus gníomhachtaigh timpeallacht fhíorúil, ansin suiteáil na spleáchais:</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<h3>Tóg an doiciméadú go háiti<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>Is féidir linn aschur HTML a thógáil ón eolaire <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>docs`:</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>Beidh do dhoiciméadú tógtha go háitiúil inrochtana ag <code class=\"docutils literal notranslate\"><span class=\"pre\">_build/html/index.html</span></code> agus is féidir é a fheiceáil in aon bhrabhsálaí gréasáin, cé go mbeidh téama difriúil air ná an doiciméadú ag <a class=\"reference internal\" href=\"#docs-djangoproject-com\">docs.djangoproject.com</a>. &lt; <a class=\"reference external\" href=\"https://docs.djangoproject.com/\">https://docs.djangoproject.com/</a>&gt; Tá sé seo ceart go leor! Má tá cuma mhaith ar d'athruithe ar do mheaisín áitiúil, beidh cuma mhaith orthu ar an suíomh Gréasáin.</p>\n</section>\n<section id=\"making-edits-to-the-documentation\">\n<h3>Eagarthóireachtaí a dhéanamh ar an doiciméadacht<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>Is iad na comhaid foinse comhaid <code class=\"docutils literal notranslate\"><span class=\"pre\">.txt</span></code> atá lonnaithe san eolaire <code class=\"docutils literal notranslate\"><span class=\"pre\">docs/</span></code>.</p>\n<p>Tá na comhaid seo scríofa sa teanga marcála RestructuredText. &lt;sphinx:rst-index&gt;Chun an marcáil a fhoghlaim, féach an tagairt: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>RestructuredText <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Chun an leathanach seo a chur in eagar, mar shampla, déanfaimis an comhad:source: docs/internals/contributing/writing-documentation.txt a chur in eagar agus an HTML a atógáil le <code class=\"docutils literal notranslate\"><span class=\"pre\">make</span> <span class=\"pre\">html</span></code>.</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-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>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-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> 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>Seiceáil litrithe<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. Then from the\n<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-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>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-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> 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>Má thagann tú ar dhearfacha bréagacha (aschur earráide atá ceart i ndáiríre), déan ceann de na nithe seo a leanas:</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>Faigh comhchiallaigh a aithníonn an seiceálaí litrithe.</p></li>\n<li><p>Má tá tú cinnte go bhfuil an focal atá á úsáid agat ceart - cuir é le docs/spelling_wordlist` (coinnigh an liosta in ord aibítre le do thoil).</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=\"/ga/6.0/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-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>black\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 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-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>lint\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 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>Seiceáil nasc<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-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>linkcheck\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 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\">Warning</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>Tá iontrálacha a bhfuil stádas “ag obair” acu go breá, scipeánadh iad siúd nach bhfuil “neamh-sheiceáil” nó “neamhaird orthu” toisc nach féidir iad a sheiceáil nó gur mheaitseáil siad rialacha neamhaird sa chumraíocht.</p>\n<p>Ní mór iontrálacha a bhfuil stádas “briste” acu a shocrú. B'fhéidir go gcaithfear iad siúd a bhfuil stádas “atreoraithe” acu a nuashonrú chun an suíomh canónach a chur in iúl, m.sh. tá athrú tagtha ar an scéim <code class=\"docutils literal notranslate\"><span class=\"pre\">http:</span> <span class=\"pre\">//</span></code> → <code class=\"docutils literal notranslate\"><span class=\"pre\">https:</span> <span class=\"pre\">//</span></code>. I gcásanna áirithe, níl muid ag iarraidh nasc “atreoraithe” a nuashonrú, m.sh. athscríobh chun an leagan is déanaí nó cobhsaí den doiciméad a chur in iúl i gcónaí, m.sh. /en/stable/` → <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>Stíl scríobh<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>Nuair a úsáidtear forainmneacha i dtagairt do dhuine hipitéiseach, mar shampla “úsáideoir le fianán seisiúin”, ba cheart ainmneacha neodrach ó inscne (siú/iad féin) a úsáid. In ionad:</p>\n<ul class=\"simple\">\n<li><p>úsáideann sé nó sí... iad.</p></li>\n<li><p>é nó í... bain úsáid as iad.</p></li>\n<li><p>a chuid nó í... bain úsáid as a gcuid.</p></li>\n<li><p>a chuid féin nó a... bain úsáid as a gcuid féin.</p></li>\n<li><p>é féin nó í féin... bain úsáid as iad féin.</p></li>\n</ul>\n<p>Déan iarracht focail a úsáid a sheachaint a íoslaghdaíonn an deacracht a bhaineann le tasc nó oibríocht, mar shampla “go héasca”, “go simplí”, “díreach”, “díreach”, “simplí”, agus mar sin de. B'fhéidir nach n-oireann taithí daoine le d'ionchais, agus d'fhéadfadh go mbeadh frustrachas orthu nuair nach bhfaigheann siad céim chomh “simplí” nó “simplí” agus a thugtar le tuiscint a bheith.</p>\n</section>\n<section id=\"commonly-used-terms\">\n<h2>Téarmaí a úsáidtear go co<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>Seo roinnt treoirlínte stíle ar théarmaí a úsáidtear go coitianta ar fud an doiciméid:</p>\n<ul class=\"simple\">\n<li><p><strong>Django</strong> - agus tú ag tagairt don chreat, caipitligh Django. Níl sé le litreacha beaga ach i gcód Python agus i lógó djangoproject.com.</p></li>\n<li><p><strong>ríomhphost</strong> - gan aon bhreith.</p></li>\n<li><p><strong>HTTP</strong> - is é “Aitch Tee Tee Pee” an fuaimniú a bhfuil súil leis agus dá bhrí sin ba cheart “an” agus ní “a” roimh ré.</p></li>\n<li><p><strong>MySQL</strong>, <strong>PostgreSQL</strong>, <strong>SQLite</strong></p></li>\n<li><p><strong>SQL</strong> - agus tú ag tagairt do SQL, ba chóir go mbeadh “Ess Queue Ell” an fuaimniú ag súil leis agus ní “seicheamh”. Dá bhrí sin i abairt mar “Tugann sé abairt SQL ar ais”, ba chóir “an” a bheith roimh “SQL” agus ní “a”.</p></li>\n<li><p><strong>Python</strong> - agus tú ag tagairt don teanga, caipitligh Python.</p></li>\n<li><p><strong>a bhaint amach, **saincheapach</strong>, <strong>tosaithe</strong>, srl. - bain úsáid as iarmhír “ize” Meiriceánach, ní “ise.”</p></li>\n<li><p><strong>fo-rang</strong> - is focal amháin é gan bhriathar, mar bhriathar (“fo-aicme an tsamhail sin”) agus mar ainmfhocal (“cruthaigh fo-aicme”).</p></li>\n<li><p><strong>an gréasán</strong>, <strong>creat gréasán</strong> - níl sé caipitlithe.</p></li>\n<li><p><strong>láithreán gréasáin</strong> - bain úsáid as focal amháin, gan caipitliú.</p></li>\n</ul>\n</section>\n<section id=\"django-specific-terminology\">\n<h2>Téarmaíocht Django-shonrach<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>samhail</strong> - níl sé caipitlithe.</p></li>\n<li><p><strong>teimpléad</strong> - níl sé caipitlithe.</p></li>\n<li><p><strong>URLConf</strong> - bain úsáid as trí litir chaipitealaithe, gan aon spás roimh “conf.”</p></li>\n<li><p><strong>amharc</strong> - níl sé caipitlithe.</p></li>\n</ul>\n</section>\n<section id=\"guidelines-for-restructuredtext-files\">\n<h2>Treoirlínte maidir le comhaid 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>Rialaíonn na treoirlínte seo formáid ár ndoiciméad REst (ReStructuredText):</p>\n<ul>\n<li><p>I dteidil rannán, ní dhéanann caipitliú ach focail tosaigh agus ainmfhocail cheart.</p></li>\n<li><p>Fill an doiciméadú ag 80 carachtar ar leithead, mura bhfuil sampla cód i bhfad níos lú inléite nuair a roinntear thar dhá líne, nó ar chúis mhaith eile.</p></li>\n<li><p>Is é an rud is mó atá le coinneáil i gcuimhne agus tú ag scríobh agus a chur in eagar doiciméid ná is fearr an marcáil shéimeantach is féidir leat a chur leis. Mar sin:</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>Níl sé beagnach chomh cabhrach le:</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>Tá sé seo toisc go nginfidh Sphinx naisc cheart don dara ceann, rud a chabhraíonn go mór le léitheoirí.</p>\n<p>Is féidir leat an sprioc a réamhriú le <code class=\"docutils literal notranslate\"><span class=\"pre\">~</span></code> (sin tilde) chun ach an “giotán deireanach” den chosáin sin a fháil. Mar sin, taispeánfaidh <code class=\"docutils literal notranslate\"><span class=\"pre\">:mod:</span> <span class=\"pre\">`~django.contrib.auth</span></code> nasc leis an teideal “auth”.</p>\n</li>\n<li><p>Úsáid: MOD: ~sphinx.ext.intersphinx chun tagairt a dhéanamh do dhoiciméadú Python agus Sphinx.</p></li>\n<li><p>Cuir <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::&lt;lang&gt;</span></code> le bloic litriúla ionas go dtabharfar aird orthu. Is fearr leat brath ar aibhsiú uathoibríoch ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">::</span></code> (dhá cholún). Tá an buntáiste aige seo, má tá roinnt comhréireachta neamhbhailí sa chód, nach gcuirfear béim air. Cuirfear <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">python</span></code> leis, mar shampla, aird a tharraingt in ainneoin comhréireachta neamhbhailí.</p></li>\n<li><p>Chun inléiteacht a fheabhsú, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">áireamh::</span> <span class=\"pre\">Teideal</span> <span class=\"pre\">tuairisciúil</span></code> seachas <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">nóta::</span></code>. Úsáid na boscaí seo go coigilteach.</p></li>\n<li><p>Úsáid na stíleanna ceannteideal seo:</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>Úsáid: rst:Role: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`:pep: &lt;pep&gt;`chun tagairt a dhéanamh do Togra Feabhsúcháin Python (PEP) agus iarracht a nasc a dhéanamh leis an gcuid ábhartha más féidir. &lt;20 #easter -egg&gt;Mar shampla, bain úsáid as ``:pep:</span></a> 20 #easter -egg`` nó <code class=\"docutils literal notranslate\"><span class=\"pre\">:pep:</span> <span class=\"pre\">`Uibheacha</span> <span class=\"pre\">Cásca</span></code>.</p></li>\n<li><p>Úsáid: rst:Role: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>:mimetype: &lt;mimetype&gt;`chun tagairt a dhéanamh do Cineál MIME mura luaitear an luach le haghaidh sampla cód.</p></li>\n<li><p>&lt;envvar&gt;Úsáid: rst:Role: :envvar: `chun tagairt a dhéanamh d'athróg comhshaoil. &lt;envvar&gt;B'fhéidir go mbeidh ort tagairt a shainiú don doiciméadú don athróg comhshaoil sin ag baint úsáid:rst:dir: `.. envvar::.</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>Marcáil Django-shonrach<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>Besides:ref: Marcáil ionsuite Sphinx &lt;sphinx:rst-index&gt;, sainmhíníonn doiciméid Django roinnt aonaid tuairiscithe breise:</p>\n<ul>\n<li><p>Socruithe:</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>Chun nasc a dhéanamh le socrú, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:setting:</span> <span class=\"pre\">`INSTALLED_APPS</span></code>.</p>\n</li>\n<li><p>Clibeanna Teimpléad:</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>Chun nasc a dhéanamh, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:ttag:</span> <span class=\"pre\">`athghrúpa</span></code>.</p>\n</li>\n<li><p>Scagairí Teimpléad:</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>Chun nasc a dhéanamh, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:tfilter:</span> <span class=\"pre\">`linebreaksbr</span></code>.</p>\n</li>\n<li><p>Cuardaigh réimse (ie <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>foo.objects.filter (bar__exact=what) <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>):</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>Chun nasc a dhéanamh, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:lookup:</span> <span class=\"pre\">`exact`</span></code>.</p>\n</li>\n<li><p>Orduithe <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>django-admin <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>:</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>Chun nasc a dhéanamh, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:djadmin:</span> <span class=\"pre\">`migrate</span></code>.</p>\n</li>\n<li><p>Roghanna líne ordaithe <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>django-admin <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>:</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>Chun nasc a dhéanamh, bain úsáid as <code class=\"docutils literal notranslate\"><span class=\"pre\">:option:</span> <span class=\"pre\">`command_name</span> <span class=\"pre\">--traceback</span></code> (nó fág <code class=\"docutils literal notranslate\"><span class=\"pre\">command_name</span></code> do na roghanna atá roinnte ag gach ordú mar <code class=\"docutils literal notranslate\"><span class=\"pre\">--verbosity</span></code>).</p>\n</li>\n<li><p>Naisc le ticéid Trac (curtha in áirithe de ghnáth le haghaidh nótaí scaoilte paiste)</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>Úsáideann doiciméadú Django treoir saincheaptha <code class=\"docutils literal notranslate\"><span class=\"pre\">console</span></code> chun samplaí líne ordaithe a dhoiciméadú lena mbaineann <code class=\"docutils literal notranslate\"><span class=\"pre\">django-admin</span> <span class=\"pre\">``,</span> <span class=\"pre\">`manage.py</span></code>, python`, srl.). Sa dhoiciméadú HTML, tugann sé UI dhá chluaisín, le cluaisín amháin ag taispeáint pras ordaithe i stíl Unix agus an dara cluaisín a thaispeánann pras Windows.</p>\n<p>Mar shampla, is féidir leat an blúire seo a athsholáthar:</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>leis an gceann seo:</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>Tabhair faoi deara dhá rud:</p>\n<ul class=\"simple\">\n<li><p>De ghnáth cuirfidh tú in ionad teagmhálacha an treoir <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>Ní gá duit ábhar iarbhír an sampla cód a athrú. Scríobhann tú é fós ag glacadh le timpeallacht Unix-y (ie siombail pras <code class=\"docutils literal notranslate\"><span class=\"pre\">`'$'</span></code>, <code class=\"docutils literal notranslate\"><span class=\"pre\">/</span></code> mar dheighilteoir comhpháirteanna cosáin an chórais chomhaid, srl.)</p></li>\n</ul>\n<p>Tabharfaidh an sampla thuas bloc sampla cód le dhá chluaisín. Taispeánfaidh an chéad cheann:</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>(Níl aon athruithe ar an méid a rinneadh <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">code-block::</span> <span class=\"pre\">console</span></code>).</p>\n<p>Taispeánfaidh an dara ceann:</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>Gnéithe nua a dhoiciméadú<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>Is é ár mbeartas maidir le gnéithe nua:</p>\n<blockquote>\n<div><p>Ba cheart gach doiciméadú ar ghnéithe nua a scríobh ar bhealach a shainíonn go soiléir na gnéithe nach bhfuil ar fáil ach i leagan forbartha Django. Glac leis go bhfuil léitheoirí doiciméadaithe ag baint úsáide as an eisiúint is déanaí, ní as an leagan forbartha.</p>\n</div></blockquote>\n<p>Is é an bealach is fearr linn chun gnéithe nua a mharcáil ná doiciméadú na ngnéithe a réamh-mheas le: “<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">leaganadded::</span> <span class=\"pre\">X.Y</span></code>”, agus líne bán éigeantach agus cur síos roghnach (curtha) ina dhiaidh sin.</p>\n<p>Ba chóir feabhsuithe ginearálta nó athruithe eile ar na APIs ar chóir béim a thabhairt ar an treoir “<code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">versionmodified::</span> <span class=\"pre\">X.Y</span></code>” a úsáid (leis an bhformáid chéanna leis an <code class=\"docutils literal notranslate\"><span class=\"pre\">leaganadded</span></code> a luaitear thuas.</p>\n<p>Ba chóir go mbeadh na bloic leaganaddaí agus <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>leaganathraithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>seo “féin-chuimsitheach.” Is é sin le rá, ós rud é nach gcoinnímid na nótaí seo ach ar feadh dhá eisiúint, tá sé go deas a bheith in ann an t-anótáil agus a ábhar a bhaint gan an téacs máguaird a athluchtú, a athshlánú nó a chur in eagar. Mar shampla, in ionad an tuairisc iomlán ar ghné nua nó athraithe a chur i mbloc, déan rud éigin mar seo:</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>Cuir na nótaí anótála athraithe ag bun roinn, ní an barr.</p>\n<p>Chomh maith leis sin, seachain tagairt a dhéanamh do leagan ar leith de Django lasmuigh de bhloc <code class=\"docutils literal notranslate\"><span class=\"pre\">leaganaded`</span> <span class=\"pre\">nó</span> <span class=\"pre\">`leaganathraithe</span></code>. Fiú laistigh de bhloc, is minic a bhíonn sé iomarcach é sin a dhéanamh mar a léiríonn na hanótaí seo mar “Nua i Django AB:” agus “Athraithe i Django AB”, faoi seach.</p>\n<p>Má chuirtear feidhm, tréith, srl leis, tá sé ceart go leor freisin anótáil versionadded a úsáid mar seo:</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>Is féidir linn an anótáil <code class=\"docutils literal notranslate\"><span class=\"pre\">..</span> <span class=\"pre\">leaganadded::</span> <span class=\"pre\">A.B</span></code> a bhaint gan aon athruithe insinte nuair a thagann an t-am.</p>\n</section>\n<section id=\"minimizing-images\">\n<h2>Íoslaghdú íomhánna<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>Comhbhrú íomhá a bharrfheabhsú nuair Maidir le comhaid PNG, bain úsáid as advpng` OptiPNG agus AdvanceComp:</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><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-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> <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>Tá sé seo bunaithe ar leagan OptiPNG 0.7.5. Féadfaidh leaganacha níos sine gearán a dhéanamh faoi go bhfuil an rogha <code class=\"docutils literal notranslate\"><span class=\"pre\">-strip</span> <span class=\"pre\">all</span></code> caillteanach.</p>\n</section>\n<section id=\"an-example\">\n<h2>Sampla<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>Le haghaidh sampla tapa den chaoi a n-oireann sé go léir le chéile, smaoinigh ar an sampla hipitéiseach seo:</p>\n<ul>\n<li><p>Ar dtús, d'fhéadfadh leagan amach foriomlán mar seo a bheith ag an doiciméad ref/settings.txt `:</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>Ansin, d'fhéadfadh rud éigin mar seo a bheith sa doiciméad <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>topics/settings.txt <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>:</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>Úsáidimid an eilimint trasthagartha Sphinx: Rst: Role: doc nuair is mian linn nasc a dhéanamh le doiciméad eile ina iomláine agus an eilimint:rst:role: ref nuair is mian linn nasc a dhéanamh le suíomh treallach i ndoiciméad.</p>\n</li>\n<li><p>Ansin, tabhair faoi deara conas a ndéantar na socruithe anótáilte:</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>Marcálann sé seo an ceanntásc seo a leanas mar an sprioc “canónach” don shocrú <code class=\"docutils literal notranslate\"><span class=\"pre\">ADMINS`.</span> <span class=\"pre\">Ciallaíonn</span> <span class=\"pre\">sé</span> <span class=\"pre\">seo</span> <span class=\"pre\">aon</span> <span class=\"pre\">uair</span> <span class=\"pre\">a</span> <span class=\"pre\">labhraím</span> <span class=\"pre\">faoi</span> <span class=\"pre\">``ADMINS</span></code>, is féidir liom tagairt a dhéanamh air ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">:setting:</span> <span class=\"pre\">`ADMINS</span></code>.</p>\n</li>\n</ul>\n<p>Sin go bunúsach mar a luíonn gach rud le chéile.</p>\n</section>\n<section id=\"translating-documentation\">\n<h2>Aistriú doicimé<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>Féach:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>An doiciméadú Django a logánú &lt;translating-documentation&gt;`más mian leat cabhrú leis an doiciméad a aistriú go teanga eile.</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> leathanach fear<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>Is féidir le Sphinx leathanach láimhe a ghiniúint don ordú:doc: django-admin &lt;/ref/django-admin&gt;. Tá sé seo cumraithe i docs/conf.py`. Murab ionann agus aschur doiciméadaithe eile, ba chóir an leathanach fear seo a áireamh i stóras Django agus na heisiúintí mar docs/man/django-admin.1`. Ní gá an comhad seo a nuashonrú agus an doiciméad á nuashonrú, mar go ndéantar é a nuashonrú uair amháin mar chuid den phróiseas scaoilte.</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-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>man\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 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":"An próiseas doiciméadaithe Django","anchor":"the-django-documentation-process","children":[]},{"title":"Conas a eagraítear na doiciméid","anchor":"how-the-documentation-is-organized","children":[]},{"title":"Conas tosú ag cur cáipéisíocht","anchor":"how-to-start-contributing-documentation","children":[{"title":"Clóin stór Django chuig do mheaisín áitiúil","anchor":"clone-the-django-repository-to-your-local-machine","children":[]},{"title":"Cuir timpeallacht fhíorúil ar bun agus spleáchais a shuiteáil","anchor":"set-up-a-virtual-environment-and-install-dependencies","children":[]},{"title":"Tóg an doiciméadú go háiti","anchor":"build-the-documentation-locally","children":[]},{"title":"Eagarthóireachtaí a dhéanamh ar an doiciméadacht","anchor":"making-edits-to-the-documentation","children":[]},{"title":"Documentation quality checks","anchor":"documentation-quality-checks","children":[{"title":"Seiceáil litrithe","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":"Seiceáil nasc","anchor":"link-check","children":[]}]},{"title":"Stíl scríobh","anchor":"writing-style","children":[]},{"title":"Téarmaí a úsáidtear go co","anchor":"commonly-used-terms","children":[]},{"title":"Téarmaíocht Django-shonrach","anchor":"django-specific-terminology","children":[]},{"title":"Treoirlínte maidir le comhaid RestructuredText","anchor":"guidelines-for-restructuredtext-files","children":[]},{"title":"Marcáil Django-shonrach","anchor":"django-specific-markup","children":[]},{"title":"Gnéithe nua a dhoiciméadú","anchor":"documenting-new-features","children":[]},{"title":"Íoslaghdú íomhánna","anchor":"minimizing-images","children":[]},{"title":"Sampla","anchor":"an-example","children":[]},{"title":"Aistriú doicimé","anchor":"translating-documentation","children":[]},{"title":"django-admin leathanach fear","anchor":"django-admin-man-page","children":[]}],"breadcrumbs":[{"docname":"internals/index","title":"Inmheánacha Django","url":"/ga/6.0/internals/"},{"docname":"internals/contributing/index","title":"Ag cur le Django","url":"/ga/6.0/internals/contributing/"}],"prev":{"docname":"internals/contributing/committing-code","title":"Cód tiomanta","url":"/ga/6.0/internals/contributing/committing-code/"},"next":{"docname":"internals/contributing/localizing","title":"Logáil Django","url":"/ga/6.0/internals/contributing/localizing/"},"formats":{"html":"/ga/6.0/internals/contributing/writing-documentation/","markdown":"/ga/6.0/internals/contributing/writing-documentation.md","json":"/ga/6.0/internals/contributing/writing-documentation.json"},"source":"https://github.com/django/django/blob/stable/6.0.x/docs/internals/contributing/writing-documentation.txt","official":"https://docs.djangoproject.com/ga/6.0/internals/contributing/writing-documentation/","inVersions":["6.1","6.0","5.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}