wiki_translation.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  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 Translation Repositories :: jMonkeyEngine Docs</title>
  7. <link rel="canonical" href="https://wiki.jmonkeyengine.org/docs/wiki/wiki_translation.html">
  8. <meta name="generator" content="Antora 2.3.3">
  9. <link rel="stylesheet" href="../../_/css/site.css">
  10. <meta property="og:image" content="https://wiki.jmonkeyengine.org/_/img/iconx128.png">
  11. <meta property="og:description" content="Wiki Translation Repositories">
  12. <meta property="og:title" content="jMonkeyEngine Docs">
  13. <link rel="stylesheet" href="../../_/css/site-extra.css">
  14. <link rel="stylesheet" href="../../_/css/vendor/docsearch.min.css">
  15. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css -->
  16. <link rel="icon" href="../../_/img/favicon.ico" type="image/x-icon">
  17. </head>
  18. <body class="article">
  19. <header class="header">
  20. <nav class="navbar">
  21. <div class="navbar-brand">
  22. <a class="navbar-item" href="https://wiki.jmonkeyengine.org">
  23. <img alt="" src="../../_/img/jMonkeyDocLogo.png" height="32" type="image/x-icon">
  24. </a>
  25. <div class="navbar-item hide-for-print">
  26. <input type="text" placeholder="Search docs..." id="search-input"/>
  27. </div>
  28. <button class="navbar-burger" data-target="topbar-nav">
  29. <span></span>
  30. <span></span>
  31. <span></span>
  32. </button>
  33. </div>
  34. <div id="topbar-nav" class="navbar-menu">
  35. <div class="navbar-end">
  36. <div class="navbar-item theme-switch-wrapper">
  37. <label class="theme-switch" for="checkbox">
  38. <input type="checkbox" id="checkbox" />
  39. <div class="slider round"></div>
  40. </label>
  41. </div>
  42. <a class="navbar-item" href="https://github.com/jmonkeyengine/wiki">Github</a>
  43. </div>
  44. </div>
  45. </nav>
  46. </header>
  47. <div class="body">
  48. <div class="nav-container" data-component="docs" data-version="master">
  49. <aside class="nav">
  50. <div class="panels">
  51. <div class="nav-panel-menu is-active" data-panel="menu">
  52. <nav class="nav-menu">
  53. <h3 class="title"><a href="../documentation.html">Docs</a></h3>
  54. <ul class="nav-list">
  55. <li class="nav-item" data-depth="0">
  56. <ul class="nav-list">
  57. <li class="nav-item" data-depth="1">
  58. <a class="nav-link" href="../documentation.html">Getting Started</a>
  59. </li>
  60. <li class="nav-item" data-depth="1">
  61. <a class="nav-link" href="https://javadoc.jmonkeyengine.org/v3.3.2-stable">JavaDoc</a>
  62. </li>
  63. <li class="nav-item" data-depth="1">
  64. <button class="nav-item-toggle"></button>
  65. <a class="nav-link" href="../jme3.html">jMonkeyEngine 3</a>
  66. <ul class="nav-list">
  67. <li class="nav-item" data-depth="2">
  68. <button class="nav-item-toggle"></button>
  69. <span class="nav-text">Beginner Tutorials</span>
  70. <ul class="nav-list">
  71. <li class="nav-item" data-depth="3">
  72. <a class="nav-link" href="../jme3/beginner/hello_simpleapplication.html">Hello SimpleApplication</a>
  73. </li>
  74. <li class="nav-item" data-depth="3">
  75. <a class="nav-link" href="../jme3/beginner/hello_node.html">Hello Node</a>
  76. </li>
  77. <li class="nav-item" data-depth="3">
  78. <a class="nav-link" href="../jme3/beginner/hello_asset.html">Hello Asset</a>
  79. </li>
  80. <li class="nav-item" data-depth="3">
  81. <a class="nav-link" href="../jme3/beginner/hello_main_event_loop.html">Hello Main Event Loop</a>
  82. </li>
  83. <li class="nav-item" data-depth="3">
  84. <a class="nav-link" href="../jme3/beginner/hello_input_system.html">Hello Input System</a>
  85. </li>
  86. <li class="nav-item" data-depth="3">
  87. <a class="nav-link" href="../jme3/beginner/hello_material.html">Hello Material</a>
  88. </li>
  89. <li class="nav-item" data-depth="3">
  90. <a class="nav-link" href="../jme3/beginner/hello_animation.html">Hello Animation</a>
  91. </li>
  92. <li class="nav-item" data-depth="3">
  93. <a class="nav-link" href="../jme3/beginner/hello_picking.html">Hello Picking</a>
  94. </li>
  95. <li class="nav-item" data-depth="3">
  96. <a class="nav-link" href="../jme3/beginner/hello_collision.html">Hello Collision</a>
  97. </li>
  98. <li class="nav-item" data-depth="3">
  99. <a class="nav-link" href="../jme3/beginner/hello_terrain.html">Hello Terrain</a>
  100. </li>
  101. <li class="nav-item" data-depth="3">
  102. <a class="nav-link" href="../jme3/beginner/hello_audio.html">Hello Audio</a>
  103. </li>
  104. <li class="nav-item" data-depth="3">
  105. <a class="nav-link" href="../jme3/beginner/hello_effects.html">Hello Effects</a>
  106. </li>
  107. <li class="nav-item" data-depth="3">
  108. <a class="nav-link" href="../jme3/beginner/hello_physics.html">Hello Physics</a>
  109. </li>
  110. </ul>
  111. </li>
  112. <li class="nav-item" data-depth="2">
  113. <button class="nav-item-toggle"></button>
  114. <span class="nav-text">Intermediate Tutorials</span>
  115. <ul class="nav-list">
  116. <li class="nav-item" data-depth="3">
  117. <button class="nav-item-toggle"></button>
  118. <span class="nav-text">Concepts</span>
  119. <ul class="nav-list">
  120. <li class="nav-item" data-depth="4">
  121. <a class="nav-link" href="../jme3/intermediate/best_practices.html">Best Practices</a>
  122. </li>
  123. <li class="nav-item" data-depth="4">
  124. <a class="nav-link" href="../jme3/intermediate/simpleapplication.html">Simple Application</a>
  125. </li>
  126. <li class="nav-item" data-depth="4">
  127. <a class="nav-link" href="../jme3/features.html">Features</a>
  128. </li>
  129. <li class="nav-item" data-depth="4">
  130. <a class="nav-link" href="../jme3/intermediate/optimization.html">Optimization</a>
  131. </li>
  132. <li class="nav-item" data-depth="4">
  133. <a class="nav-link" href="../jme3/faq.html">FAQ</a>
  134. </li>
  135. </ul>
  136. </li>
  137. <li class="nav-item" data-depth="3">
  138. <button class="nav-item-toggle"></button>
  139. <span class="nav-text">Math Concepts</span>
  140. <ul class="nav-list">
  141. <li class="nav-item" data-depth="4">
  142. <a class="nav-link" href="../jme3/math_for_dummies.html">Math For Dummies</a>
  143. </li>
  144. <li class="nav-item" data-depth="4">
  145. <a class="nav-link" href="../jme3/intermediate/math.html">Math</a>
  146. </li>
  147. <li class="nav-item" data-depth="4">
  148. <a class="nav-link" href="../jme3/math.html">More Math</a>
  149. </li>
  150. <li class="nav-item" data-depth="4">
  151. <a class="nav-link" href="../jme3/rotate.html">Rotate</a>
  152. </li>
  153. <li class="nav-item" data-depth="4">
  154. <a class="nav-link" href="../jme3/math_video_tutorials.html">Math Video Tutorials</a>
  155. </li>
  156. </ul>
  157. </li>
  158. <li class="nav-item" data-depth="3">
  159. <button class="nav-item-toggle"></button>
  160. <span class="nav-text">3D Graphics Concepts</span>
  161. <ul class="nav-list">
  162. <li class="nav-item" data-depth="4">
  163. <a class="nav-link" href="../jme3/intermediate/multi-media_asset_pipeline.html">Multi-Media Asset Pipeline</a>
  164. </li>
  165. <li class="nav-item" data-depth="4">
  166. <a class="nav-link" href="../jme3/scenegraph_for_dummies.html">Scenegraph for Dummies</a>
  167. </li>
  168. <li class="nav-item" data-depth="4">
  169. <a class="nav-link" href="../jme3/beginner/hellovector.html">Hello Vector</a>
  170. </li>
  171. <li class="nav-item" data-depth="4">
  172. <a class="nav-link" href="../jme3/terminology.html">Terminology</a>
  173. </li>
  174. <li class="nav-item" data-depth="4">
  175. <a class="nav-link" href="../jme3/intermediate/how_to_use_materials.html">How to Use Materials</a>
  176. </li>
  177. <li class="nav-item" data-depth="4">
  178. <a class="nav-link" href="../jme3/intermediate/transparency_sorting.html">Transparency and Sorting</a>
  179. </li>
  180. <li class="nav-item" data-depth="4">
  181. <a class="nav-link" href="../jme3/external/blender.html">Importing from Blender</a>
  182. </li>
  183. <li class="nav-item" data-depth="4">
  184. <a class="nav-link" href="../jme3/external/3dsmax.html">Importing from 3DS Max</a>
  185. </li>
  186. </ul>
  187. </li>
  188. </ul>
  189. </li>
  190. </ul>
  191. </li>
  192. <li class="nav-item" data-depth="1">
  193. <a class="nav-link" href="../logo.html">Logo Usage</a>
  194. </li>
  195. <li class="nav-item" data-depth="1">
  196. <a class="nav-link" href="../bsd_license.html">License</a>
  197. </li>
  198. <li class="nav-item" data-depth="1">
  199. <a class="nav-link" href="../github_tips.html">Github Tips</a>
  200. </li>
  201. </ul>
  202. </li>
  203. <li class="nav-item" data-depth="0">
  204. <button class="nav-item-toggle"></button>
  205. <span class="nav-text">SDK</span>
  206. <ul class="nav-list">
  207. <li class="nav-item" data-depth="1">
  208. <a class="nav-link" href="../sdk.html">jMonkeyEngine SDK</a>
  209. </li>
  210. </ul>
  211. </li>
  212. </ul>
  213. </nav>
  214. </div>
  215. <div class="nav-panel-explore" data-panel="explore">
  216. <div class="context">
  217. <span class="title">Docs</span>
  218. <span class="version">master</span>
  219. </div>
  220. <ul class="components">
  221. <li class="component is-current">
  222. <span class="title">Docs</span>
  223. <ul class="versions">
  224. <li class="version is-current is-latest">
  225. <a href="../documentation.html">master</a>
  226. </li>
  227. </ul>
  228. </li>
  229. <li class="component">
  230. <span class="title">Wiki UI</span>
  231. <ul class="versions">
  232. <li class="version is-latest">
  233. <a href="../../wiki-ui/index.html">master</a>
  234. </li>
  235. </ul>
  236. </li>
  237. </ul>
  238. </div>
  239. </div>
  240. </aside>
  241. </div>
  242. <main class="article">
  243. <div class="toolbar" role="navigation">
  244. <button class="nav-toggle"></button>
  245. <nav class="breadcrumbs" aria-label="breadcrumbs">
  246. <ul>
  247. <li><a href="../documentation.html">Docs</a></li>
  248. <li><a href="wiki_translation.html">Wiki Translation Repositories</a></li>
  249. </ul>
  250. </nav>
  251. <div class="edit-this-page"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/docs/modules/ROOT/pages/wiki/wiki_translation.adoc">Edit this Page</a></div>
  252. </div>
  253. <div class="content">
  254. <article class="doc">
  255. <h1 class="page">Wiki Translation Repositories</h1>
  256. <div id="preamble">
  257. <div class="sectionbody">
  258. <div class="paragraph">
  259. <p>Official translations of the wiki are not practical due to varying dialects, dodgy translator programs, and the increased workload needed to officially support the translations. A different approach is to have monkeys, who wish to contribute to the community, run their own translation of the wiki.</p>
  260. </div>
  261. <div class="paragraph">
  262. <p>This tutorial will go into the details of how to setup a copy of the wiki on <a href="https://github.com/">GitHub</a> that looks and feels like the official wiki, including <a href="https://github.com/marketplace/travis-ci">Travis-CI</a> automatically converting your AsciiDoc content to HTML, then publishing those files on each commit.</p>
  263. </div>
  264. <div class="paragraph">
  265. <p>You are not required to translate every page or even mirror changes to the official wiki. What is required is a linked wiki be robust enough to actually help other monkeys and that the content is kept current. If it&#8217;s deemed worthy, a link to your repository, whether its stored on your own domain or not, will be added to the main page of the wiki under the <a href="../documentation.html#languages#" class="page">Languages</a> topic.</p>
  266. </div>
  267. <div class="admonitionblock warning">
  268. <table>
  269. <tr>
  270. <td class="icon">
  271. <i class="fa icon-warning" title="Warning"></i>
  272. </td>
  273. <td class="content">
  274. <div class="paragraph">
  275. <p>Although this is a tutorial on setting up and configuring your own copy of the official wiki, you still must adhere to the <a href="../bsd_license.html" class="page">jMonkeyEngine licensing</a>.</p>
  276. </div>
  277. <div class="paragraph">
  278. <p>This includes the use of a domain name that includes the jMonkeyEngine name.</p>
  279. </div>
  280. </td>
  281. </tr>
  282. </table>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="sect1">
  287. <h2 id="prerequisites"><a class="anchor" href="#prerequisites"></a>Prerequisites</h2>
  288. <div class="sectionbody">
  289. <div class="paragraph">
  290. <p>For this tutorial you can either setup with Git, or the Atom Editor, which uses basic GitHub commands by default. You will be <strong>loosely</strong> implementing the instructions from <a href="https://github.com/steveklabnik/automatically_update_github_pages_with_travis_example">Steve Klabnik</a>.</p>
  291. </div>
  292. <div class="paragraph">
  293. <p>You will need to meet these requirements to continue:</p>
  294. </div>
  295. <div class="ulist">
  296. <ul>
  297. <li>
  298. <p>A <a href="https://github.com/">GitHub</a> account.</p>
  299. </li>
  300. <li>
  301. <p>Either <a href="https://help.github.com/articles/set-up-git/">Git</a> or the <a href="atom_editor.html" class="page">Atom Editor</a> installed on your system.</p>
  302. </li>
  303. </ul>
  304. </div>
  305. <div class="admonitionblock note">
  306. <table>
  307. <tr>
  308. <td class="icon">
  309. <i class="fa icon-note" title="Note"></i>
  310. </td>
  311. <td class="content">
  312. The Atom editor also has a <a href="https://atom.io/packages/git-plus">Git Plus</a> package that uses Git if it&#8217;s already on your system. Open <code><span class="menuseq"><b class="menu">File</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Settings</b></span></code> and enter &#8220;git&#8221; into the search box to locate and install.
  313. </td>
  314. </tr>
  315. </table>
  316. </div>
  317. <div class="admonitionblock tip">
  318. <table>
  319. <tr>
  320. <td class="icon">
  321. <i class="fa icon-tip" title="Tip"></i>
  322. </td>
  323. <td class="content">
  324. <div class="paragraph">
  325. <p>For a list of git commands, use one of these:</p>
  326. </div>
  327. <div class="ulist">
  328. <ul>
  329. <li>
  330. <p><a href="https://services.github.com/on-demand/resources/cheatsheets/">Git Cheat Sheets</a></p>
  331. </li>
  332. <li>
  333. <p><a href="http://rogerdudler.github.io/git-guide/">git - the simple guide</a></p>
  334. </li>
  335. </ul>
  336. </div>
  337. <div class="paragraph">
  338. <p>See also Travis-CI:</p>
  339. </div>
  340. <div class="ulist">
  341. <ul>
  342. <li>
  343. <p><a href="https://docs.travis-ci.com/user/getting-started/">Getting Started</a></p>
  344. </li>
  345. </ul>
  346. </div>
  347. </td>
  348. </tr>
  349. </table>
  350. </div>
  351. </div>
  352. </div>
  353. <div class="sect1">
  354. <h2 id="githubtravis-ci-setup"><a class="anchor" href="#githubtravis-ci-setup"></a>GitHub/Travis CI Setup</h2>
  355. <div class="sectionbody">
  356. <div class="paragraph">
  357. <p>This topic applies to both Git and the Atom Editor. You must do this before you do anything else.</p>
  358. </div>
  359. <div class="olist arabic">
  360. <div class="title">Github</div>
  361. <ol class="arabic">
  362. <li>
  363. <p>Create a <a href="https://help.github.com/articles/creating-a-new-repository/">new repository</a> on <a href="https://github.com/">github.com</a> for your wiki. (NOT a fork)</p>
  364. <div class="olist loweralpha">
  365. <ol class="loweralpha" type="a">
  366. <li>
  367. <p>Enter a unique name for your repository.</p>
  368. </li>
  369. </ol>
  370. </div>
  371. </li>
  372. <li>
  373. <p>After your repository has been created, you will need to add a new &#8220;gh-pages&#8221; <a href="https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/">branch</a>.</p>
  374. <div class="olist loweralpha">
  375. <ol class="loweralpha" type="a">
  376. <li>
  377. <p>This will automatically setup your repository for compiling &#8220;gh-pages&#8221;.</p>
  378. </li>
  379. <li>
  380. <p>After creating the &#8220;gh-pages&#8221; branch, from your repositories main page, click the <span class="icon"><i class="fa fa-cog"></i></span> <b class="button">Settings</b> link and scroll down to the &#8220;GitHub Pages&#8221; panel for more configuration options and to see your sites new URL.</p>
  381. <div class="admonitionblock note">
  382. <table>
  383. <tr>
  384. <td class="icon">
  385. <i class="fa icon-note" title="Note"></i>
  386. </td>
  387. <td class="content">
  388. <div class="paragraph">
  389. <p>There are two URLs you will need for configuration.</p>
  390. </div>
  391. <div class="ulist">
  392. <ul>
  393. <li>
  394. <p>Your <code><strong>gh-pages</strong></code> URL: https://username.github.io/repo-name/</p>
  395. </li>
  396. <li>
  397. <p>Your <code><strong>repository</strong></code> URL: https://github.com/username/repo-name</p>
  398. </li>
  399. </ul>
  400. </div>
  401. <div class="paragraph">
  402. <p>This is how they will be referred to in this tutorial.</p>
  403. </div>
  404. </td>
  405. </tr>
  406. </table>
  407. </div>
  408. </li>
  409. </ol>
  410. </div>
  411. </li>
  412. <li>
  413. <p>Setup GH_TOKEN variable:</p>
  414. <div class="olist loweralpha">
  415. <ol class="loweralpha" type="a">
  416. <li>
  417. <p>You need to generate a <a href="https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/">GH_TOKEN</a> in github.com, and set up Environment Variables in travis-ci.org or travis-ci.com, depending on whether your repository is public or not. This variable will be used in the deploy_ghpages.sh file.</p>
  418. </li>
  419. <li>
  420. <p>Describe it however you wish and then you will need to check some boxes. Check these ones:</p>
  421. <div class="ulist checklist">
  422. <ul class="checklist">
  423. <li>
  424. <p><i class="fa fa-check-square-o"></i> public_repo</p>
  425. <div class="openblock">
  426. <div class="content">
  427. <div class="paragraph">
  428. <p>If your repository is private, you can set repo instead.</p>
  429. </div>
  430. <div class="paragraph">
  431. <p>GitHub will create the token and show a page with the value.</p>
  432. </div>
  433. <div class="admonitionblock warning">
  434. <table>
  435. <tr>
  436. <td class="icon">
  437. <i class="fa icon-warning" title="Warning"></i>
  438. </td>
  439. <td class="content">
  440. <strong>THIS IS THE ONLY TIME YOU GET TO SEE THIS SO DON&#8217;T CLICK AWAY IMMEDIATELY!</strong>
  441. </td>
  442. </tr>
  443. </table>
  444. </div>
  445. <div class="paragraph">
  446. <p>You will need to copy this token into someplace you trust. It&#8217;ll never be shown to you after this time, so it&#8217;s important to double-check your work. You can always regenerate a new token, but then you will have to change any script or apps that use it.</p>
  447. </div>
  448. </div>
  449. </div>
  450. </li>
  451. </ul>
  452. </div>
  453. </li>
  454. </ol>
  455. </div>
  456. </li>
  457. </ol>
  458. </div>
  459. <div class="olist arabic">
  460. <div class="title">Travis CI</div>
  461. <ol class="arabic">
  462. <li>
  463. <p>Click your name icon and select <code><span class="menuseq"><b class="menu">Settings</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">Billing</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Marketplace</b></span></code> or the &#8220;Marketplace&#8221; link at the top of the page header.</p>
  464. </li>
  465. <li>
  466. <p>Click the &#8220;Travis-CI&#8221; link. If you don&#8217;t see one listed, find it using the search box.</p>
  467. </li>
  468. <li>
  469. <p>Scroll to the bottom of the page and under &#8220;Pricing and setup&#8221; select the &#8220;Open Source&#8221; option if this is a public_repo or the payment plan of your choice.</p>
  470. <div class="olist loweralpha">
  471. <ol class="loweralpha" type="a">
  472. <li>
  473. <p>When ready, select the <b class="button">Install</b> button.</p>
  474. </li>
  475. <li>
  476. <p>Click through until you are redirected to the Travis-Ci website.</p>
  477. </li>
  478. </ol>
  479. </div>
  480. </li>
  481. <li>
  482. <p>On Travis-CI, flick the repository switch on for your gh-pages project.</p>
  483. <div class="admonitionblock tip">
  484. <table>
  485. <tr>
  486. <td class="icon">
  487. <i class="fa icon-tip" title="Tip"></i>
  488. </td>
  489. <td class="content">
  490. You can’t see your project on the list? Click on the Sync account button (top right) and it should be OK.
  491. </td>
  492. </tr>
  493. </table>
  494. </div>
  495. </li>
  496. <li>
  497. <p>Click the <span class="icon"><i class="fa fa-cog"></i></span> cog to go to the settings tab and configure it.</p>
  498. <div class="olist loweralpha">
  499. <ol class="loweralpha" type="a">
  500. <li>
  501. <p>Check some options on General:</p>
  502. <div class="olist lowerroman">
  503. <ol class="lowerroman" type="i">
  504. <li>
  505. <p>check the Build only if .travis.yml is present option.</p>
  506. </li>
  507. <li>
  508. <p>Check the Build pushed options.</p>
  509. </li>
  510. </ol>
  511. </div>
  512. </li>
  513. <li>
  514. <p>Create some Environment Variables that will be used in .travis.yml file:</p>
  515. <div class="olist lowerroman">
  516. <ol class="lowerroman" type="i">
  517. <li>
  518. <p>GH_TOKEN: the token created on previous step.</p>
  519. <div class="admonitionblock warning">
  520. <table>
  521. <tr>
  522. <td class="icon">
  523. <i class="fa icon-warning" title="Warning"></i>
  524. </td>
  525. <td class="content">
  526. Uncheck the Display value in build log option. This is the default action.
  527. </td>
  528. </tr>
  529. </table>
  530. </div>
  531. </li>
  532. </ol>
  533. </div>
  534. </li>
  535. </ol>
  536. </div>
  537. </li>
  538. </ol>
  539. </div>
  540. <div class="sect2">
  541. <h3 id="using-git-command-line-to-finish"><a class="anchor" href="#using-git-command-line-to-finish"></a>Using Git Command Line to finish</h3>
  542. <div class="olist arabic">
  543. <ol class="arabic">
  544. <li>
  545. <p>Clone the <a href="https://github.com/jMonkeyEngine/wiki">wiki</a> or your fork of the wiki and your new repository. Cloning and pushing takes some time due to the size of the wiki. Be patient.</p>
  546. <div class="listingblock">
  547. <div class="content">
  548. <pre class="highlightjs highlight"><code>$ git clone https://github.com/jMonkeyEngine/wiki.git
  549. $ git clone https://github.com/user/repository.git
  550. $ cd repository
  551. $ git checkout master</code></pre>
  552. </div>
  553. </div>
  554. </li>
  555. <li>
  556. <p>Copy everything from the localized wiki repository to the localized new repository, especially these files:</p>
  557. <div class="olist loweralpha">
  558. <ol class="loweralpha" type="a">
  559. <li>
  560. <p>.travis.yml</p>
  561. </li>
  562. <li>
  563. <p>build.gradle</p>
  564. </li>
  565. <li>
  566. <p>deploy_ghpages.sh</p>
  567. </li>
  568. <li>
  569. <p>gradlew</p>
  570. <div class="openblock">
  571. <div class="content">
  572. <div class="paragraph">
  573. <p><code>Travis CI</code> will execute <code>./gradlew asciidoctor</code> and <code>./deploy_ghpages.sh</code> after you push your commits.</p>
  574. </div>
  575. <div class="admonitionblock important">
  576. <table>
  577. <tr>
  578. <td class="icon">
  579. <i class="fa icon-important" title="Important"></i>
  580. </td>
  581. <td class="content">
  582. If you have ever forked the official wiki, I suggest you rename it to origin_wiki or official_wiki. Then, you can still contribute to the official wiki with that fork.
  583. </td>
  584. </tr>
  585. </table>
  586. </div>
  587. </div>
  588. </div>
  589. </li>
  590. </ol>
  591. </div>
  592. </li>
  593. <li>
  594. <p>Give gradlew, deploy_ghpages.sh permission to be executed. If you don’t do this, travis-ci.org will fail, due to no permission.</p>
  595. <div class="listingblock">
  596. <div class="content">
  597. <pre class="highlightjs highlight"><code>git update-index --chmod=+x deploy_ghpages.sh
  598. git update-index --chmod=+x gradlew
  599. git push</code></pre>
  600. </div>
  601. </div>
  602. </li>
  603. <li>
  604. <p>At this point you need to change the wiki specific attributes to complete the setup.</p>
  605. <div class="ulist">
  606. <ul>
  607. <li>
  608. <p>See <a href="#Changing-Wiki-Specific-Attributes#">Changing Wiki Specific Attributes</a></p>
  609. </li>
  610. </ul>
  611. </div>
  612. </li>
  613. </ol>
  614. </div>
  615. </div>
  616. <div class="sect2">
  617. <h3 id="using-atom-editor-to-finish"><a class="anchor" href="#using-atom-editor-to-finish"></a>Using Atom Editor to finish</h3>
  618. <div class="paragraph">
  619. <p>This topic assumes you have already downloaded, installed and configured the <a href="#../wiki\atom_editor.adoc" class="page unresolved">Atom Editor</a> as well as cloned the <a href="https://github.com/jMonkeyEngine/wiki">wiki</a> or your fork of the wiki and it&#8217;s open in the Atom Editor.</p>
  620. </div>
  621. <div class="olist arabic">
  622. <ol class="arabic">
  623. <li>
  624. <p>In the Atom Editor, select <code><span class="menuseq"><b class="menu">File</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">New Window</b></span></code> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>N</kbd>.</p>
  625. <div class="olist loweralpha">
  626. <ol class="loweralpha" type="a">
  627. <li>
  628. <p>Delete the new page that opens by default.</p>
  629. </li>
  630. </ol>
  631. </div>
  632. </li>
  633. <li>
  634. <p>In the new window, select <code><span class="menuseq"><b class="menu">Packages</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">Command Palette</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Toggle</b></span></code> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>.</p>
  635. <div class="olist loweralpha">
  636. <ol class="loweralpha" type="a">
  637. <li>
  638. <p>Enter &#8220;github&#8221; into the search box.</p>
  639. </li>
  640. <li>
  641. <p>Select the <b class="button">GitHub Clone</b> button.</p>
  642. </li>
  643. <li>
  644. <p>Enter the URL to your <code><strong>repository</strong></code>.</p>
  645. </li>
  646. <li>
  647. <p>When ready, click the <b class="button">Clone</b> button.</p>
  648. </li>
  649. </ol>
  650. </div>
  651. </li>
  652. <li>
  653. <p>Copy everything from the localized wiki repository to the localized new repository, especially these files:</p>
  654. <div class="olist loweralpha">
  655. <ol class="loweralpha" type="a">
  656. <li>
  657. <p>.travis.yml</p>
  658. </li>
  659. <li>
  660. <p>build.gradle</p>
  661. </li>
  662. <li>
  663. <p>deploy_ghpages.sh</p>
  664. </li>
  665. <li>
  666. <p>gradlew</p>
  667. </li>
  668. </ol>
  669. </div>
  670. </li>
  671. <li>
  672. <p>Give gradlew, deploy_ghpages.sh permission to be executed. If you don’t do this, travis-ci.org will fail, due to no permission.</p>
  673. <div class="olist loweralpha">
  674. <ol class="loweralpha" type="a">
  675. <li>
  676. <p>If you use Git Plus, select <code><span class="menuseq"><b class="menu">Packages</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">Git Plus</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Run</b></span></code> and enter these arguments.</p>
  677. <div class="listingblock">
  678. <div class="title">Using Git Plus</div>
  679. <div class="content">
  680. <pre class="highlightjs highlight"><code>git update-index --chmod=+x deploy_ghpages.sh
  681. git update-index --chmod=+x gradlew
  682. git push</code></pre>
  683. </div>
  684. </div>
  685. </li>
  686. <li>
  687. <p>If you dont have Git, then edit the <code>travis.yml</code> file and add this after the <code>branches:</code> command.</p>
  688. <div class="listingblock">
  689. <div class="title">No Git Installed</div>
  690. <div class="content">
  691. <pre class="highlightjs highlight"><code>branches:
  692. except:
  693. - gh-pages
  694. # No git, change permissions here.
  695. before_install:
  696. - chmod +x deploy_ghpages.sh
  697. - chmod +x gradlew</code></pre>
  698. </div>
  699. </div>
  700. </li>
  701. </ol>
  702. </div>
  703. </li>
  704. <li>
  705. <p>At this point you need to change the wiki specific attributes to complete the setup.</p>
  706. <div class="ulist">
  707. <ul>
  708. <li>
  709. <p>See <a href="#Changing-Wiki-Specific-Attributes#">Changing Wiki Specific Attributes</a></p>
  710. </li>
  711. </ul>
  712. </div>
  713. </li>
  714. </ol>
  715. </div>
  716. </div>
  717. <div class="sect2">
  718. <h3 id="changing-wiki-specific-attributes"><a class="anchor" href="#changing-wiki-specific-attributes"></a>Changing Wiki Specific Attributes</h3>
  719. <div class="admonitionblock important">
  720. <table>
  721. <tr>
  722. <td class="icon">
  723. <i class="fa icon-important" title="Important"></i>
  724. </td>
  725. <td class="content">
  726. <div class="paragraph">
  727. <p>These changes will make your copy of the wiki, including all links, 100% dependent on your <code><strong>gh-pages</strong></code> branch. You&#8217;re on your own after this point so if you want selective links to still point to the official wiki, it&#8217;s up to you to determine which.</p>
  728. </div>
  729. <div class="paragraph">
  730. <p>At minimum, you still have to change the attributes &#8220;endpoint-url&#8221;, &#8220;wiki_link_edit_prefix&#8221;, and &#8220;wiki_link_create_prefix&#8221; in the &#8220;<strong>build.gradle</strong>&#8221; file.</p>
  731. </div>
  732. </td>
  733. </tr>
  734. </table>
  735. </div>
  736. <div class="olist arabic">
  737. <div class="title">Git CommandLine</div>
  738. <ol class="arabic">
  739. <li>
  740. <p>Using <a href="https://git-scm.com/docs/git-grep">Git Grep</a> or the command line editor of your choice, find and replace the following:</p>
  741. <div class="olist loweralpha">
  742. <ol class="loweralpha" type="a">
  743. <li>
  744. <p>Find the official wiki <code><strong>gh-pages</strong></code> address of <code>https://wiki.jmonkeyengine.org</code>.</p>
  745. </li>
  746. <li>
  747. <p>Replace it with your <code><strong>gh-pages</strong></code> address <code>https://username.github.io/repo-name</code>.</p>
  748. </li>
  749. <li>
  750. <p>Find the official wiki <code><strong>repository</strong></code> address of <code>https://github.com/jMonkeyEngine/wiki</code>.</p>
  751. </li>
  752. <li>
  753. <p>Replace it with your <code><strong>repository</strong></code> address of <code>https://github.com/username/repo-name</code>.</p>
  754. </li>
  755. </ol>
  756. </div>
  757. </li>
  758. <li>
  759. <p>Change the <a href="https://docs.travis-ci.com/user/status-images/">build status link</a> for your repository in the README.adoc page.</p>
  760. <div class="listingblock">
  761. <div class="content">
  762. <pre class="highlightjs highlight"><code>image:https://travis-ci.org/jMonkeyEngine/wiki.svg?branch=master["Build Status", link="https://travis-ci.org/jMonkeyEngine/wiki"]</code></pre>
  763. </div>
  764. </div>
  765. </li>
  766. <li>
  767. <p>After you have done all the above, commit and push to your wiki repository.</p>
  768. </li>
  769. </ol>
  770. </div>
  771. <div class="olist arabic">
  772. <div class="title">Atom Editor</div>
  773. <ol class="arabic">
  774. <li>
  775. <p>Select <code><span class="menuseq"><b class="menu">Find</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Find in Project</b></span></code> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>F</kbd>.</p>
  776. <div class="olist loweralpha">
  777. <ol class="loweralpha" type="a">
  778. <li>
  779. <p>Enter the official wiki <code><strong>gh-pages</strong></code> address of <code>https://wiki.jmonkeyengine.org</code> into the search box and then select the <b class="button">Find All</b> button.</p>
  780. </li>
  781. <li>
  782. <p>Enter your <code><strong>gh-pages</strong></code> address <code>https://username.github.io/repo-name</code> in the &#8220;Replace All&#8221; box and when ready, select the <b class="button">Replace All</b> button.</p>
  783. </li>
  784. <li>
  785. <p>Enter the official wiki <code><strong>repository</strong></code> address of <code>https://github.com/jMonkeyEngine/wiki</code> into the search box and then select the <b class="button">Find All</b> button.</p>
  786. </li>
  787. <li>
  788. <p>Enter your <code><strong>repository</strong></code> address of <code>https://github.com/username/repo-name</code> in the &#8220;Replace All&#8221; box and when ready, select the <b class="button">Replace All</b> button.</p>
  789. </li>
  790. </ol>
  791. </div>
  792. </li>
  793. <li>
  794. <p>Change the <a href="https://docs.travis-ci.com/user/status-images/">build status link</a> for your repository in the README.adoc page.</p>
  795. <div class="listingblock">
  796. <div class="content">
  797. <pre class="highlightjs highlight"><code>image:https://travis-ci.org/jMonkeyEngine/wiki.svg?branch=master["Build Status", link="https://travis-ci.org/jMonkeyEngine/wiki"]</code></pre>
  798. </div>
  799. </div>
  800. </li>
  801. <li>
  802. <p>After you have done all the above, <code><span class="menuseq"><b class="menu">File</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Save All</b></span></code>.</p>
  803. </li>
  804. <li>
  805. <p>Open the Git panel, <code><span class="menuseq"><b class="menu">Packages</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">GitHub</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Toggle Git Tab</b></span></code> or <kbd>Ctrl</kbd> + <kbd>9</kbd>.</p>
  806. <div class="olist loweralpha">
  807. <ol class="loweralpha" type="a">
  808. <li>
  809. <p>Stage All.</p>
  810. </li>
  811. <li>
  812. <p>Enter a &#8220;initial commit&#8221; message.</p>
  813. </li>
  814. <li>
  815. <p>Commit and push to your wiki repository. You can see the result after a few minutes.</p>
  816. </li>
  817. </ol>
  818. </div>
  819. </li>
  820. </ol>
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="sect1">
  826. <h2 id="conclusion"><a class="anchor" href="#conclusion"></a>Conclusion</h2>
  827. <div class="sectionbody">
  828. <div class="paragraph">
  829. <p>Travis should have built your copy of the wiki and moved all the .html to your &#8220;gh-pages&#8221; branch. If this didn&#8217;t happen, then something is wrong with your setup. Examine the logs of your repository from your Travis-CI account to help you troubleshoot where you went wrong. You can expand any of the command tags by clicking on them to get a more in-depth reveal of the logged info.</p>
  830. </div>
  831. <div class="paragraph">
  832. <p>When you feel your repository is ready, create a thread on the <a href="https://hub.jmonkeyengine.org/">forum</a> requesting it be added to the official wiki. If approved, create a pull request of the wiki <a href="https://github.com/jMonkeyEngine/wiki/blob/master/src/docs/asciidoc/documentation.adoc">main page</a> adding your repository link under the &#8220;Languages&#8221; topic.</p>
  833. </div>
  834. <div class="paragraph">
  835. <p>Thanks for your interest in removing the language barrier that may prevent other monkeys from learning more about the jMonkeyEngine.</p>
  836. </div>
  837. </div>
  838. </div>
  839. </article>
  840. <aside class="toc sidebar" data-title="Contents" data-levels="2">
  841. <div class="toc-menu"></div>
  842. </aside>
  843. </div>
  844. </main>
  845. </div>
  846. <footer class="footer">
  847. <p>Copyright 2020 jMonkeyEngine Wiki Contributors. Licensed BSD-3.</p>
  848. </footer>
  849. <script src="../../_/js/vendor/docsearch.min.js"></script>
  850. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js -->
  851. <script>
  852. var search = docsearch({
  853. apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
  854. indexName: 'jmonkeyengine',
  855. inputSelector: '#search-input',
  856. autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] },
  857. algoliaOptions: { hitsPerPage: 10 }
  858. }).autocomplete
  859. search.on('autocomplete:closed', function () { search.autocomplete.setVal() })
  860. function focusSearchInput () { document.querySelector('#search-input').focus() }
  861. if (document.querySelector('.home-link.is-current')) window.addEventListener('load', focusSearchInput)
  862. </script>
  863. <script src="../../_/js/site.js"></script>
  864. <script async src="../../_/js/vendor/highlight.js"></script>
  865. </body>
  866. </html>