README.adoc 3.9 KB

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