| 1 |
|
| 2 |
<!DOCTYPE html> |
| 3 |
|
| 4 |
|
| 5 |
<html lang="en" data-content_root="../../" > |
| 6 |
|
| 7 |
<head> |
| 8 |
<meta charset="utf-8" /> |
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 |
|
| 11 |
<title>12.2.1. Introduction — Groonga v16.0.9 documentation</title> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script data-cfasync="false"> |
| 16 |
document.documentElement.dataset.mode = localStorage.getItem("mode") || ""; |
| 17 |
document.documentElement.dataset.theme = localStorage.getItem("theme") || ""; |
| 18 |
</script> |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
<noscript> |
| 23 |
<style> |
| 24 |
.pst-js-only { display: none !important; } |
| 25 |
|
| 26 |
</style> |
| 27 |
</noscript> |
| 28 |
|
| 29 |
|
| 30 |
<link href="../../_static/styles/theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 31 |
<link href="../../_static/styles/pydata-sphinx-theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 32 |
|
| 33 |
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" /> |
| 34 |
|
| 35 |
|
| 36 |
<script defer src="../../_static/scripts/fontawesome.js?digest=90905a2f556bf617f1a9"></script> |
| 37 |
|
| 38 |
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" /> |
| 39 |
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" /> |
| 40 |
|
| 41 |
<script src="../../_static/documentation_options.js?v=2fcb8d4f"></script> |
| 42 |
<script src="../../_static/doctools.js?v=fd6eb6e6"></script> |
| 43 |
<script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script> |
| 44 |
<script> |
| 45 |
window.dataLayer = window.dataLayer || []; |
| 46 |
function gtag(){ dataLayer.push(arguments); } |
| 47 |
gtag('consent', 'default', { |
| 48 |
'ad_storage': 'denied', |
| 49 |
'ad_user_data': 'denied', |
| 50 |
'ad_personalization': 'denied', |
| 51 |
'analytics_storage': 'denied' |
| 52 |
}); |
| 53 |
</script> |
| 54 |
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-MDK38RHNPW"></script> |
| 55 |
<script> |
| 56 |
window.dataLayer = window.dataLayer || []; |
| 57 |
function gtag(){dataLayer.push(arguments);} |
| 58 |
gtag('js', new Date()); |
| 59 |
gtag('config', 'G-MDK38RHNPW'); |
| 60 |
</script> |
| 61 |
<script>DOCUMENTATION_OPTIONS.pagename = 'contribution/documentation/introduction';</script> |
| 62 |
<script> |
| 63 |
DOCUMENTATION_OPTIONS.theme_version = '0.20.0'; |
| 64 |
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://groonga.org/docs/_static/switcher.json'; |
| 65 |
DOCUMENTATION_OPTIONS.theme_switcher_version_match = 'english'; |
| 66 |
DOCUMENTATION_OPTIONS.show_version_warning_banner = |
| 67 |
false; |
| 68 |
</script> |
| 69 |
<script>DOCUMENTATION_OPTIONS.search_as_you_type = false;</script> |
| 70 |
<link rel="icon" href="../../_static/favicon.ico"/> |
| 71 |
<link rel="index" title="Index" href="../../genindex.html" /> |
| 72 |
<link rel="search" title="Search" href="../../search.html" /> |
| 73 |
<link rel="next" title="12.2.2. I18N" href="i18n.html" /> |
| 74 |
<link rel="prev" title="12.2. How to contribute in documentation topics" href="../documentation.html" /> |
| 75 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 76 |
<meta name="docsearch:language" content="en"/> |
| 77 |
<meta name="docsearch:version" content="16.0.9" /> |
| 78 |
|
| 79 |
|
| 80 |
<script src="../../_static/searchtools.js"></script> |
| 81 |
<script src="../../_static/language_data.js"></script> |
| 82 |
<script src="../../searchindex.js"></script> |
| 83 |
|
| 84 |
</head> |
| 85 |
<body data-default-mode=""> |
| 86 |
|
| 87 |
|
| 88 |
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div> |
| 89 |
|
| 90 |
|
| 91 |
<div id="pst-scroll-pixel-helper"></div> |
| 92 |
|
| 93 |
<button type="button" class="btn rounded-pill" id="pst-back-to-top"> |
| 94 |
<i class="fa-solid fa-arrow-up"></i>Back to top</button> |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
<dialog id="pst-search-dialog"> |
| 100 |
|
| 101 |
<form class="bd-search d-flex align-items-center" |
| 102 |
action="../../search.html" |
| 103 |
method="get"> |
| 104 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 105 |
<input type="search" |
| 106 |
class="form-control" |
| 107 |
name="q" |
| 108 |
placeholder="Search the docs ..." |
| 109 |
aria-label="Search the docs ..." |
| 110 |
autocomplete="off" |
| 111 |
autocorrect="off" |
| 112 |
autocapitalize="off" |
| 113 |
spellcheck="false"/> |
| 114 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span> |
| 115 |
</form> |
| 116 |
</dialog> |
| 117 |
|
| 118 |
<div class="pst-async-banner-revealer d-none"> |
| 119 |
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside> |
| 120 |
</div> |
| 121 |
|
| 122 |
|
| 123 |
<header id="pst-header" class="bd-header navbar navbar-expand-lg bd-navbar d-print-none"> |
| 124 |
<div class="bd-header__inner bd-page-width"> |
| 125 |
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation"> |
| 126 |
<span class="fa-solid fa-bars"></span> |
| 127 |
</button> |
| 128 |
|
| 129 |
|
| 130 |
<div class="col-lg-3 navbar-header-items__start"> |
| 131 |
|
| 132 |
<div class="navbar-item"> |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
<a class="navbar-brand logo" href="https://groonga.org/"> |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
<img src="../../_static/groonga.png" class="logo__image only-light" alt="Groonga v16.0.9 documentation - Home"/> |
| 150 |
<img src="../../_static/groonga.png" class="logo__image only-dark pst-js-only" alt="Groonga v16.0.9 documentation - Home"/> |
| 151 |
|
| 152 |
|
| 153 |
</a></div> |
| 154 |
|
| 155 |
</div> |
| 156 |
|
| 157 |
<div class="col-lg-9 navbar-header-items"> |
| 158 |
|
| 159 |
|
| 160 |
<div class="navbar-header-items__end"> |
| 161 |
|
| 162 |
<div class="navbar-item navbar-persistent--container"> |
| 163 |
|
| 164 |
|
| 165 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 166 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 167 |
<span class="search-button__default-text">Search</span> |
| 168 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 169 |
</button> |
| 170 |
</div> |
| 171 |
|
| 172 |
|
| 173 |
<div class="navbar-item"> |
| 174 |
|
| 175 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 176 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 177 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 178 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 179 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 180 |
</button> |
| 181 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 182 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 183 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 184 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 185 |
</ul> |
| 186 |
</div></div> |
| 187 |
|
| 188 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 189 |
aria-label="Icon Links"> |
| 190 |
<li class="nav-item"> |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 200 |
</li> |
| 201 |
<li class="nav-item"> |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 211 |
</li> |
| 212 |
<li class="nav-item"> |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 222 |
</li> |
| 223 |
</ul></div> |
| 224 |
|
| 225 |
<div class="navbar-item"> |
| 226 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 227 |
<button id="pst-version-switcher-button-2" |
| 228 |
type="button" |
| 229 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 230 |
data-bs-toggle="dropdown" |
| 231 |
aria-haspopup="listbox" |
| 232 |
aria-controls="pst-version-switcher-list-2" |
| 233 |
aria-label="Version switcher list" |
| 234 |
> |
| 235 |
Choose version |
| 236 |
<span class="caret"></span> |
| 237 |
</button> |
| 238 |
<div id="pst-version-switcher-list-2" |
| 239 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 240 |
role="listbox" aria-labelledby="pst-version-switcher-button-2"> |
| 241 |
|
| 242 |
</div> |
| 243 |
</div></div> |
| 244 |
|
| 245 |
</div> |
| 246 |
|
| 247 |
</div> |
| 248 |
|
| 249 |
|
| 250 |
<div class="navbar-persistent--mobile"> |
| 251 |
|
| 252 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 253 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 254 |
<span class="search-button__default-text">Search</span> |
| 255 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 256 |
</button> |
| 257 |
</div> |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page"> |
| 262 |
<span class="fa-solid fa-outdent"></span> |
| 263 |
</button> |
| 264 |
|
| 265 |
</div> |
| 266 |
|
| 267 |
</header> |
| 268 |
|
| 269 |
|
| 270 |
<div class="bd-container"> |
| 271 |
<div class="bd-container__inner bd-page-width"> |
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
<dialog id="pst-primary-sidebar-modal"></dialog> |
| 276 |
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar"> |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
<div class="sidebar-header-items sidebar-primary__section"> |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
<div class="sidebar-header-items__end"> |
| 286 |
|
| 287 |
<div class="navbar-item"> |
| 288 |
|
| 289 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 290 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 291 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 292 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 293 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 294 |
</button> |
| 295 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 296 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 297 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 298 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 299 |
</ul> |
| 300 |
</div></div> |
| 301 |
|
| 302 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 303 |
aria-label="Icon Links"> |
| 304 |
<li class="nav-item"> |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 314 |
</li> |
| 315 |
<li class="nav-item"> |
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 325 |
</li> |
| 326 |
<li class="nav-item"> |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 336 |
</li> |
| 337 |
</ul></div> |
| 338 |
|
| 339 |
<div class="navbar-item"> |
| 340 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 341 |
<button id="pst-version-switcher-button-3" |
| 342 |
type="button" |
| 343 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 344 |
data-bs-toggle="dropdown" |
| 345 |
aria-haspopup="listbox" |
| 346 |
aria-controls="pst-version-switcher-list-3" |
| 347 |
aria-label="Version switcher list" |
| 348 |
> |
| 349 |
Choose version |
| 350 |
<span class="caret"></span> |
| 351 |
</button> |
| 352 |
<div id="pst-version-switcher-list-3" |
| 353 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 354 |
role="listbox" aria-labelledby="pst-version-switcher-button-3"> |
| 355 |
|
| 356 |
</div> |
| 357 |
</div></div> |
| 358 |
|
| 359 |
</div> |
| 360 |
|
| 361 |
</div> |
| 362 |
|
| 363 |
<div class="sidebar-primary-items__start sidebar-primary__section"> |
| 364 |
<div class="sidebar-primary-item pst-sidebar-collapse"><button id="pst-collapse-sidebar-button" aria-expanded="true" aria-controls="pst-primary-sidebar"> |
| 365 |
<svg class="pst-icon" role="img" aria-hidden="true" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> |
| 366 |
<path fill="currentColor" d="M3 15.5C2.36232 15.5 1.74874 15.2564 1.28478 14.8189C0.820828 14.3815 0.541576 13.7832 0.504167 13.1467L0.5 13L0.5 3C0.499965 2.36232 0.743605 1.74874 1.18107 1.28478C1.61854 0.820828 2.21676 0.541576 2.85333 0.504167L3 0.5L13 0.5C13.6377 0.499965 14.2513 0.743605 14.7152 1.18107C15.1792 1.61854 15.4584 2.21676 15.4958 2.85333L15.5 3L15.5 13C15.5 13.6377 15.2564 14.2513 14.8189 14.7152C14.3815 15.1792 13.7832 15.4584 13.1467 15.4958L13 15.5L3 15.5ZM3 13.8333L10.5 13.8333L10.5 2.16667L3 2.16667C2.79589 2.16669 2.59889 2.24163 2.44636 2.37726C2.29383 2.5129 2.19638 2.69979 2.1725 2.9025L2.16667 3L2.16667 13C2.16669 13.2041 2.24163 13.4011 2.37726 13.5536C2.5129 13.7062 2.69979 13.8036 2.9025 13.8275L3 13.8333ZM6.65583 10.325L6.5775 10.2558L4.91083 8.58917C4.76735 8.44567 4.68116 8.25476 4.66843 8.05223C4.65569 7.84971 4.71729 7.6495 4.84167 7.48917L4.91083 7.41083L6.5775 5.74417C6.72747 5.59471 6.9287 5.50794 7.14032 5.50148C7.35194 5.49502 7.55809 5.56935 7.7169 5.70937C7.8757 5.8494 7.97525 6.04463 7.99533 6.25539C8.01541 6.46616 7.95451 6.67667 7.825 6.84417L7.75583 6.9225L6.67917 8L7.75583 9.0775C7.89931 9.22099 7.98551 9.41191 7.99824 9.61443C8.01097 9.81695 7.94938 10.0172 7.825 10.1775L7.75583 10.2558C7.61234 10.3993 7.42142 10.4855 7.2189 10.4982C7.01638 10.511 6.81617 10.4494 6.65583 10.325Z"/> |
| 367 |
</svg> |
| 368 |
<span class="pst-collapse-sidebar-label">Collapse Sidebar</span> |
| 369 |
<span class="pst-expand-sidebar-label">Expand Sidebar</span> |
| 370 |
</button></div> |
| 371 |
<div class="sidebar-primary-item"> |
| 372 |
|
| 373 |
<nav class="bd-docs-nav bd-links" |
| 374 |
aria-label="Section Navigation"> |
| 375 |
<p class="bd-links__title" role="heading" aria-level="1">Section Navigation</p> |
| 376 |
<div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav"> |
| 377 |
<li class="toctree-l1"><a class="reference internal" href="../report.html">12.1. How to report a bug</a></li> |
| 378 |
<li class="toctree-l1 current active has-children"><a class="reference internal" href="../documentation.html">12.2. How to contribute in documentation topics</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current"> |
| 379 |
<li class="toctree-l2 current active"><a class="current reference internal" href="#">12.2.1. Introduction</a></li> |
| 380 |
<li class="toctree-l2"><a class="reference internal" href="i18n.html">12.2.2. I18N</a></li> |
| 381 |
<li class="toctree-l2"><a class="reference internal" href="c-api.html">12.2.3. C API</a></li> |
| 382 |
</ul> |
| 383 |
</details></li> |
| 384 |
<li class="toctree-l1 has-children"><a class="reference internal" href="../development.html">12.3. For Groonga developers</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 385 |
<li class="toctree-l2"><a class="reference internal" href="../development/repository.html">12.3.1. Repository</a></li> |
| 386 |
<li class="toctree-l2 has-children"><a class="reference internal" href="../development/build.html">12.3.2. How to build Groonga at the repository</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul> |
| 387 |
<li class="toctree-l3"><a class="reference internal" href="../development/build/unix_cmake.html">12.3.2.1. How to build Groonga at the repository by CMake on GNU/Linux or Unix</a></li> |
| 388 |
<li class="toctree-l3"><a class="reference internal" href="../development/build/windows_cmake.html">12.3.2.2. How to build Groonga at the repository by CMake on Windows</a></li> |
| 389 |
</ul> |
| 390 |
</details></li> |
| 391 |
<li class="toctree-l2"><a class="reference internal" href="../development/com.html">12.3.3. Groonga 通信アーキテクチャ</a></li> |
| 392 |
<li class="toctree-l2"><a class="reference internal" href="../development/cooperation.html">12.3.4. ユーザーと協力して開発をうまく進めていくための指針</a></li> |
| 393 |
<li class="toctree-l2"><a class="reference internal" href="../development/query.html">12.3.5. クエリの実現</a></li> |
| 394 |
|
| 395 |
<li class="toctree-l2"><a class="reference internal" href="../development/release.html">12.3.7. リリース手順</a></li> |
| 396 |
<li class="toctree-l2"><a class="reference internal" href="../development/test.html">12.3.8. テスト方法</a></li> |
| 397 |
</ul> |
| 398 |
</details></li> |
| 399 |
</ul> |
| 400 |
</div> |
| 401 |
</nav></div> |
| 402 |
</div> |
| 403 |
|
| 404 |
|
| 405 |
<div class="sidebar-primary-items__end sidebar-primary__section"> |
| 406 |
<div class="sidebar-primary-item"> |
| 407 |
<div id="ethical-ad-placement" |
| 408 |
class="flat" |
| 409 |
data-ea-publisher="readthedocs" |
| 410 |
data-ea-type="readthedocs-sidebar" |
| 411 |
data-ea-manual="true"> |
| 412 |
</div></div> |
| 413 |
</div> |
| 414 |
|
| 415 |
|
| 416 |
</div> |
| 417 |
|
| 418 |
<main id="main-content" class="bd-main" role="main"> |
| 419 |
|
| 420 |
|
| 421 |
<div class="bd-content"> |
| 422 |
<div class="bd-article-container"> |
| 423 |
|
| 424 |
<div class="bd-header-article d-print-none"> |
| 425 |
<div class="header-article-items header-article__inner"> |
| 426 |
|
| 427 |
<div class="header-article-items__start"> |
| 428 |
|
| 429 |
<div class="header-article-item"> |
| 430 |
|
| 431 |
<nav aria-label="Breadcrumb" class="d-print-none"> |
| 432 |
<ul class="bd-breadcrumbs"> |
| 433 |
|
| 434 |
<li class="breadcrumb-item breadcrumb-home"> |
| 435 |
<a href="../../index.html" class="nav-link" aria-label="Home"> |
| 436 |
<i class="fa-solid fa-home"></i> |
| 437 |
</a> |
| 438 |
</li> |
| 439 |
|
| 440 |
<li class="breadcrumb-item"><a href="../../contribution.html" class="nav-link"><span class="section-number">12. </span>How to contribute to groonga</a></li> |
| 441 |
|
| 442 |
|
| 443 |
<li class="breadcrumb-item"><a href="../documentation.html" class="nav-link"><span class="section-number">12.2. </span>How to contribute in documentation topics</a></li> |
| 444 |
|
| 445 |
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis"><span class="section-number">12.2.1. </span>Introduction</span></li> |
| 446 |
</ul> |
| 447 |
</nav> |
| 448 |
</div> |
| 449 |
|
| 450 |
</div> |
| 451 |
|
| 452 |
|
| 453 |
</div> |
| 454 |
</div> |
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
<div id="searchbox"></div> |
| 460 |
<article class="bd-article"> |
| 461 |
|
| 462 |
<section class="tex2jax_ignore mathjax_ignore" id="introduction"> |
| 463 |
<h1><span class="section-number">12.2.1. </span>Introduction<a class="headerlink" href="#introduction" title="Link to this heading">#</a></h1> |
| 464 |
<p>This document outlines the procedures for writing, generating, and managing Groonga’s documentation. |
| 465 |
By following the steps below, you can contribute to enhancing and updating Groonga’s documentation.</p> |
| 466 |
<section id="how-to-fork-and-clone-groonga-repository"> |
| 467 |
<h2><span class="section-number">12.2.1.1. </span>How to fork and clone Groonga repository<a class="headerlink" href="#how-to-fork-and-clone-groonga-repository" title="Link to this heading">#</a></h2> |
| 468 |
<p>Contributing to Groonga’s documentation begins with forking and cloning the Groonga repository. |
| 469 |
These actions are essential first steps that enable personal modifications and experimentation in your personal repository. |
| 470 |
And also, it enables you to submit them as your contributions to the Groonga repository. Follow these steps.</p> |
| 471 |
<ol class="arabic simple"> |
| 472 |
<li><p>Go to <a class="github reference external" href="https://github.com/groonga/groonga">groonga/groonga</a> on GitHub</p></li> |
| 473 |
<li><p>Click the <code class="docutils literal notranslate"><span class="pre">Fork</span></code> button to create a copy of the repository</p></li> |
| 474 |
<li><p>Clone your Groonga repository with the following command</p></li> |
| 475 |
</ol> |
| 476 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>git<span class="w"> </span>clone<span class="w"> </span>--recursive<span class="w"> </span>[email protected]:<span class="si">${</span><span class="nv">YOUR_GITHUB_ACCOUNT</span><span class="si">}</span>/groonga.git |
| 477 |
</pre></div> |
| 478 |
</div> |
| 479 |
</section> |
| 480 |
<section id="install-dependent-software"> |
| 481 |
<h2><span class="section-number">12.2.1.2. </span>Install dependent software<a class="headerlink" href="#install-dependent-software" title="Link to this heading">#</a></h2> |
| 482 |
<p>Groonga uses <a class="reference external" href="https://www.sphinx-doc.org/">Sphinx</a> as documentation tool.</p> |
| 483 |
<p>Here are command lines to install Sphinx.</p> |
| 484 |
<p>Debian GNU/Linux, Ubuntu:</p> |
| 485 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>./setup.sh |
| 486 |
<span class="gp">% </span>sudo<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>-r<span class="w"> </span>doc/requirements.txt |
| 487 |
<span class="gp">% </span><span class="o">(</span><span class="nb">cd</span><span class="w"> </span>doc<span class="w"> </span><span class="o">&&</span><span class="w"> </span>bundle<span class="w"> </span>install<span class="o">)</span> |
| 488 |
</pre></div> |
| 489 |
</div> |
| 490 |
<p>AlmaLinux, Fedora:</p> |
| 491 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>sudo<span class="w"> </span>dnf<span class="w"> </span>install<span class="w"> </span>-y<span class="w"> </span>python-pip<span class="w"> </span>gettext |
| 492 |
<span class="gp">% </span>sudo<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>-r<span class="w"> </span>doc/requirements.txt |
| 493 |
<span class="gp">% </span><span class="o">(</span><span class="nb">cd</span><span class="w"> </span>doc<span class="w"> </span><span class="o">&&</span><span class="w"> </span>bundle<span class="w"> </span>install<span class="o">)</span> |
| 494 |
</pre></div> |
| 495 |
</div> |
| 496 |
<p>macOS:</p> |
| 497 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>brew<span class="w"> </span>bundle |
| 498 |
<span class="gp">% </span><span class="nb">export</span><span class="w"> </span><span class="nv">PATH</span><span class="o">=</span><span class="k">$(</span>brew<span class="w"> </span>--prefix<span class="w"> </span>gettext<span class="k">)</span>/bin:<span class="nv">$PATH</span> |
| 499 |
<span class="gp">% </span>pip<span class="w"> </span>install<span class="w"> </span>-r<span class="w"> </span>doc/requirements.txt |
| 500 |
<span class="gp">% </span><span class="o">(</span><span class="nb">cd</span><span class="w"> </span>doc<span class="w"> </span><span class="o">&&</span><span class="w"> </span>bundle<span class="w"> </span>install<span class="o">)</span> |
| 501 |
</pre></div> |
| 502 |
</div> |
| 503 |
</section> |
| 504 |
<section id="run-cmake-with-preset-doc"> |
| 505 |
<h2><span class="section-number">12.2.1.3. </span>Run <code class="docutils literal notranslate"><span class="pre">cmake</span></code> with <code class="docutils literal notranslate"><span class="pre">--preset=doc</span></code><a class="headerlink" href="#run-cmake-with-preset-doc" title="Link to this heading">#</a></h2> |
| 506 |
<p>Groonga disables documentation generation by default. You need to |
| 507 |
enable it explicitly by adding <code class="docutils literal notranslate"><span class="pre">--preset=doc</span></code> option to |
| 508 |
<code class="docutils literal notranslate"><span class="pre">cmake</span></code>:</p> |
| 509 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>cmake<span class="w"> </span>-S<span class="w"> </span>.<span class="w"> </span>-B<span class="w"> </span>../groonga.doc<span class="w"> </span>--preset<span class="o">=</span>doc |
| 510 |
</pre></div> |
| 511 |
</div> |
| 512 |
<p>Now, your Groonga build is documentation ready.</p> |
| 513 |
</section> |
| 514 |
<section id="generate-html"> |
| 515 |
<h2><span class="section-number">12.2.1.4. </span>Generate HTML<a class="headerlink" href="#generate-html" title="Link to this heading">#</a></h2> |
| 516 |
<p>You can generate HTML by the following command:</p> |
| 517 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>cmake<span class="w"> </span>--build<span class="w"> </span>../groonga.doc |
| 518 |
</pre></div> |
| 519 |
</div> |
| 520 |
<p>You can find generated HTML documentation at <code class="docutils literal notranslate"><span class="pre">../groonga.doc/doc/en/html/</span></code>.</p> |
| 521 |
</section> |
| 522 |
<section id="how-to-edit-documentation"> |
| 523 |
<h2><span class="section-number">12.2.1.5. </span>How to edit documentation<a class="headerlink" href="#how-to-edit-documentation" title="Link to this heading">#</a></h2> |
| 524 |
<p>The Groonga documentation is written in <a class="reference external" href="https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html">reStructuredText (.rst)</a> or <a class="reference external" href="https://myst-parser.readthedocs.io/en/latest/">Markdown (.md)</a> . These files are located in the <code class="docutils literal notranslate"><span class="pre">doc/source</span></code>. |
| 525 |
Each page of the documentation corresponds to a <code class="docutils literal notranslate"><span class="pre">.rst</span></code> file or a <code class="docutils literal notranslate"><span class="pre">.md</span></code> file. By modifying the corresponding file, you can edit the target document. |
| 526 |
For Example, if you want to edit this <a class="reference internal" href="#"><span class="doc">Introduction</span></a> page, you should edit the <code class="docutils literal notranslate"><span class="pre">doc/source/contribution/documentation/introduction.rst</span></code> file. |
| 527 |
Please find the file you wish to edit and make your changes.</p> |
| 528 |
</section> |
| 529 |
<section id="how-to-add-a-new-documentation"> |
| 530 |
<span id="how-to-add-new-documentation"></span><h2><span class="section-number">12.2.1.6. </span>How to add a new documentation<a class="headerlink" href="#how-to-add-a-new-documentation" title="Link to this heading">#</a></h2> |
| 531 |
<p>If you want to add a new documentation, you need to add the new documentation into <code class="docutils literal notranslate"><span class="pre">doc/files.am</span></code> and <code class="docutils literal notranslate"><span class="pre">doc/files.cmake</span></code> by the following command lines.</p> |
| 532 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>-S<span class="w"> </span>.<span class="w"> </span>-B<span class="w"> </span>../groonga.doc<span class="w"> </span>--preset<span class="o">=</span>doc |
| 533 |
<span class="gp">$ </span>cmake<span class="w"> </span>--build<span class="w"> </span>../groonga.doc |
| 534 |
<span class="gp">$ </span>ninja<span class="w"> </span>doc_update_files<span class="w"> </span>-C<span class="w"> </span>../groonga.doc |
| 535 |
</pre></div> |
| 536 |
</div> |
| 537 |
<p>Note that you need to commit not only the new documentation but also <code class="docutils literal notranslate"><span class="pre">doc/files.am</span></code> and <code class="docutils literal notranslate"><span class="pre">doc/files.cmake</span></code> in this case.</p> |
| 538 |
</section> |
| 539 |
<section id="preview-changes-on-html-files"> |
| 540 |
<h2><span class="section-number">12.2.1.7. </span>Preview changes on HTML files<a class="headerlink" href="#preview-changes-on-html-files" title="Link to this heading">#</a></h2> |
| 541 |
<p>You can preview your documentation changes in your browser in HTML format. Follow these two steps.</p> |
| 542 |
<ol class="arabic simple"> |
| 543 |
<li><p>Generate the HTML files with your changes</p></li> |
| 544 |
<li><p>Preview the generated HTML files in your Web browser</p></li> |
| 545 |
</ol> |
| 546 |
<section id="generate-the-html-files-with-your-changes"> |
| 547 |
<h3><span class="section-number">12.2.1.7.1. </span>Generate the HTML files with your changes<a class="headerlink" href="#generate-the-html-files-with-your-changes" title="Link to this heading">#</a></h3> |
| 548 |
<p>Use the following command to generate HTML files that reflect your changes. The generated files will be located in <code class="docutils literal notranslate"><span class="pre">../groonga.doc/doc/en/html/</span></code>. Each file corresponds to a <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> file:</p> |
| 549 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>cmake<span class="w"> </span>--build<span class="w"> </span>../groonga.doc |
| 550 |
</pre></div> |
| 551 |
</div> |
| 552 |
</section> |
| 553 |
<section id="preview-the-generated-html-files-in-your-web-browser"> |
| 554 |
<h3><span class="section-number">12.2.1.7.2. </span>Preview the generated HTML files in your Web browser<a class="headerlink" href="#preview-the-generated-html-files-in-your-web-browser" title="Link to this heading">#</a></h3> |
| 555 |
<p>Open the generated file in your Web browser to preview your changes. |
| 556 |
For example, if you have edited this <a class="reference internal" href="#"><span class="doc">Introduction</span></a> page, you can preview it by the following command:</p> |
| 557 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>open<span class="w"> </span>../groonga.doc/doc/en/html/contribution/documentation/introduction.html |
| 558 |
</pre></div> |
| 559 |
</div> |
| 560 |
</section> |
| 561 |
</section> |
| 562 |
<section id="send-patch"> |
| 563 |
<h2><span class="section-number">12.2.1.8. </span>Send patch<a class="headerlink" href="#send-patch" title="Link to this heading">#</a></h2> |
| 564 |
<p>You can submit your patch to the Groonga repository on GitHub via a pull request. |
| 565 |
Feel free to send a pull request by following these steps.</p> |
| 566 |
<ul class="simple"> |
| 567 |
<li><p>Enable preview on your fork (optional)</p></li> |
| 568 |
<li><p>Prepare your pull request</p></li> |
| 569 |
<li><p>Submit your pull request</p></li> |
| 570 |
</ul> |
| 571 |
<section id="enable-preview-on-your-fork-optional"> |
| 572 |
<h3><span class="section-number">12.2.1.8.1. </span>Enable preview on your fork (optional)<a class="headerlink" href="#enable-preview-on-your-fork-optional" title="Link to this heading">#</a></h3> |
| 573 |
<p>You can enable preview on your fork by following the steps below before pushing your commits:</p> |
| 574 |
<ol class="arabic simple"> |
| 575 |
<li><p>Enable GitHub Pages on your fork:</p> |
| 576 |
<ul class="simple"> |
| 577 |
<li><p>Open <code class="docutils literal notranslate"><span class="pre">https://github.com/${YOUR_GITHUB_ACCOUNT}/groonga/settings/pages</span></code></p></li> |
| 578 |
<li><p>Select “GitHub Actions” as “Source”</p></li> |
| 579 |
</ul> |
| 580 |
</li> |
| 581 |
<li><p>Accept publishing GitHub Pages from all branches on your fork:</p> |
| 582 |
<ul class="simple"> |
| 583 |
<li><p>Open <code class="docutils literal notranslate"><span class="pre">https://github.com/${YOUR_GITHUB_ACCOUNT}/groonga/settings/environments</span></code></p></li> |
| 584 |
<li><p>Select the “github-pages” environment</p></li> |
| 585 |
<li><p>Change the default “Deployment branches and tags” rule:</p> |
| 586 |
<ul> |
| 587 |
<li><p>Press the “Edit” button</p></li> |
| 588 |
<li><p>Change the “Name pattern” to <code class="docutils literal notranslate"><span class="pre">*</span></code> from <code class="docutils literal notranslate"><span class="pre">main</span></code></p></li> |
| 589 |
</ul> |
| 590 |
</li> |
| 591 |
</ul> |
| 592 |
</li> |
| 593 |
</ol> |
| 594 |
<p>You can preview your changes at the following URLs after pushing your changes:</p> |
| 595 |
<ul class="simple"> |
| 596 |
<li><p><code class="docutils literal notranslate"><span class="pre">https://${YOUR_GITHUB_ACCOUNT}.github.io/groonga/</span></code></p></li> |
| 597 |
<li><p><code class="docutils literal notranslate"><span class="pre">https://${YOUR_GITHUB_ACCOUNT}.github.io/groonga/ja/</span></code></p></li> |
| 598 |
<li><p><code class="docutils literal notranslate"><span class="pre">https://${YOUR_GITHUB_ACCOUNT}.github.io/groonga/reference/api/</span></code></p></li> |
| 599 |
</ul> |
| 600 |
</section> |
| 601 |
<section id="prepare-your-pull-request"> |
| 602 |
<h3><span class="section-number">12.2.1.8.2. </span>Prepare your pull request<a class="headerlink" href="#prepare-your-pull-request" title="Link to this heading">#</a></h3> |
| 603 |
<p>Ensure your changes are committed and then push your changes to your fork repository on GitHub. |
| 604 |
Follow these commands:</p> |
| 605 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>git<span class="w"> </span>switch<span class="w"> </span>-c<span class="w"> </span>your-working-branch |
| 606 |
<span class="gp">% </span>git<span class="w"> </span>add<span class="w"> </span>doc |
| 607 |
<span class="gp">% </span>git<span class="w"> </span>commit<span class="w"> </span>-m<span class="w"> </span><span class="s1">'Describe your works here'</span> |
| 608 |
<span class="gp">% </span>git<span class="w"> </span>push<span class="w"> </span>origin<span class="w"> </span>your-working-branch |
| 609 |
</pre></div> |
| 610 |
</div> |
| 611 |
</section> |
| 612 |
<section id="submit-your-pull-request"> |
| 613 |
<h3><span class="section-number">12.2.1.8.3. </span>Submit your pull request<a class="headerlink" href="#submit-your-pull-request" title="Link to this heading">#</a></h3> |
| 614 |
<p>Now you’re ready to submit a pull request to the upstream Groonga repository. |
| 615 |
Follow these steps:</p> |
| 616 |
<ol class="arabic simple"> |
| 617 |
<li><p>Go to your fork repository on GitHub</p></li> |
| 618 |
<li><p>Click the <code class="docutils literal notranslate"><span class="pre">Compare</span> <span class="pre">&</span> <span class="pre">pull</span> <span class="pre">request</span></code> button</p></li> |
| 619 |
<li><p>Make sure your changes are reflected</p></li> |
| 620 |
<li><p>Click the <code class="docutils literal notranslate"><span class="pre">Create</span> <span class="pre">Pull</span> <span class="pre">Request</span></code> button and send your pull request</p></li> |
| 621 |
</ol> |
| 622 |
</section> |
| 623 |
</section> |
| 624 |
<section id="optional-translate-documentation"> |
| 625 |
<h2><span class="section-number">12.2.1.9. </span>Optional: Translate documentation<a class="headerlink" href="#optional-translate-documentation" title="Link to this heading">#</a></h2> |
| 626 |
<p>This is an optional step.</p> |
| 627 |
<p>After editing and previewing the Groonga documentation, the next step is to translate the documents to make them accessible to a wider range of Groonga community users. Translating into languages other than English ensures that non-English speakers can also understand the Groonga documentation. Follow these steps to translate Groonga documentation.</p> |
| 628 |
<ol class="arabic simple"> |
| 629 |
<li><p>Translate the documentation in <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files</p></li> |
| 630 |
<li><p>Reflect translations to <code class="docutils literal notranslate"><span class="pre">.po</span></code> files</p></li> |
| 631 |
<li><p>Preview translations on HTML files</p></li> |
| 632 |
</ol> |
| 633 |
<section id="translate-the-documentation-in-edit-po-files"> |
| 634 |
<h3><span class="section-number">12.2.1.9.1. </span>Translate the documentation in <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files<a class="headerlink" href="#translate-the-documentation-in-edit-po-files" title="Link to this heading">#</a></h3> |
| 635 |
<p>Use the following command to generate <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files, which are translation files, corresponding to your changes. The generated files will be located in <code class="docutils literal notranslate"><span class="pre">../groonga.doc/doc/locale/${LANGUAGE}/LC_MESSAGES</span></code>. Each file corresponds to a <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> file. Please add your translations to <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files:</p> |
| 636 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>cmake<span class="w"> </span>--build<span class="w"> </span>../groonga.doc |
| 637 |
</pre></div> |
| 638 |
</div> |
| 639 |
<p>For example, if you have edited the <a class="reference internal" href="#"><span class="doc">Introduction</span></a> page and want to add Japanese translations, update this <code class="docutils literal notranslate"><span class="pre">../groonga.doc/doc/ja/LC_MESSAGES/contribution/documentation/introduction.edit.po</span></code> file.</p> |
| 640 |
<div class="admonition caution"> |
| 641 |
<p class="admonition-title">Caution</p> |
| 642 |
<p>Please do not modify the <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> files while adding translations to the <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files. |
| 643 |
Editing <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> files without first reflecting the translations in <code class="docutils literal notranslate"><span class="pre">.po</span></code> files will result in the loss of those translations. |
| 644 |
If you want to edit <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> files, ensure you first reflect your translations in <code class="docutils literal notranslate"><span class="pre">.po</span></code> files. |
| 645 |
The method to reflect translations will be introduced in the next step.</p> |
| 646 |
</div> |
| 647 |
</section> |
| 648 |
<section id="reflect-translations-to-po-files"> |
| 649 |
<h3><span class="section-number">12.2.1.9.2. </span>Reflect translations to <code class="docutils literal notranslate"><span class="pre">.po</span></code> files<a class="headerlink" href="#reflect-translations-to-po-files" title="Link to this heading">#</a></h3> |
| 650 |
<p>After adding your translations to the <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files, the next step is to reflect these translations to the <code class="docutils literal notranslate"><span class="pre">.po</span></code> files. <code class="docutils literal notranslate"><span class="pre">.po</span></code> files are the finalized translation files. These <code class="docutils literal notranslate"><span class="pre">.po</span></code> files are located in <code class="docutils literal notranslate"><span class="pre">doc/locale/${LANGUAGE}/LC_MESSAGES</span></code>. Each file corresponds to a <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> file. If you want to edit your translations, edit the corresponding <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> file and then reflect your changes to the <code class="docutils literal notranslate"><span class="pre">.po</span></code> file.</p> |
| 651 |
<p>To reflect translations from the <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files to the <code class="docutils literal notranslate"><span class="pre">.po</span></code> files, use the following command:</p> |
| 652 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>cmake<span class="w"> </span>--build<span class="w"> </span>../groonga.doc |
| 653 |
</pre></div> |
| 654 |
</div> |
| 655 |
<p>For example, if you have added Japanese translations about the <a class="reference internal" href="#"><span class="doc">Introduction</span></a> page and then execute the command above, your translations will be reflected to <code class="docutils literal notranslate"><span class="pre">/doc/locale/ja/LC_MESSAGES/contribution/documentation/introduction.po</span></code> file.</p> |
| 656 |
<div class="admonition note"> |
| 657 |
<p class="admonition-title">Note</p> |
| 658 |
<p>Actually, the command to generate translation <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files is the same as the one used for reflecting translations. |
| 659 |
Therefore, there’s no need to memorize different commands for generating translation files and reflecting the translations.</p> |
| 660 |
</div> |
| 661 |
</section> |
| 662 |
<section id="preview-translations-on-html-files"> |
| 663 |
<h3><span class="section-number">12.2.1.9.3. </span>Preview translations on HTML files<a class="headerlink" href="#preview-translations-on-html-files" title="Link to this heading">#</a></h3> |
| 664 |
<p>You can preview your translations in your Web browser in HTML format. The step for reflecting translations into <code class="docutils literal notranslate"><span class="pre">.po</span></code> files also generates the corresponding HTML files. These files are located in <code class="docutils literal notranslate"><span class="pre">../groonga.doc/doc/${LANGUAGE}/html/</span></code>. Each file corresponds to a <code class="docutils literal notranslate"><span class="pre">.rst</span></code> or <code class="docutils literal notranslate"><span class="pre">.md</span></code> file. Open the generated HTML file in your Web browser to review your translations.</p> |
| 665 |
<p>For example, to preview the Japanese translation of the <a class="reference internal" href="#"><span class="doc">Introduction</span></a> page, use the following command:</p> |
| 666 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">% </span>open<span class="w"> </span>../groonga.doc/doc/ja/html/contribution/documentation/introduction.html |
| 667 |
</pre></div> |
| 668 |
</div> |
| 669 |
<p>If the translations seem correct after preview, please send a patch. For more information on this process, see the <a class="reference internal" href="#send-patch">Send patch</a></p> |
| 670 |
</section> |
| 671 |
</section> |
| 672 |
</section> |
| 673 |
|
| 674 |
|
| 675 |
</article> |
| 676 |
|
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
|
| 681 |
<footer class="prev-next-footer d-print-none"> |
| 682 |
|
| 683 |
<div class="prev-next-area"> |
| 684 |
<a class="left-prev" |
| 685 |
href="../documentation.html" |
| 686 |
title="previous page"> |
| 687 |
<i class="fa-solid fa-angle-left"></i> |
| 688 |
<div class="prev-next-info"> |
| 689 |
<p class="prev-next-subtitle">previous</p> |
| 690 |
<p class="prev-next-title"><span class="section-number">12.2. </span>How to contribute in documentation topics</p> |
| 691 |
</div> |
| 692 |
</a> |
| 693 |
<a class="right-next" |
| 694 |
href="i18n.html" |
| 695 |
title="next page"> |
| 696 |
<div class="prev-next-info"> |
| 697 |
<p class="prev-next-subtitle">next</p> |
| 698 |
<p class="prev-next-title"><span class="section-number">12.2.2. </span>I18N</p> |
| 699 |
</div> |
| 700 |
<i class="fa-solid fa-angle-right"></i> |
| 701 |
</a> |
| 702 |
</div> |
| 703 |
</footer> |
| 704 |
|
| 705 |
</div> |
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
<dialog id="pst-secondary-sidebar-modal"></dialog> |
| 710 |
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner"> |
| 711 |
|
| 712 |
|
| 713 |
<div class="sidebar-secondary-item"> |
| 714 |
<div |
| 715 |
id="pst-page-navigation-heading-2" |
| 716 |
class="page-toc tocsection onthispage"> |
| 717 |
<i class="fa-solid fa-list"></i> On this page |
| 718 |
</div> |
| 719 |
<nav id="pst-page-toc-nav" class="page-toc" aria-labelledby="pst-page-navigation-heading-2"> |
| 720 |
<ul class="pst-show_toc_level nav section-nav flex-column"> |
| 721 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-fork-and-clone-groonga-repository">12.2.1.1. How to fork and clone Groonga repository</a></li> |
| 722 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#install-dependent-software">12.2.1.2. Install dependent software</a></li> |
| 723 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#run-cmake-with-preset-doc">12.2.1.3. Run <code class="docutils literal notranslate"><span class="pre">cmake</span></code> with <code class="docutils literal notranslate"><span class="pre">--preset=doc</span></code></a></li> |
| 724 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#generate-html">12.2.1.4. Generate HTML</a></li> |
| 725 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-edit-documentation">12.2.1.5. How to edit documentation</a></li> |
| 726 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#how-to-add-a-new-documentation">12.2.1.6. How to add a new documentation</a></li> |
| 727 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#preview-changes-on-html-files">12.2.1.7. Preview changes on HTML files</a><ul class="nav section-nav flex-column"> |
| 728 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#generate-the-html-files-with-your-changes">12.2.1.7.1. Generate the HTML files with your changes</a></li> |
| 729 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#preview-the-generated-html-files-in-your-web-browser">12.2.1.7.2. Preview the generated HTML files in your Web browser</a></li> |
| 730 |
</ul> |
| 731 |
</li> |
| 732 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#send-patch">12.2.1.8. Send patch</a><ul class="nav section-nav flex-column"> |
| 733 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#enable-preview-on-your-fork-optional">12.2.1.8.1. Enable preview on your fork (optional)</a></li> |
| 734 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#prepare-your-pull-request">12.2.1.8.2. Prepare your pull request</a></li> |
| 735 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#submit-your-pull-request">12.2.1.8.3. Submit your pull request</a></li> |
| 736 |
</ul> |
| 737 |
</li> |
| 738 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#optional-translate-documentation">12.2.1.9. Optional: Translate documentation</a><ul class="nav section-nav flex-column"> |
| 739 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#translate-the-documentation-in-edit-po-files">12.2.1.9.1. Translate the documentation in <code class="docutils literal notranslate"><span class="pre">.edit.po</span></code> files</a></li> |
| 740 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#reflect-translations-to-po-files">12.2.1.9.2. Reflect translations to <code class="docutils literal notranslate"><span class="pre">.po</span></code> files</a></li> |
| 741 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#preview-translations-on-html-files">12.2.1.9.3. Preview translations on HTML files</a></li> |
| 742 |
</ul> |
| 743 |
</li> |
| 744 |
</ul> |
| 745 |
</nav></div> |
| 746 |
|
| 747 |
<div class="sidebar-secondary-item"> |
| 748 |
|
| 749 |
|
| 750 |
<div class="tocsection editthispage"> |
| 751 |
<a href="https://github.com/groonga/groonga/edit/main/doc/source/contribution/documentation/introduction.md"> |
| 752 |
<i class="fa-solid fa-pencil"></i> |
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
Edit on GitHub |
| 757 |
|
| 758 |
|
| 759 |
</a> |
| 760 |
</div> |
| 761 |
</div> |
| 762 |
|
| 763 |
</div></div> |
| 764 |
|
| 765 |
|
| 766 |
</div> |
| 767 |
<footer class="bd-footer-content"> |
| 768 |
|
| 769 |
</footer> |
| 770 |
|
| 771 |
</main> |
| 772 |
</div> |
| 773 |
</div> |
| 774 |
|
| 775 |
|
| 776 |
<script defer src="../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9"></script> |
| 777 |
<script defer src="../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9"></script> |
| 778 |
|
| 779 |
<footer class="bd-footer"> |
| 780 |
<div class="bd-footer__inner bd-page-width"> |
| 781 |
|
| 782 |
<div class="footer-items__start"> |
| 783 |
|
| 784 |
<div class="footer-item"> |
| 785 |
|
| 786 |
<p class="copyright"> |
| 787 |
|
| 788 |
© Copyright 2009-2026 Groonga Project. |
| 789 |
<br/> |
| 790 |
|
| 791 |
</p> |
| 792 |
</div> |
| 793 |
|
| 794 |
</div> |
| 795 |
|
| 796 |
|
| 797 |
|
| 798 |
<div class="footer-items__end"> |
| 799 |
|
| 800 |
<div class="footer-item"> |
| 801 |
<p class="theme-version"> |
| 802 |
|
| 803 |
Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.20.0. |
| 804 |
</p></div> |
| 805 |
|
| 806 |
</div> |
| 807 |
|
| 808 |
</div> |
| 809 |
|
| 810 |
</footer> |
| 811 |
</body> |
| 812 |
</html> |