wiki_admin.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>Wiki Admin :: jMonkeyEngine Docs</title>
  7. <link rel="canonical" href="https://wiki.jmonkeyengine.org/docs-wiki/3.8/wiki_admin.html">
  8. <link rel="prev" href="wiki_contributor.html">
  9. <link rel="next" href="emoji.html">
  10. <meta name="generator" content="Antora 3.0.1">
  11. <link rel="stylesheet" href="../../_/css/site.css">
  12. <meta property="og:image" content="https://wiki.jmonkeyengine.org/_/img/iconx128.png">
  13. <meta property="og:description" content="Wiki Admin">
  14. <meta property="og:title" content="jMonkeyEngine Docs">
  15. <link rel="stylesheet" href="../../_/css/site-extra.css">
  16. <link rel="stylesheet" href="../../_/css/vendor/docsearch.min.css">
  17. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css -->
  18. <link rel="icon" href="../../_/img/favicon.ico" type="image/x-icon">
  19. </head>
  20. <body class="article">
  21. <header class="header">
  22. <nav class="navbar">
  23. <div class="navbar-brand">
  24. <a class="navbar-item" href="https://wiki.jmonkeyengine.org">
  25. <img alt="" src="../../_/img/jme-logo.png" height="32" type="image/x-icon">
  26. </a>
  27. <div class="navbar-item hide-for-print">
  28. <input id="search-input" type="text" placeholder="Search docs">
  29. </div>
  30. <button class="navbar-burger" data-target="topbar-nav">
  31. <span></span>
  32. <span></span>
  33. <span></span>
  34. </button>
  35. </div>
  36. <div id="topbar-nav" class="navbar-menu">
  37. <div class="navbar-end">
  38. <div class="navbar-item theme-switch-wrapper">
  39. <label class="theme-switch" for="checkbox">
  40. <input type="checkbox" id="checkbox" />
  41. <div class="slider round"></div>
  42. </label>
  43. </div>
  44. <a class="navbar-item" href="https://github.com/jmonkeyengine/wiki">Github</a>
  45. </div>
  46. </div>
  47. </nav>
  48. </header>
  49. <div class="body">
  50. <div class="nav-container" data-component="docs-wiki" data-version="3.8">
  51. <aside class="nav">
  52. <div class="panels">
  53. <div class="nav-panel-menu is-active" data-panel="menu">
  54. <nav class="nav-menu">
  55. <h3 class="title"><a href="wiki_contributor.html">Wiki Contribution</a></h3>
  56. <ul class="nav-list">
  57. <li class="nav-item" data-depth="0">
  58. <ul class="nav-list">
  59. <li class="nav-item" data-depth="1">
  60. <a class="nav-link" href="wiki_contributor.html">Contributor</a>
  61. </li>
  62. <li class="nav-item is-current-page" data-depth="1">
  63. <a class="nav-link" href="wiki_admin.html">Admin</a>
  64. </li>
  65. <li class="nav-item" data-depth="1">
  66. <a class="nav-link" href="emoji.html">Emoji</a>
  67. </li>
  68. <li class="nav-item" data-depth="1">
  69. <a class="nav-link" href="atom_editor.html">Atom Editor</a>
  70. </li>
  71. <li class="nav-item" data-depth="1">
  72. <a class="nav-link" href="atom_snippets.html">Atom Snippets</a>
  73. </li>
  74. </ul>
  75. </li>
  76. </ul>
  77. </nav>
  78. </div>
  79. <div class="nav-panel-explore" data-panel="explore">
  80. <div class="context">
  81. <span class="title">Wiki Contribution</span>
  82. <span class="version">3.8</span>
  83. </div>
  84. <ul class="components">
  85. <li class="component">
  86. <span class="title">JME</span>
  87. <ul class="versions">
  88. <li class="version">
  89. <a href="../../docs/3.8/documentation.html">3.8</a>
  90. </li>
  91. <li class="version">
  92. <a href="../../docs/3.4/documentation.html">3.4</a>
  93. </li>
  94. <li class="version">
  95. <a href="../../docs/3.3/documentation.html">3.3</a>
  96. </li>
  97. <li class="version">
  98. <a href="../../docs/3.2/documentation.html">3.2</a>
  99. </li>
  100. </ul>
  101. </li>
  102. <li class="component is-current">
  103. <span class="title">Wiki Contribution</span>
  104. <ul class="versions">
  105. <li class="version is-current">
  106. <a href="wiki_contributor.html">3.8</a>
  107. </li>
  108. </ul>
  109. </li>
  110. <li class="component">
  111. <span class="title">Wiki UI</span>
  112. <ul class="versions">
  113. <li class="version">
  114. <a href="../../wiki-ui/index.html">master</a>
  115. </li>
  116. </ul>
  117. </li>
  118. </ul>
  119. </div>
  120. </div>
  121. </aside>
  122. </div>
  123. <main class="article">
  124. <div class="toolbar" role="navigation">
  125. <button class="nav-toggle"></button>
  126. <nav class="breadcrumbs" aria-label="breadcrumbs">
  127. <ul>
  128. <li><a href="wiki_contributor.html">Wiki Contribution</a></li>
  129. <li><a href="wiki_admin.html">Admin</a></li>
  130. </ul>
  131. </nav>
  132. <div class="edit-this-page"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/docs-wiki/modules/ROOT/pages/wiki_admin.adoc">Edit this Page</a></div>
  133. </div>
  134. <div class="content">
  135. <article class="doc">
  136. <h1 class="page">Wiki Admin</h1>
  137. <div class="sect1">
  138. <h2 id="overview"><a class="anchor" href="#overview"></a>Overview</h2>
  139. <div class="sectionbody">
  140. <div class="paragraph">
  141. <p>The wiki consists of two repositories.</p>
  142. </div>
  143. <div class="ulist">
  144. <ul>
  145. <li>
  146. <p><a href="https://github.com/jMonkeyEngine/wiki">wiki</a></p>
  147. </li>
  148. <li>
  149. <p><a href="https://github.com/jMonkeyEngine/wiki-ui">wiki-ui</a></p>
  150. </li>
  151. </ul>
  152. </div>
  153. <div class="paragraph">
  154. <p>The wiki repository holds all documentation while the wiki-ui repository is the user interface for the documentation.</p>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="sect1">
  159. <h2 id="wiki"><a class="anchor" href="#wiki"></a>Wiki</h2>
  160. <div class="sectionbody">
  161. <div class="paragraph">
  162. <p>The wiki repository has a workflow that will be triggered when any push is made to the repository or whenever the user interface issues a new release. Every build, all pages are deleted and re-created. The workflow will cache the user interface under the <code><span class="menuseq"><b class="menu">cache</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">antora</b></span></code> directory if there are any changes and the cache folder has been added to the commit command.</p>
  163. </div>
  164. <div class="listingblock">
  165. <div class="content">
  166. <pre class="highlightjs highlight"><code class="language-yml hljs" data-lang="yml"> # Detects any updates to package-lock.json and package.json and commits the
  167. # files to root.
  168. # see:
  169. # https://github.com/marketplace/actions/add-commit?version=v4.1.0
  170. # for use options.
  171. - name: Commit Packages
  172. uses: EndBug/add-and-commit@v4
  173. with:
  174. author_name: mitm001
  175. author_email: [email protected]
  176. message: "Commit files for CI workflow"
  177. # Commits these files to root if and only if there are changes.
  178. add: "package-lock.json package.json ./.cache/antora/*"
  179. env:
  180. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}</code></pre>
  181. </div>
  182. </div>
  183. <div class="paragraph">
  184. <p>This cache allows the build process to run offline.</p>
  185. </div>
  186. <div class="paragraph">
  187. <p>The workflow can be configured to update the <code>package-lock</code> and <code>package.json</code> files by editing the <code>Install Node</code> command, just as if you were running this from a local repo.</p>
  188. </div>
  189. <div class="paragraph">
  190. <p>DO NOT UPDATE OR PUSH THESE FILES UNLESS YOU DISCUSS IT WITH THE OTHER ADMINISTRATORS FIRST!</p>
  191. </div>
  192. <div class="paragraph">
  193. <p>The workflow file <code>main.yml</code>, located under <span class="menuseq"><b class="menu">github</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">workflows</b></span>, can only be edited and pushed using either the github online interface or by using git bash locally and pushing the commit. Using the Atom Editor or git desktop git commands will fail currently at the time of this writing.</p>
  194. </div>
  195. <div class="paragraph">
  196. <p>The <code>supplemental-ui</code> folder holds the content for Anotra search, the header and footer for the ui. Edit these as needed in the wiki repository, but <strong>do not edit</strong> these same files on the <code>wiki-ui</code> repository.</p>
  197. </div>
  198. <div class="paragraph">
  199. <p>Technically, the entire ui can be configured from the wiki repo.</p>
  200. </div>
  201. <div class="paragraph">
  202. <p>The wiki is an <a href="https://docs.antora.org/antora/2.3/">Antora</a> site using the <a href="https://asciidoctor.org/docs/user-manual/">asciidoctor</a> syntax. A quick primer for syntax can be found <a href="https://docs.antora.org/antora/2.3/asciidoc/asciidoc/">here</a>.</p>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="sect1">
  207. <h2 id="source-files"><a class="anchor" href="#source-files"></a>Source files</h2>
  208. <div class="sectionbody">
  209. <div class="paragraph">
  210. <p>The source structure is now modularized.</p>
  211. </div>
  212. <div class="ulist">
  213. <ul>
  214. <li>
  215. <p>ROOT - holds content that introduces new users to the jMonkyEngine, installing and features.</p>
  216. </li>
  217. <li>
  218. <p>core - this is the main module for any content that is <strong>specific</strong> to an existing jMonkeyEngine class. It maintains similar directories as are found in the jMonkeyEngine <a href="https://github.com/jMonkeyEngine/jmonkeyengine">repository</a>.</p>
  219. </li>
  220. <li>
  221. <p>networking - holds content <strong>specific</strong> to jMonkeyEngine networking.</p>
  222. </li>
  223. <li>
  224. <p>physics - holds content <strong>specific</strong> to jMonkeyEngine physics.</p>
  225. </li>
  226. <li>
  227. <p>tutorials - holds any content that is <strong>not specific</strong> to any jMonkeyEngine class, may be a generalized concept, may give direction on how to use the engine, or an article of some type about an engine feature.</p>
  228. </li>
  229. <li>
  230. <p>sdk - sdk content only. This module may be moved to the sdk repository in the future.</p>
  231. </li>
  232. <li>
  233. <p>contributions - existing user project pages. This is a deprecated module and will be removed in the near furture. Do not add new content to this module.</p>
  234. </li>
  235. </ul>
  236. </div>
  237. <div class="paragraph">
  238. <p>You can decide if a page belongs in the core module by asking yourself a simple question.</p>
  239. </div>
  240. <div class="paragraph">
  241. <p><em>Does the page explain an existing jMonkeyEngine class (excluding physics and networking) found in the jMonkeyEngine repository, without using an external application?</em></p>
  242. </div>
  243. <div class="paragraph">
  244. <p>If yes, then it belongs, otherwise it needs to go someplace else.</p>
  245. </div>
  246. </div>
  247. </div>
  248. <div class="sect1">
  249. <h2 id="broken-link-checking"><a class="anchor" href="#broken-link-checking"></a>Broken link checking</h2>
  250. <div class="sectionbody">
  251. <div class="paragraph">
  252. <p>There is a workflow that can be used to check for broken links.</p>
  253. </div>
  254. <div class="paragraph">
  255. <p><a href="https://github.com/mitm001/link-checker/blob/master/.github/workflows/main.yml">link-checker</a></p>
  256. </div>
  257. <div class="paragraph">
  258. <p>To use it, simply create a repository, paste a copy of the workflow into the <code><span class="menuseq"><b class="menu">github</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">workflows</b></span></code> directory. Before commiting for the first time, set the <a href="https://github.com/mitm001/link-checker/blob/abddf3d5012b90186ae485073a8c1aaf15a3c447/.github/workflows/main.yml#L25">repo url</a> to point to the wiki.</p>
  259. </div>
  260. <div class="paragraph">
  261. <p>If there are any errors, a <code>linkchecker.md</code> or <code>unresolved.md</code> file will be committed to your repository under the <code>checked-links</code> directory. You may need to issue a pull request after a push because of this. The typical workflow consists of fixing reported broken links, deleting all <code>.md</code> files and pushing to the repo. Then issue a pull request to see if there are any remaining problems. These files will only be built if there are errors.</p>
  262. </div>
  263. <div class="paragraph">
  264. <p>If there are no files in the <code>link-checker</code> directory and you need to run a check, just create any new file in the <code>link-checker</code> directory and push it.</p>
  265. </div>
  266. <div class="paragraph">
  267. <p>The reason for two files is that the <code>peter-evans/link-checker@v1</code> action is not capable of reading relative links properly. This is the only action that is available currently. However, we are in luck in that the Anotora build will set a class on any relative link that fails named <code>class="page unresolved"</code>. We can then use a grep command to parse the gh-pages branch and find any file with this class and write it to file.</p>
  268. </div>
  269. <div class="paragraph">
  270. <p>This is an example of the output for a broken relative link.</p>
  271. </div>
  272. <div class="listingblock">
  273. <div class="content">
  274. <pre class="highlightjs highlight"><code class="language-none hljs">tutorials/beginner/hello_collision.html:1289:&lt;p&gt;For a detailed description of the separate jar files see
  275. &lt;a href="#getting-started/jme3_source_structure.adoc#structure-of-jmonkeyengine3-jars"
  276. class="page unresolved"&gt;this list&lt;/a&gt;.&lt;/p&gt;</code></pre>
  277. </div>
  278. </div>
  279. <div class="paragraph">
  280. <p>This gives you the file name:</p>
  281. </div>
  282. <div class="listingblock">
  283. <div class="content">
  284. <pre class="highlightjs highlight"><code class="language-none hljs">tutorials/beginner/hello_collision.html</code></pre>
  285. </div>
  286. </div>
  287. <div class="paragraph">
  288. <p>and the name of the broken link to search for in the file:</p>
  289. </div>
  290. <div class="listingblock">
  291. <div class="content">
  292. <pre class="highlightjs highlight"><code class="language-none hljs">#getting-started/jme3_source_structure.adoc#structure-of-jmonkeyengine3-jars</code></pre>
  293. </div>
  294. </div>
  295. <div class="paragraph">
  296. <p>All broken links start with a <kbd>#</kbd> sign. In this instance, we have an inter document link thats broken as there are two pound signs.</p>
  297. </div>
  298. <div class="paragraph">
  299. <p>The <code>peterevans</code> action will locate all broken image and web urls. There is a problem though that prevents its full use, which is running this on a schedule and automatically opening issues. When Antora builds a site, it will build links from the &#8220;nav-menu&#8221; and &#8220;Table of Contents&#8221; into every page. This will lead to <code>Too Many Requests (HTTP error 429)</code> errors. The easiest way to get around this would be to filter the href attribute class for the <code>nav-link</code> class, since we know these links are good, and skip them. This is currently not possible using the <code>petereveans</code> action. To work around it, just search the <code>linkchecker.md</code> for <code>file or directory</code> errors.</p>
  300. </div>
  301. </div>
  302. </div>
  303. <div class="sect1">
  304. <h2 id="user-interface"><a class="anchor" href="#user-interface"></a>User Interface</h2>
  305. <div class="sectionbody">
  306. <div class="paragraph">
  307. <p>The <code>wiki-ui</code> repository has two workflows. A workflow that will build on any push (main.yml), and one that builds on pushing a tag (release.yml). If you push any tag to the master branch, a release will be created, triggering the wiki build, thereby updating the wiki cache and user interface for the wiki.</p>
  308. </div>
  309. <div class="paragraph">
  310. <p>This will allow you to make changes to the ui without triggering a build unless you are ready.</p>
  311. </div>
  312. <div class="paragraph">
  313. <p>The user interface uses standard html in its templates so editing should be familiar to anyone who knows html.</p>
  314. </div>
  315. </div>
  316. </div>
  317. <div class="sect1">
  318. <h2 id="versioning"><a class="anchor" href="#versioning"></a>Versioning</h2>
  319. <div class="sectionbody">
  320. <div class="paragraph">
  321. <p>There are two files that control versioning for the wiki, each serves a different purpose.</p>
  322. </div>
  323. <div class="olist arabic">
  324. <ol class="arabic">
  325. <li>
  326. <p><code>wiki-playbook.yml</code> - determines what branches to use for content.</p>
  327. </li>
  328. <li>
  329. <p><code>antora.yml</code> - controls module versioning.</p>
  330. </li>
  331. </ol>
  332. </div>
  333. <div class="paragraph">
  334. <p>The wiki uses branches for versioning. The current branch being used for the jMonkeyEngine is <strong>always</strong> the master branch of the wiki. In the playbook this is known as the <code><strong>HEAD</strong></code> branch.</p>
  335. </div>
  336. <div class="paragraph">
  337. <p>The <code>docs</code> module is the main module for the wiki. Its <code>antora.yml</code> file controls the version of the wiki. The playbook uses this version to create the folders inside the <code>gh-pages</code> branch, building the content from the branches configured in the playbook.</p>
  338. </div>
  339. <div class="paragraph">
  340. <p>Branch version names should only target major/minor releases, not the patch of a version, and start with &#8220;v&#8221;.</p>
  341. </div>
  342. <div class="paragraph">
  343. <p>When it&#8217;s time to cut a new version for the wiki, the process is as follows.</p>
  344. </div>
  345. <div class="olist arabic">
  346. <ol class="arabic">
  347. <li>
  348. <p>Create and checkout a new branch that matches the <strong>current version</strong> of the wiki. If the current version (HEAD) is targeting version 3.3 in the <code>antora.yml</code> for example, you would name the new branch <code>v3.3</code>. Thereby preserving the current master branch content.</p>
  349. </li>
  350. <li>
  351. <p>We do not want the Antora <code>.cache</code> to be versioned so you need to delete it from the new version branch if it has been commited to the repo.</p>
  352. </li>
  353. <li>
  354. <p>Push the branch to the repository.</p>
  355. </li>
  356. <li>
  357. <p>Switch to the <code>master</code> branch and edit these files:</p>
  358. <div class="olist loweralpha">
  359. <ol class="loweralpha" type="a">
  360. <li>
  361. <p>Add the newly created branch to the <code>branches:</code> array in <code>wiki-playbook.yml</code>.</p>
  362. <div class="listingblock">
  363. <div class="title">wiki-playbook.yml</div>
  364. <div class="content">
  365. <pre class="highlightjs highlight"><code class="language-none hljs">content:
  366. sources:
  367. - url: https://github.com/jMonkeyEngine/wiki.git
  368. branches: [HEAD, v3.4, v3.3, v3.2]</code></pre>
  369. </div>
  370. </div>
  371. </li>
  372. <li>
  373. <p>Increment the version of the <code>antora.yml</code> file.</p>
  374. <div class="openblock">
  375. <div class="content">
  376. <div class="listingblock">
  377. <div class="title">The docs antora.yml</div>
  378. <div class="content">
  379. <pre class="highlightjs highlight"><code class="language-none hljs">name: docs
  380. title: JME
  381. version: '3.4'</code></pre>
  382. </div>
  383. </div>
  384. <div class="listingblock">
  385. <div class="title">The docs-wiki antora.yml</div>
  386. <div class="content">
  387. <pre class="highlightjs highlight"><code class="language-none hljs">name: docs-wiki
  388. title: Wiki Contribution
  389. version: '3.4'</code></pre>
  390. </div>
  391. </div>
  392. <div class="admonitionblock note">
  393. <table>
  394. <tr>
  395. <td class="icon">
  396. <i class="fa icon-note" title="Note"></i>
  397. </td>
  398. <td class="content">
  399. The version value is enclosed in a set of single quote marks (') because it starts with a number. As was mentioned earlier, the module versioning is controlled by the <code>antora.yml</code> file, not the playbook, so they do not have to match.
  400. </td>
  401. </tr>
  402. </table>
  403. </div>
  404. </div>
  405. </div>
  406. </li>
  407. </ol>
  408. </div>
  409. </li>
  410. <li>
  411. <p>Edit any links found in the <code>README.adoc</code>, located in the root of the repository, that are versioned, so they match the version value you just set in the <code>antora.yml</code> file.</p>
  412. </li>
  413. <li>
  414. <p>Stage, commit and push your changes to the repository.</p>
  415. </li>
  416. </ol>
  417. </div>
  418. <div class="paragraph">
  419. <p>The wiki versioning is now complete but you will need to update the docsearch repo to reflect the changes so that search works properly.</p>
  420. </div>
  421. <div class="olist arabic">
  422. <ol class="arabic">
  423. <li>
  424. <p>Navigate to the Algolia <code>docsearch-config</code> repo and update the search script.</p>
  425. <div class="paragraph">
  426. <p><a href="https://github.com/algolia/docsearch-configs" class="bare">https://github.com/algolia/docsearch-configs</a></p>
  427. </div>
  428. </li>
  429. <li>
  430. <p>From the main page, click the <b class="button">Go to file</b> button and Enter <code>jmonkeyengine</code> into the search line.</p>
  431. </li>
  432. <li>
  433. <p>Edit the version line to point to the new version used in the <code>Antora.yml</code> file. In this example, the current search is targeting 3.3.</p>
  434. <div class="openblock">
  435. <div class="content">
  436. <div class="listingblock">
  437. <div class="title">Old jmonkeyengine.json</div>
  438. <div class="content">
  439. <pre class="highlightjs highlight"><code class="language-.json hljs" data-lang=".json">{
  440. "index_name": "jmonkeyengine",
  441. "start_urls": [
  442. {
  443. "url": "https://wiki.jmonkeyengine.org/docs/(?P&lt;version&gt;.*?)/",
  444. "variables": {
  445. "version": [
  446. "3.3"
  447. ]
  448. }
  449. }
  450. ],
  451. ...
  452. }</code></pre>
  453. </div>
  454. </div>
  455. <div class="paragraph">
  456. <p>The master branch <code>Antora.yml</code> file is using 3.4.</p>
  457. </div>
  458. <div class="listingblock">
  459. <div class="title">Antora.yml</div>
  460. <div class="content">
  461. <pre class="highlightjs highlight"><code class="language-yml hljs" data-lang="yml"> name: docs
  462. title: JME
  463. version: '3.4'
  464. ...</code></pre>
  465. </div>
  466. </div>
  467. <div class="paragraph">
  468. <p>Edit the <code>jmonkeyengine.json</code> file and push your commit to update the search. It takes approximately 24hrs after the commit is merged for it to take effect.</p>
  469. </div>
  470. <div class="listingblock">
  471. <div class="title">Updated jmonkeyengine.json</div>
  472. <div class="content">
  473. <pre class="highlightjs highlight"><code class="language-.json hljs" data-lang=".json">{
  474. "index_name": "jmonkeyengine",
  475. "start_urls": [
  476. {
  477. "url": "https://wiki.jmonkeyengine.org/docs/(?P&lt;version&gt;.*?)/",
  478. "variables": {
  479. "version": [
  480. "3.4"
  481. ]
  482. }
  483. }
  484. ],
  485. ...
  486. }</code></pre>
  487. </div>
  488. </div>
  489. </div>
  490. </div>
  491. </li>
  492. </ol>
  493. </div>
  494. <div class="paragraph">
  495. <p>Things to know about versions and component modules.</p>
  496. </div>
  497. <div class="paragraph">
  498. <p>If a version isn&#8217;t specified in the target page ID (xref:[email protected][link text]), and the target and current pages belong to a different docs components, Antora will use the latest version of the target component to complete the page ID.</p>
  499. </div>
  500. <div class="paragraph">
  501. <p>At the time of this writing, we have two links in the <code>docs</code> module (documentation.adoc page) that link to the <code>docs-wiki</code> module and one that points from the <code>docs-wiki</code> module to the <code>docs</code> module license.</p>
  502. </div>
  503. <div class="paragraph">
  504. <p>Since this is a wiki module, we would want to point to the most current content so not versioning them is the best approach.</p>
  505. </div>
  506. </div>
  507. </div>
  508. <nav class="pagination">
  509. <span class="prev"><a href="wiki_contributor.html">Contributor</a></span>
  510. <span class="next"><a href="emoji.html">Emoji</a></span>
  511. </nav>
  512. </article>
  513. <aside class="toc sidebar" data-title="Contents" data-levels="2">
  514. <div class="toc-menu"></div>
  515. </aside>
  516. </div>
  517. </main>
  518. </div>
  519. <footer class="footer">
  520. <p>Copyright 2020 jMonkeyEngine Wiki Contributors. Licensed BSD-3.</p>
  521. </footer>
  522. <script src="../../_/js/vendor/docsearch.min.js"></script>
  523. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js -->
  524. <script>
  525. var search = docsearch({
  526. apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
  527. indexName: 'jmonkeyengine',
  528. inputSelector: '#search-input',
  529. autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] },
  530. algoliaOptions: { hitsPerPage: 10 }
  531. }).autocomplete
  532. search.on('autocomplete:closed', function () { search.autocomplete.setVal() })
  533. function focusSearchInput () { document.querySelector('#search-input').focus() }
  534. if (document.querySelector('.home-link.is-current')) window.addEventListener('load', focusSearchInput)
  535. </script>
  536. <script src="../../_/js/site.js"></script>
  537. <script async src="../../_/js/vendor/highlight.js"></script>
  538. </body>
  539. </html>