Skip to content

Commit 822aeb6

Browse files
committed
configure references to tutorials and guides
1 parent ffd9eb5 commit 822aeb6

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/source/docs_utils/notebook.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ def link_to_doc_page(
138138
return f"../autoapi/autointent/{path}/index.rst" + (
139139
f"#autointent.{dotpath}.{obj}" if obj is not None else ""
140140
)
141-
# if page_type == "tutorial":
142-
# return f"../tutorials/tutorials.{page}.py" + (f"#{anchor}" if anchor is not None else "")
143-
# if page_type == "guide":
144-
# return f"../guides/{page}.rst" + (f"#{anchor}" if anchor is not None else "")
141+
if page_type == "tutorial":
142+
return f"../tutorials/tutorials.{dotpath}.py"
143+
if page_type == "guide":
144+
return f"../guides/{dotpath}.rst" + (f"#{obj}" if obj is not None else "")
145145
msg = "Unexpected page type"
146146
raise ValueError(msg)
147147

tutorials/data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,11 @@
244244

245245
# %%
246246
# dataset.push_to_hub("<repo_id>")
247+
248+
# %% [markdown]
249+
"""
250+
## See Also
251+
252+
- Training on your data: %mddoclink(tutorial,pipeline_optimization.demo)
253+
- [Key Concepts](../concepts.html)
254+
"""

0 commit comments

Comments
 (0)