README.adoc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. image:https://travis-ci.org/jMonkeyEngine/wiki.svg?branch=master["Build Status", link="https://travis-ci.org/jMonkeyEngine/wiki"]
  2. = jMonkeyEngine Documentation
  3. see http://jmonkeyengine.github.io/wiki/documentation
  4. The project to store, edit, and generate the documentation of http://jmonkeyengine.org[jMonkeyEngine].
  5. The documentation (<<src/docs/asciidoc>>) is editable :
  6. * online via github (Edit button located at top of the Wiki page + Pull Request)
  7. * offline with Netbeans after local `git clone` + open
  8. * offline with Atom editor, see <<wiki/atom_editor#,Atom Editor Setup for Wiki Editing>>
  9. The syntax is asciidoc :
  10. * link:http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/[Asciidoc Syntax Quick Reference]
  11. * link:http://asciidoctor.org/docs/user-manual/#introduction-to-asciidoctor[Asciidoctor User Manual]
  12. == Contribute
  13. There are a few simple rules to follow when contributing.
  14. . When adding documents, make sure to always complete the header of your document first.
  15. ** see <<wiki/wiki_header#,Anatomy of a Wiki Header>>
  16. . When linking to other Wiki pages, always use an "`Internal Cross Reference`" with the format,
  17. ** ++<<path-to-wikipage#,custom label text>>++ +
  18. The `#` sign substitutes for `.adoc`.
  19. +
  20. The path should be relative to the `asciidoc` folder.
  21. +
  22. For example: `++<<jme3/requirements#,Software and hardware requirements>>++` +
  23. links to the `requirements.adoc` page, which lives in a sub-folder of `asciidoc` named `jme3`.
  24. . When linking to images stored in the wiki repository, always use an image prefix in front of the file name and square brackets after it with the format,
  25. ** Image on its own line - `image::path-to-image.jpg[image alt text,width=" ",height=" ", align=" "]`
  26. +
  27. For example: `++image::jme3/beginner/beginner-assets-models.png[beginner-assets-models.png,320,250,align="center"]++`
  28. +
  29. * This image is on its own line.
  30. * Is stored in the `jme3/beginner` folder which lives in the `images` folder.
  31. * Is named `beginner-assets-models.png`.
  32. * Has a `alt text` name of `beginner-assets-models.png`.
  33. * Has a width of 320.
  34. * Has a height of 250.
  35. * Is aligned in the center of the page.
  36. ** If you want to include an image inline, use the `image:` prefix instead (notice there is only one colon):
  37. +
  38. See link:http://asciidoctor.org/docs/user-manual/#images[http://asciidoctor.org/docs/user-manual/#images] for in depth instructions.
  39. == Build
  40. * In Netbeans, convert the AsciiDoc to HTML5 by invoking the 'asciidoctor' goal:
  41. +
  42. [source]
  43. ----
  44. $ ./gradlew asciidoctor
  45. ----
  46. +
  47. Open the file _build/asciidoc/html5/index.html_ in your browser to see the generated HTML file.
  48. * In Atom, you see real time changes when using the `AsciiDoc Preview` (kbd:[ctrl+shift+A] or `menu:Packages[AsciiDoc Preview>Toggle Preview]`). No build is required.
  49. == TODO
  50. - [x] configure travis build
  51. - [x] configure github + gradle + travis to publish on gh-pages branches
  52. - [x] find and fixe conversion bug
  53. - [x] complete conversion: note, warning, ...
  54. - [ ] fix warning during html's generation (should be fixed manually)
  55. - [x] add meta info during conversion (doctitle, revision, tags, ...)
  56. - [x] add a home page (index.html)
  57. - [ ] add a navigation bar or a menu (?)
  58. - [ ] customize html layout (header, footer, css)
  59. - [x] transfer ownership to jMonkeyEngine org
  60. - [x] complete Doc, how to contribute,...
  61. - [ ] accept Pull Request
  62. - [ ] write a post about the migration (the tools, why asciidoc, vs alternatives, how ...)
  63. - [ ] generate sitemap
  64. - [x] add search box
  65. - [ ] add google analytics (?)
  66. - [ ] support emoji
  67. - [ ] support iframe block
  68. - [ ] fix slideshow of "Xxx for Dummies"
  69. - [ ] optimize remove useless images
  70. - [ ] optimize image, use smaller file, eg convert to jpg or to webp, resize
  71. - [ ] organize i18n / lang
  72. - [ ] use tags to create taxonomy