Skip to content

Commit ad27330

Browse files
author
Svetlana Karslioglu
committed
Fix template tutorial, update gitignore
1 parent 21afe9f commit ad27330

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,6 @@ cleanup.sh
124124

125125
# VSCode
126126
*.vscode
127+
128+
# pyspelling
129+
dictionary.dic

.pyspelling.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ matrix:
1313
context_visible_first: true
1414
delimiters:
1515
# Exclude figure rST tags
16-
- open: '\.\.\s+(figure|literalinclude|math|image)::'
16+
- open: '\.\.\s+(figure|literalinclude|math|image|grid)::'
17+
close: '\n'
18+
# Exclude raw directive
19+
- open: '\.\. (raw)::.*$\n*'
1720
close: '\n'
1821
# Exclude Python coding directives
1922
- open: '-\*- coding:'

beginner_source/template_tutorial.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
99
.. grid:: 2
1010
11-
.. grid-item-card:: :octicon:`mortar-board;1em;` What you will learn
11+
.. grid-item-card:: :octicon:`mortar-board;1em;` What you will learn
1212
1313
* Item 1
1414
* Item 2
1515
* Item 3
1616
17-
.. grid-item-card:: :octicon:`list-unordered;1em;` Prerequisites
17+
.. grid-item-card:: :octicon:`list-unordered;1em;` Prerequisites
1818
1919
* PyTorch v2.0.0
2020
* GPU ???
@@ -35,18 +35,18 @@
3535
respects regular expressions.
3636
For example to run only ``neural_style_transfer_tutorial.py``,
3737
use the following command:
38-
38+
3939
.. code-block:: sh
40-
40+
4141
GALLERY_PATTERN="neural_style_transfer_tutorial.py" make html
42-
42+
4343
or
44-
44+
4545
.. code-block:: sh
46-
46+
4747
GALLERY_PATTERN="neural_style_transfer_tutorial.py" sphinx-build . _build
48-
49-
* Make a copy of this repo and add only your
48+
49+
* Make a copy of this repository and add only your
5050
tutorial to the `beginner_source` directory removing all other tutorials.
5151
Then run ``make html``.
5252

0 commit comments

Comments
 (0)