🇨🇴 Una base de datos de cursos en diferentes lenguajes. 🇫🇷 Une base de données de cours dans différents langages. 🇳🇴 En database med kurs på forskjellige språk. 🇺🇸 A flat-file database of courses in multiple languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

202 lines
4.1 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. ---
  2. title: Contributing
  3. slug: contributing
  4. ---
  5. ## How it works
  6. - 📖 *Flat files*
  7. - [enhanced markdown](#enhanced-markdown) for content
  8. - [YAML frontmatter](https://learn.getgrav.org/15/content/headers) for metadata
  9. - 🦊 *Continuous integration* using [GitLab (Ruby)](https://m3p2.ljbac.com)
  10. - 🌎 *Decentralized versioning* using [Git](https://en.wikipedia.org/wiki/Git)
  11. - asynchronous and offline collaboration
  12. - scales to thousands of contributors
  13. - 🚀 *HTML generation* using [Grav (PHP)](https://m3p2.ljbac.com/m3p2/grav-website)
  14. - basically the new WordPress, _but much better_
  15. - vibrant and growing community in 2019
  16. ## Data Flow
  17. ```mermaid
  18. graph RL
  19. User(Teacher)
  20. Website[M3P2 Website]
  21. Local[Local Website]
  22. Git[Git]
  23. GitLab[GitLab]
  24. User --> |contributes via| Git
  25. User --> |contributes via| GitLab
  26. User --> |contributes via| Local
  27. Local --> |triggers| Git
  28. Git --> |triggers| GitLab
  29. GitLab --> |updates| Website
  30. ```
  31. <marquee>🐠</marquee>
  32. ## Enhanced Markdown
  33. The point of Markdown (compared to raw HTML) is the _readability of the source_.
  34. ### Markdown Cheatsheet
  35. # Header like h1
  36. ## Header like h2
  37. ###### Header like h6
  38. _italic_
  39. __underlined__
  40. *bold*
  41. **strong**
  42. ~~strike-through~~
  43. `inline->code()`
  44. ```python
  45. import antigravity
  46. antigravity.apply()
  47. ```
  48. Go [there](https://…)
  49. [Current chapter](.)
  50. [Parent chapter](..)
  51. [Sibling chapter](../another-chapter)
  52. [Child chapter](chapter)
  53. [Anchor in the page](#slug-of-header)
  54. ![Description of the image](local-image.png)
  55. ! blue notice
  56. !! green notice
  57. !!! orange notice
  58. !!!! red notice
  59. !!!!
  60. !!!! another line on the red notice
  61. > More at Gitlab's [Markdown documentation](https://docs.gitlab.com/ee/user/markdown.html).
  62. ### Emoticons ✨
  63. Just type or paste the unicode character, modern browsers will do the rest.
  64. Here's a handy list: https://unicode.org/emoji/charts/full-emoji-list.html
  65. ### LateX
  66. You can use LateX in the courses.
  67. For example, the following
  68. $E = m \cdot c^2$
  69. yields $E = m \cdot c^2$
  70. !!!! Make sure to *add trailing spaces* to expressions like `\cdot`,
  71. !!!! or you'll end up with broken formulas.
  72. #### Multiline
  73. The preferred way is to use a `math` code block, like so:
  74. ```math
  75. \overrightarrow{F}_{L} = q \cdot (
  76. \overrightarrow{E}
  77. +
  78. \overrightarrow{v}
  79. \wedge
  80. \overrightarrow{B}
  81. )
  82. ```
  83. The `math` code block also works in GitLab's preview.
  84. _You can also use the `$$` syntax, but GitLab won't understand it._
  85. !! Generous spacing greatly improves the readability of the source.
  86. ### Flowcharts
  87. > _Any resemblance to real persons, living or dead, is purely coincidental._
  88. ```mermaid
  89. graph TB
  90. subgraph M3P2
  91. Draft[Draft]
  92. File[File]
  93. Website[Website]
  94. Pipeline[Pipeline]
  95. end
  96. Sponsor((Sponsor))
  97. Teacher((Teacher))
  98. Student((Student))
  99. Engineer((Engineer))
  100. Student --> |studies| Website
  101. Student --> |loves| Sponsor
  102. Student --> |respects| Teacher
  103. Student --> |complements| Draft
  104. Teacher -.- Engineer
  105. Sponsor --> |feeds| Teacher
  106. Sponsor --> |feeds| Engineer
  107. Teacher --> |reviews| Draft
  108. File --> |triggers| Pipeline
  109. Draft -.- File
  110. Pipeline --> |updates| Website
  111. Teacher --> |authors| File
  112. Engineer --> |specifies| File
  113. Engineer --> |maintains| Pipeline
  114. Engineer --> |hosts| Website
  115. ```
  116. ```mermaid
  117. graph TB
  118. subgraph M3P2
  119. Draft[Draft]
  120. File[File]
  121. Website[Website]
  122. Pipeline[Pipeline]
  123. end
  124. Sponsor((Sponsor))
  125. Teacher((Teacher))
  126. Student((Student))
  127. Engineer((Engineer))
  128. Student --> |studies| Website
  129. Student --> |loves| Sponsor
  130. Student --> |respects| Teacher
  131. Student --> |complements| Draft
  132. Teacher -.- Engineer
  133. Sponsor --> |feeds| Teacher
  134. Sponsor --> |feeds| Engineer
  135. Teacher --> |reviews| Draft
  136. File --> |triggers| Pipeline
  137. Draft -.- File
  138. Pipeline --> |updates| Website
  139. Teacher --> |authors| File
  140. Engineer --> |specifies| File
  141. Engineer --> |maintains| Pipeline
  142. Engineer --> |hosts| Website
  143. ```