Skip to content

Commit

Permalink
[Tool] Add sample link to Readme (Azure#25800)
Browse files Browse the repository at this point in the history
* add sample_link

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

Co-authored-by: Yuchao Yan <[email protected]>

* Update README.md

Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
2 people authored and mccoyp committed Sep 22, 2022
1 parent 7887606 commit 4bd84d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/azure-sdk-tools/packaging_tools/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"is_arm": True,
"need_msrestazure": False, # track2 does not need it anymore in setup.py
"need_azuremgmtcore": True,
"sample_link": "",
}


Expand Down
8 changes: 7 additions & 1 deletion tools/azure-sdk-tools/packaging_tools/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
{% endif %}

{%- if not sample_link -%}
{%- set sample_link="https://aka.ms/azsdk/python/mgmt/samples" -%}
{%- else -%}
{%- set sample_link="https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/" + sample_link -%}
{%- endif -%}

{% if is_arm %}
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/{{package_doc_id}})
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.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
Additional code samples for different Azure services are available at [Samples Repo]({{ sample_link }})
{% else %}
For code examples, see [{{package_pprint_name}}](https://docs.microsoft.com/python/api/overview/azure/{{package_doc_id}}) on docs.microsoft.com.
{% endif %}
Expand Down

0 comments on commit 4bd84d8

Please sign in to comment.