2
0

README.adoc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 link:https://wiki.jmonkeyengine.org/documentation[https://wiki.jmonkeyengine.org/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://wiki.jmonkeyengine.org/wiki/atom_editor.html[Atom Editor for Wiki Editing]
  10. .Prerequisites
  11. . Have a link:https://github.com/[GitHub account].
  12. . Optional: Are a Wiki project member.
  13. If you are not a member, you can fork the repository into your GitHub account and issue pull requests from there or
  14. online via github. (Edit button located at top of the Wiki page + Pull Request)
  15. To fork the Wiki repository into your GitHub Account:
  16. * In the menu at the top of the page, select the *Fork* button.
  17. The syntax is asciidoc :
  18. * link:http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/[Asciidoc Syntax Quick Reference]
  19. * link:http://asciidoctor.org/docs/user-manual/[Asciidoctor User Manual]
  20. An easy to use primer for GitHub commands can be found here:
  21. * link:http://rogerdudler.github.io/git-guide/[git - the simple guide]
  22. == Contribute
  23. There are a few simple rules to follow when contributing.
  24. . It's not required but it's a good idea to give a heads up you made a P/R on the link:https://hub.jmonkeyengine.org/[jMonkeyEngine Forum] under the `Documentation` topic.
  25. . When adding documents, make sure to always complete the header of your document first.
  26. ** see link:https://wiki.jmonkeyengine.org/wiki/wiki_header.html[Anatomy of a Wiki Header]
  27. . When linking to other Wiki pages, always use an "`Inter-Document Cross Reference`" with the format,
  28. ** ++<<path/to/wiki/page#,custom label text>>++ +
  29. 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.
  30. +
  31. The path should be relative to the `asciidoc` folder.
  32. +
  33. For example: `++<<jme3/requirements#,Software and hardware requirements>>++` +
  34. links to the `requirements.adoc` page, which lives in a sub-folder of `asciidoc` named `jme3`.
  35. +
  36. 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.
  37. . 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,
  38. ** Image on its own line - `image::path/to/image.jpg[image alt text,width=" ",height=" ", align=" "]`
  39. +
  40. For example: `++image::jme3/beginner/beginner-assets-models.png[beginner-assets-models.png,320,250,align="center"]++`
  41. +
  42. * This image is on its own line.
  43. * Is stored in the `jme3/beginner` folder which lives in the `images` folder.
  44. * Is named `beginner-assets-models.png`.
  45. * Has a `alt text` name of `beginner-assets-models.png`.
  46. * Has a width of 320.
  47. * Has a height of 250.
  48. * Is aligned in the center of the page.
  49. ** If you want to include an image inline, use the `image:` prefix instead (notice there is only one colon):
  50. +
  51. See link:http://asciidoctor.org/docs/user-manual/#images[http://asciidoctor.org/docs/user-manual/#images] for in depth instructions.
  52. . When linking to the jMonkeyEngine javadocs, use the global attribute `pass:[{link-javadoc}]` in your link path.
  53. +
  54. .Link example
  55. ```
  56. link:{link-javadoc}/com/jme3/app/state/BaseAppState.html[BaseAppState]
  57. ```
  58. ** see link:https://wiki.jmonkeyengine.org/wiki/wiki_header.html[Anatomy of a Wiki Header] for details on how to override this setting.
  59. == Build
  60. * In Netbeans, convert the AsciiDoc to HTML5 by invoking the 'asciidoctor' goal:
  61. +
  62. [source]
  63. ----
  64. $ ./gradlew asciidoctor
  65. ----
  66. +
  67. Open the file _build/asciidoc/html5/index.html_ in your browser to see the generated HTML file.
  68. * 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.
  69. == TODO
  70. - [x] configure travis build
  71. - [x] configure github + gradle + travis to publish on gh-pages branches
  72. - [x] find and fixe conversion bug
  73. - [x] complete conversion: note, warning, ...
  74. - [x] fix warning during html's generation (should be fixed manually)
  75. - [x] add meta info during conversion (doctitle, revision, tags, ...)
  76. - [x] add a home page (index.html)
  77. - [ ] add a navigation bar or a menu (?)
  78. - [ ] customize html layout (header, footer, css)
  79. - [x] transfer ownership to jMonkeyEngine org
  80. - [x] complete Doc, how to contribute,...
  81. - [x] accept Pull Request
  82. - [ ] generate sitemap
  83. - [x] add search box
  84. - [ ] add google analytics (?)
  85. - [x] support emoji
  86. - [ ] support iframe block
  87. - [x] fix slideshow of "Xxx for Dummies"
  88. - [ ] optimize remove useless images
  89. - [ ] optimize image, use smaller file, eg convert to jpg or to webp, resize
  90. - [ ] organize i18n / lang
  91. - [ ] use tags to create taxonomy