Giter Site home page Giter Site logo

Comments (8)

lmazuel avatar lmazuel commented on August 22, 2024 1

Huuuum, I see. I guess you're right, type of Sphinx is supposed to be a single type, not a complex string.
Tough part if that sphinx accepts it, even if they say they don't :p.

I don't like to point to a module, because it doesn't help that much. I probably should put a aka.ms/pyauth link into the description, and no type. Especially since msrest 0.6.0, there is an additional type possible HTTPPolicy

from autorest.python.

mmacy avatar mmacy commented on August 22, 2024

Another busted xref link is to the *Configuration instance variable for each client. Lemme know if you'd like a separate issue for this.

azure.mgmt.containerinstance.container_instance_management_client.containerinstancemanagementclien

image

azure.mgmt.authorization.authorization_management_client.authorizationmanagementclient

image

Looks like that's coming through from here: AzureServiceClientTemplate.cshtml

from autorest.python.

lmazuel avatar lmazuel commented on August 22, 2024

@mmacy I believe the syntax is correct from Autorest, and it's likely a doc issue for @dendeli-msft. I do my dev on Sphinx for the doc, and it worked at some point (didn't tested recently).

I would expect a link to this:
https://docs.microsoft.com/en-us/python/api/msrestazure/msrestazure.azure_active_directory?view=azure-python

from autorest.python.

mmacy avatar mmacy commented on August 22, 2024

@lmazuel @dendeli-msft Thanks Laurent. I ran a test at one point, removing the comment and specifying just the type, and it rendered OK:

https://review.docs.microsoft.com/en-us/python/azure-mgmt-containerinstance/azure.mgmt.containerinstance.containerinstancemanagementclient?branch=azure-python

Here's the diff: diff

And the YAML that popped out:

https://github.com/MicrosoftDocs/azure-sdk-reference-test/blob/azure-python/azure-sdk-ref-test-python/docs-ref-autogen/azure-mgmt-containerinstance/azure.mgmt.containerinstance.ContainerInstanceManagementClient.yml#L31

from autorest.python.

mmacy avatar mmacy commented on August 22, 2024

@lmazuel Ping... 🔔

from autorest.python.

lmazuel avatar lmazuel commented on August 22, 2024

Hi @mmacy
I just created the aka.ms https://aka.ms/pysdkauth

@mmacy , I see here you are able to run test easily, would it be possible for you to test if there is a syntax that the doc processor accept in type for a simple link? Maybe just writing https://aka.ms/pysdkauth, or :link:https://aka.ms/pysdkauth or something else, I don't know out of my head right now.
I can also play a little with Sphinx, but Sphinx supports way more thing, so I won't be sure it will work with the doc.
Thanks!

from autorest.python.

mmacy avatar mmacy commented on August 22, 2024

@lmazuel Looks like Markdown link format works:

Ref:
https://docs.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.v2017_03_30.models.osprofile?view=azure-python#parameters

Src:
https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/os_profile_py3.py/#L18-L22

EDIT: However, that's in a :param:. I'll do some more investigation.

from autorest.python.

lmazuel avatar lmazuel commented on August 22, 2024

Will be fixed in new autorest with azure-identity link

from autorest.python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.