README.adoc 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. :experimental:
  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. An easy to use primer for GitHub commands can be found here:
  14. * link:http://rogerdudler.github.io/git-guide/[git - the simple guide]
  15. == Contribute
  16. There are a few simple rules to follow when contributing.
  17. . When adding documents, make sure to always complete the header of your document first.
  18. ** see link:https://jmonkeyengine.github.io/wiki/wiki/wiki_header.html[Anatomy of a Wiki Header]
  19. . When linking to other Wiki pages, always use an "`Inter-Document Cross Reference`" with the format,
  20. ** ++<<path/to/wiki/page#,custom label text>>++ +
  21. The `#` sign substitutes for the file extension. This type of link will first look for the `.adoc` file and if not found default to the `.html` version.
  22. +
  23. The path should be relative to the `asciidoc` folder.
  24. +
  25. For example: `++<<jme3/requirements#,Software and hardware requirements>>++` +
  26. links to the `requirements.adoc` page, which lives in a sub-folder of `asciidoc` named `jme3`.
  27. +
  28. See link:http://asciidoctor.org/docs/user-manual/#inter-document-cross-references[http://asciidoctor.org/docs/user-manual/#inter-document-cross-references] for more info.
  29. . 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,
  30. ** Image on its own line - `image::path/to/image.jpg[image alt text,width=" ",height=" ", align=" "]`
  31. +
  32. For example: `++image::jme3/beginner/beginner-assets-models.png[beginner-assets-models.png,320,250,align="center"]++`
  33. +
  34. * This image is on its own line.
  35. * Is stored in the `jme3/beginner` folder which lives in the `images` folder.
  36. * Is named `beginner-assets-models.png`.
  37. * Has a `alt text` name of `beginner-assets-models.png`.
  38. * Has a width of 320.
  39. * Has a height of 250.
  40. * Is aligned in the center of the page.
  41. ** If you want to include an image inline, use the `image:` prefix instead (notice there is only one colon):
  42. +
  43. See link:http://asciidoctor.org/docs/user-manual/#images[http://asciidoctor.org/docs/user-manual/#images] for in depth instructions.
  44. == Build
  45. * In Netbeans, convert the AsciiDoc to HTML5 by invoking the 'asciidoctor' goal:
  46. +
  47. [source]
  48. ----
  49. $ ./gradlew asciidoctor
  50. ----
  51. +
  52. Open the file _build/asciidoc/html5/index.html_ in your browser to see the generated HTML file.
  53. * In Atom, you see real time changes when using the `AsciiDoc Preview` (kbd:[ctrl]+kbd:[shift]+kbd:[A] or `menu:Packages[AsciiDoc Preview>Toggle Preview]`). No build is required.
  54. == TODO
  55. - [x] configure travis build
  56. - [x] configure github + gradle + travis to publish on gh-pages branches
  57. - [x] find and fixe conversion bug
  58. - [x] complete conversion: note, warning, ...
  59. - [ ] fix warning during html's generation (should be fixed manually)
  60. - [x] add meta info during conversion (doctitle, revision, tags, ...)
  61. - [x] add a home page (index.html)
  62. - [ ] add a navigation bar or a menu (?)
  63. - [ ] customize html layout (header, footer, css)
  64. - [x] transfer ownership to jMonkeyEngine org
  65. - [x] complete Doc, how to contribute,...
  66. - [ ] accept Pull Request
  67. - [ ] write a post about the migration (the tools, why asciidoc, vs alternatives, how ...)
  68. - [ ] generate sitemap
  69. - [x] add search box
  70. - [ ] add google analytics (?)
  71. - [ ] support emoji
  72. - [ ] support iframe block
  73. - [ ] fix slideshow of "Xxx for Dummies"
  74. - [ ] optimize remove useless images
  75. - [ ] optimize image, use smaller file, eg convert to jpg or to webp, resize
  76. - [ ] organize i18n / lang
  77. - [ ] use tags to create taxonomy