Skip to content

Commit c41a6bb

Browse files
Hot fix: add skipifgithubfork to nested_data example (#802)
* add skipifgithubfork tag * add skipifgithubfork info to a contribution guide
1 parent 406a104 commit c41a6bb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/examples/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Note: All paths in this guide are relative to the `dlt` repository directory.
2424
- Use `# @@@DLT_REMOVE` to remove test code from final code example.
2525
- Test your snippets locally first with command:
2626
- `cd docs/website/docs/examples/<example-name>/code && pytest --ignore=node_modules -s -v`.
27+
- Add `@skipifgithubfork` decorator to your main snippet function, look [example](https://github.com/dlt-hub/dlt/blob/master/docs/website/docs/examples/chess_production/code/chess-snippets.py#L1-L4).
2728

2829
## Run npm start
2930

docs/website/docs/examples/nested_data/code/nested_data-snippets.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from tests.utils import skipifgithubfork
2+
3+
4+
@skipifgithubfork
15
def nested_data_snippet() -> None:
26
# @@@DLT_SNIPPET_START example
37
# @@@DLT_SNIPPET_START nested_data

0 commit comments

Comments
 (0)