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:
Thibault Saunier 2020-12-04 16:10:51 -03:00
parent df3a6542a2
commit e085b45563
9 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,8 @@
{{ JS.md }}
> ![Warning](images/icons/emoticons/warning.svg) **Please port this tutorial to javascript!**
{{ END_LANG.md }}

View file

@ -0,0 +1,9 @@
{{ PY.md }}
> ![Warning](images/icons/emoticons/warning.svg) **Please port this tutorial to python!**
{{ END_LANG.md }}

View file

@ -0,0 +1,2 @@
<div class="gi-symbol-c gi-symbol-javascript">

View file

@ -0,0 +1,2 @@
<div class="gi-symbol-c gi-symbol-python">

2
markdown/templates/C.md Normal file
View file

@ -0,0 +1,2 @@
<div class="gi-symbol-c">

View file

@ -0,0 +1,4 @@
</div> <!-- LANGUAGE -->

4
markdown/templates/JS.md Normal file
View file

@ -0,0 +1,4 @@
<div class="gi-symbol-javascript">

4
markdown/templates/PY.md Normal file
View file

@ -0,0 +1,4 @@
<div class="gi-symbol-python">

View file

@ -106,7 +106,12 @@ gstreamer_doc = hotdoc.generate_doc('GStreamer',
extra_assets: [join_paths(meson.current_source_dir(), 'images')],
syntax_highlighting_activate: true,
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'),
dependencies: deps,
subprojects: hotdoc_subprojects,