Skip to content

Commit

Permalink
[doc] Fix missing language fields in code-blocks (taichi-dev#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
TH3CHARLie authored May 14, 2020
1 parent 562e1f1 commit 0cef342
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Every event have a key and type.

A *event filter* is a list combined of *key*, *type* and *(type, key)* tuple, e.g.:

.. code-block::
.. code-block:: python
# if ESC pressed or released:
gui.get_event(ti.GUI.ESCAPE)
Expand Down
6 changes: 3 additions & 3 deletions docs/layout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ To specify which layout to use in Taichi:
Both ``x`` and ``y`` have the same shape of ``(3, 2)``, and they can be accessed in the same manner, where ``0 <= i < 3 && 0 <= j < 2``. They can be accessed in the same manner: ``x[i, j]`` and ``y[i, j]``.
However, they have a very different memory layouts:

.. code-block::
.. code-block:: none
# address low ........................... address high
# x: x[0,0] x[0,1] x[0,2] | x[1,0] x[1,1] x[1,2]
Expand Down Expand Up @@ -108,7 +108,7 @@ For example, this places two 1D tensors of size ``3`` (array of structure, AoS):
Their memory layout:

.. code-block::
.. code-block:: none
# address low ............. address high
# x[0] y[0] | x[1] y[1] | x[2] y[2]
Expand All @@ -122,7 +122,7 @@ In contrast, this places two tensor placed separately (structure of array, SoA):
Now, their memory layout:

.. code-block::
.. code-block:: none
# address low ............. address high
# x[0] x[1] x[2] | y[0] y[1] y[2]
Expand Down
2 changes: 1 addition & 1 deletion docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Debugging

Debug your program with ``print(x)``. For example, if ``x`` is ``23``, then it prints

.. code-block::
.. code-block:: none
[debug] x = 23
Expand Down
6 changes: 3 additions & 3 deletions docs/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Benchmarking and Regression Tests

For example, this is part of the output by ``ti regression`` after enabling constant folding optimization pass:

.. code-block::
.. code-block:: none
linalg__________________polar_decomp______________________________
codegen_offloaded_tasks 37 -> 39 +5.4%
Expand All @@ -58,7 +58,7 @@ For example, this is part of the output by ``ti regression`` after enabling cons
The suggested workflow for **the PR author** to run the regression tests is:

* When a performance related PR is ready, checkout that PR locally.

* Run ``ti benchmark && ti regression`` to obtain the result.

* Decide wheater to approve or request change, depends on the result.
Expand All @@ -80,7 +80,7 @@ The suggested workflow for **the PR author** to run the regression tests is:
Trigger GDB when the program crashes
--------------------------------------

.. code-block::
.. code-block:: none
# Python
ti.set_gdb_trigger(True)
Expand Down

0 comments on commit 0cef342

Please sign in to comment.