wiki_header.adoc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. = Anatomy of a Wiki Header
  2. :author: mitm
  3. :revnumber:
  4. :revdate: 2017-09-08T23:24:11.262Z
  5. :relfileprefix: ../
  6. :imagesdir: ..
  7. :experimental:
  8. ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  9. All wiki documents use these header attributes. Optional attributes can be left blank following the kbd:[:] colon symbol.
  10. [source,subs="+macros"]
  11. ----
  12. = Enter Document Title Here
  13. :author:
  14. :revnumber:
  15. :revdate:
  16. :relfileprefix: ../../
  17. :imagesdir: ../..
  18. :experimental:
  19. :link-javadoc: pass:[https://javadoc.jmonkeyengine.org]
  20. :stylesheet: twemoji-awesome.css
  21. ifdef++::++env-github,env-browser[:outfilesuffix: .adoc]
  22. ----
  23. == =
  24. Mandatory. Title of your document.
  25. == :author:
  26. Optional. Document author.
  27. [IMPORTANT]
  28. ====
  29. Optional Author and Revision information immediately follows the header title.
  30. ====
  31. == :revnumber:
  32. Optional. Revision number.
  33. == :revdate:
  34. Optional. Revision Date
  35. == :relfileprefix:
  36. Optional. Enter a path to the "`asciidoc`" folder if using cross reference links.
  37. TIP: Use `Tree View` (kbd:[ctrl]+kbd:[\ ] or `menu:View[Toggle Tree View]`) to locate the "`asciidoc`" folder if using the link:https://atom.io/[Atom editor].
  38. In the example below, "`asciidoc`" is two folders above the folder this file is located in.
  39. ```
  40. :relfileprefix: ../../
  41. ```
  42. == :imagesdir:
  43. Optional. Enter a path to the "images" folder if using image links.
  44. TIP: Use `Tree View` (kbd:[ctrl]+kbd:[\ ] or `menu:View[Toggle Tree View]`) to locate the "`images`" folder if using the link:https://atom.io/[Atom editor].
  45. In the example below, "`images`" is two folders above the folder this file is located in. Note the missing kbd:[/] forward slash.
  46. ```
  47. :imagesdir: ../..
  48. ```
  49. [TIP]
  50. ====
  51. A simple way to determine the location of the "asciidoc" and "images" folder in the Atom editor is first save the file to its new location, then in `Tree View` (kbd:[ctrl]+kbd:[\ ] or `menu:View[Toggle Tree View]`), btn:[RMB] select the saved file and select btn:[Copy Project Path].
  52. Temporarily paste this into your document to see where the "`asciidoc`" folder is located.
  53. For example: `src\docs\asciidoc\jme3\advanced\3d_models.adoc`
  54. In this example, "asciidoc" is located two folders above the "advanced" folder `3d_models.adoc` resides in.
  55. You can find this same folder information using link:https://github.com/jMonkeyEngine/wiki/blob/master/docs/modules/ROOT/pages/jme3/advanced/3d_models.adoc[GitHub].
  56. ====
  57. The "`images`" folder resides in the same folder as the "`asciidoc`" folder so it has the same setting minus the kbd:[/ ] forward slash.
  58. == :experimental:
  59. Optional. Leave this blank, i.e do not set a value for this attribute if using it. This is the experimental attribute that allows the use of link:http://asciidoctor.org/docs/user-manual/#user-interface-macros[User Interface Macros]. You use these macros for creating keyboard shortcuts, displaying menu selections and UI buttons.
  60. == :link-javadoc:
  61. Optional. This is the global attribute for the jME javadocs. You set this if you are *overriding* the default setting from the link:https://github.com/jMonkeyEngine/wiki/blob/9d0e4fd07d019c3d41c6b9e64b2a1a5b7e0ed774/build.gradle#L39[build.gradle] file. You can use the default `pass:[{link-javadoc}]` attribute directly in any document you write, as is shown in the following example, without adding anything to the header.
  62. ```
  63. link:{link-javadoc}/com/jme3/app/state/BaseAppState.html[BaseAppState]
  64. ```
  65. If you override the variable in the header of the document, that value will be used instead.
  66. == :stylesheet: twemoji-awesome.css
  67. Optional. Adding this attribute will allow the use of emoji in the document.
  68. See: <<wiki/emoji#,Emoji Cheat Sheet>>
  69. == ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  70. Mandatory. See link:http://asciidoctor.org/docs/user-manual/#navigating-between-source-files[Navigating Between Source Files] in the AsciiDoctor user manual. Leave this as written.