You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

markdownextensions.md 2.7 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. DocNet Markdown extensions
  2. ==========================
  3. `Docnet` defines the following markdown extensions to make writing documentation easier.
  4. ## Alert boxes
  5. To quickly define alert boxes, `Docnet` defines the `@alert` element. Three types of alerts are defined: *danger* (displayed in red), *warning* (displayed in yellow) and *info* or *neutral*, which is displayed in blue. You specify the type of the alert after the `@alert` statement using @alert *name*. Close the `@alert` with `@end`.
  6. Below are examples for each alert box and the markdown used to create them.
  7. The markdown:
  8. ```nohighlight
  9. @alert danger
  10. This is a dangerous text, it will be displayed in a danger alert box!
  11. @end
  12. ```
  13. results in
  14. @alert danger
  15. This is a dangerous text, it will be displayed in a danger alert box!
  16. @end
  17. The markdown:
  18. ```nohighlight
  19. @alert warning
  20. This is a warning text, it will be displayed in a warning alert box!
  21. @end
  22. ```
  23. results in
  24. @alert warning
  25. This is a warning text, it will be displayed in a warning alert box!
  26. @end
  27. The markdown:
  28. ```nohighlight
  29. @alert info
  30. This is an info text, it will be displayed in an info alert box!
  31. @end
  32. ```
  33. Results in
  34. @alert info
  35. This is an info text, it will be displayed in an info alert box!
  36. @end
  37. ## Font Awesome icons
  38. To specify a font-awesome icon, use `@fa-iconname`, where _iconname_ is the name of the font-awesome icon.
  39. Example: To specify the font awesome icon for GitHub, use `@fa-github`, which will result in: @fa-github
  40. ## Tabs
  41. It's very easy with `Docnet` to add a tab control with one or more tabs to the HTML with a simple set of markdown statements. The tab statements are converted into pure CSS3/HTML tabs, based on the work of [Joseph Fusco](http://codepen.io/fusco/pen/Wvzjrm).
  42. To start a Tab control, start with `@tabs` and end the tabs definition with `@endtabs`. Between those two statements, which each need to be suffixed with a newline, you define one or more tabs using `@tab` followed by the label text for that tab, followed by a newline. End your tab contents with `@end`.
  43. The following example shows two tabs, one with label 'First Tab' and one with 'Second Tab':
  44. ```nohighlight
  45. @tabs
  46. @tab First Tab
  47. This is the text for the first tab. It's nothing special
  48. As you can see, it can deal with newlines as well.
  49. @end
  50. @tab Second Tab
  51. Now, the second tab however is very interesting. At least let's pretend it is!
  52. @end
  53. @endtabs
  54. ```
  55. will result in:
  56. @tabs
  57. @tab First Tab
  58. This is the text for the first tab. It's nothing special
  59. As you can see, it can deal with newlines as well.
  60. @end
  61. @tab Second Tab
  62. Now, the second tab however is very interesting. At least let's pretend it is!
  63. @end
  64. @endtabs

No Description

Contributors (1)