Skip to content

Commit ae20346

Browse files
BigCat20196msyyc
andauthored
[Tool] Add sample link to Readme (Azure#25800)
* add sample_link * Update tools/azure-sdk-tools/packaging_tools/templates/README.md Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> * Update README.md Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 89ea694 commit ae20346

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tools/azure-sdk-tools/packaging_tools/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"is_arm": True,
2020
"need_msrestazure": False, # track2 does not need it anymore in setup.py
2121
"need_azuremgmtcore": True,
22+
"sample_link": "",
2223
}
2324

2425

tools/azure-sdk-tools/packaging_tools/templates/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1414
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
1515
{% endif %}
1616

17+
{%- if not sample_link -%}
18+
{%- set sample_link="https://aka.ms/azsdk/python/mgmt/samples" -%}
19+
{%- else -%}
20+
{%- set sample_link="https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/" + sample_link -%}
21+
{%- endif -%}
22+
1723
{% if is_arm %}
1824
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/{{package_doc_id}})
1925
Code samples for this package can be found at [{{package_pprint_name}}](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
20-
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
26+
Additional code samples for different Azure services are available at [Samples Repo]({{ sample_link }})
2127
{% else %}
2228
For code examples, see [{{package_pprint_name}}](https://docs.microsoft.com/python/api/overview/azure/{{package_doc_id}}) on docs.microsoft.com.
2329
{% endif %}

0 commit comments

Comments
 (0)