瀏覽代碼

Fixed broken sidenotes

Björn Ritzl 2 年之前
父節點
當前提交
1b72a9fefb

+ 1 - 1
docs/en/manuals/atlas.md

@@ -155,7 +155,7 @@ Once the texture has been created you can use [`resource.set_texture(path, param
   resource.set_texture(my_texture_id, params, buf)
   resource.set_texture(my_texture_id, params, buf)
 ```
 ```
 
 
-:::sidenote
+::: sidenote
 It is possible to use `resource.set_texture()` to also update a sub-region of the texture by using a buffer width and height less than the full size of the texture and by changing the x and y parameters to `resource.set_texture()`.
 It is possible to use `resource.set_texture()` to also update a sub-region of the texture by using a buffer width and height less than the full size of the texture and by changing the x and y parameters to `resource.set_texture()`.
 :::
 :::
 
 

+ 1 - 1
docs/en/manuals/collection-proxy.md

@@ -174,7 +174,7 @@ DEBUG:SCRIPT: update() with timestep (dt) 0.016666667535901
 
 
 `update()` is still called 60 times a second, but the value of `dt` changes. We see that only 1/5 (0.2) of the calls to `update()` will have a `dt` of 1/60 (corresponding to 60 FPS)---the rest is zero. All physics simulations will also be updated according to that dt and advance only in one fifth of the frames.
 `update()` is still called 60 times a second, but the value of `dt` changes. We see that only 1/5 (0.2) of the calls to `update()` will have a `dt` of 1/60 (corresponding to 60 FPS)---the rest is zero. All physics simulations will also be updated according to that dt and advance only in one fifth of the frames.
 
 
-:::sidenote
+::: sidenote
 You can use the collection time step functionality to pause your game, for instance while showing a popup or when the window has lost focus. Use `msg.post("#myproxy", "set_time_step", {factor = 0, mode = 0})` to pause and `msg.post("#myproxy", "set_time_step", {factor = 1, mode = 1})` to resume.
 You can use the collection time step functionality to pause your game, for instance while showing a popup or when the window has lost focus. Use `msg.post("#myproxy", "set_time_step", {factor = 0, mode = 0})` to pause and `msg.post("#myproxy", "set_time_step", {factor = 1, mode = 1})` to resume.
 :::
 :::
 
 

+ 1 - 1
docs/en/manuals/extensions-script-api.md

@@ -42,7 +42,7 @@ A script API definition file has the extension `.script_api`. It must be in [YAM
 ```
 ```
 
 
 Types can be any of `table, string , boolean, number, function`. If a value can have multiple types it is written as `[type1, type2, type3]`.
 Types can be any of `table, string , boolean, number, function`. If a value can have multiple types it is written as `[type1, type2, type3]`.
-:::sidenote
+::: sidenote
 Types are currently not shown in the editor. It is recommended to still provide them so that they are available once the editor has support for showing type information.
 Types are currently not shown in the editor. It is recommended to still provide them so that they are available once the editor has support for showing type information.
 :::
 :::
 
 

+ 1 - 1
docs/ru/manuals/collection-proxy.md

@@ -174,7 +174,7 @@ DEBUG:SCRIPT: update() with timestep (dt) 0.016666667535901
 
 
 `update()` по-прежнему вызывается 60 раз в секунду, но значение `dt` меняется. Мы видим, что только 1/5 (0.2) вызовов `update()` будет иметь `dt` равное 1/60 (что соответствует 60 FPS) --- остальные равны нулю. Все физические симуляции также будут обновляться в соответствии с этим `dt` и продвигаться только в 1/5 кадров.
 `update()` по-прежнему вызывается 60 раз в секунду, но значение `dt` меняется. Мы видим, что только 1/5 (0.2) вызовов `update()` будет иметь `dt` равное 1/60 (что соответствует 60 FPS) --- остальные равны нулю. Все физические симуляции также будут обновляться в соответствии с этим `dt` и продвигаться только в 1/5 кадров.
 
 
-:::sidenote
+::: sidenote
 Функциональность временного шага коллекции можно использовать для приостановки игры, например, при отображении всплывающего окна или когда окно потеряло фокус. Используйте `msg.post("#myproxy", "set_time_step", {factor = 0, mode = 0})` для паузы и `msg.post("#myproxy", "set_time_step", {factor = 1, mode = 1})` для возобновления.
 Функциональность временного шага коллекции можно использовать для приостановки игры, например, при отображении всплывающего окна или когда окно потеряло фокус. Используйте `msg.post("#myproxy", "set_time_step", {factor = 0, mode = 0})` для паузы и `msg.post("#myproxy", "set_time_step", {factor = 1, mode = 1})` для возобновления.
 :::
 :::
 
 

+ 1 - 1
docs/ru/manuals/extensions-script-api.md

@@ -42,7 +42,7 @@ brief: В этом руководстве объясняется, как соз
 ```
 ```
 
 
 Типы могут быть любыми из `table, string, boolean, number, function`. Если значение может иметь несколько типов, оно записывается как `[type1, type2, type3]`.
 Типы могут быть любыми из `table, string, boolean, number, function`. Если значение может иметь несколько типов, оно записывается как `[type1, type2, type3]`.
-:::sidenote
+::: sidenote
 В настоящее время типы не отображаются в редакторе. Рекомендуется все же предоставить их, чтобы они были доступны, когда редактор будет поддерживать отображение информации о типах.
 В настоящее время типы не отображаются в редакторе. Рекомендуется все же предоставить их, чтобы они были доступны, когда редактор будет поддерживать отображение информации о типах.
 :::
 :::