mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
Add template files to handle language in tutorials
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/124>
This commit is contained in:
parent
df3a6542a2
commit
e085b45563
9 changed files with 41 additions and 1 deletions
8
markdown/templates/ALERT_JS.md
Normal file
8
markdown/templates/ALERT_JS.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
{{ JS.md }}
|
||||||
|
|
||||||
|
> ![Warning](images/icons/emoticons/warning.svg) **Please port this tutorial to javascript!**
|
||||||
|
|
||||||
|
{{ END_LANG.md }}
|
||||||
|
|
9
markdown/templates/ALERT_PY.md
Normal file
9
markdown/templates/ALERT_PY.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
{{ PY.md }}
|
||||||
|
|
||||||
|
> ![Warning](images/icons/emoticons/warning.svg) **Please port this tutorial to python!**
|
||||||
|
|
||||||
|
{{ END_LANG.md }}
|
||||||
|
|
||||||
|
|
2
markdown/templates/C+JS_FALLBACK.md
Normal file
2
markdown/templates/C+JS_FALLBACK.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
<div class="gi-symbol-c gi-symbol-javascript">
|
2
markdown/templates/C+PY_FALLBACK.md
Normal file
2
markdown/templates/C+PY_FALLBACK.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
<div class="gi-symbol-c gi-symbol-python">
|
2
markdown/templates/C.md
Normal file
2
markdown/templates/C.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
<div class="gi-symbol-c">
|
4
markdown/templates/END_LANG.md
Normal file
4
markdown/templates/END_LANG.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- LANGUAGE -->
|
||||||
|
|
4
markdown/templates/JS.md
Normal file
4
markdown/templates/JS.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
<div class="gi-symbol-javascript">
|
||||||
|
|
4
markdown/templates/PY.md
Normal file
4
markdown/templates/PY.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
<div class="gi-symbol-python">
|
||||||
|
|
|
@ -106,7 +106,12 @@ gstreamer_doc = hotdoc.generate_doc('GStreamer',
|
||||||
extra_assets: [join_paths(meson.current_source_dir(), 'images')],
|
extra_assets: [join_paths(meson.current_source_dir(), 'images')],
|
||||||
syntax_highlighting_activate: true,
|
syntax_highlighting_activate: true,
|
||||||
html_theme: html_theme,
|
html_theme: html_theme,
|
||||||
include_paths: join_paths(meson.current_source_dir(), 'examples'),
|
include_paths: [
|
||||||
|
meson.current_source_dir() / 'examples',
|
||||||
|
meson.current_source_dir() / 'markdown' / 'tutorials' / 'basic',
|
||||||
|
meson.current_source_dir() / 'markdown' / 'templates',
|
||||||
|
meson.current_source_dir() / 'markdown' / 'tutorials' / 'playback',
|
||||||
|
],
|
||||||
html_extra_theme: join_paths(meson.current_source_dir(), 'theme/extra'),
|
html_extra_theme: join_paths(meson.current_source_dir(), 'theme/extra'),
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
subprojects: hotdoc_subprojects,
|
subprojects: hotdoc_subprojects,
|
||||||
|
|
Loading…
Reference in a new issue