Documentation API (e.g. for external documentation in IDEs such as Pycharm)

username: Haydnspass
cooked: <p>Hi there,<br>
is there a proper API to access the documentation? I would like to make use of the external documentation functionality in Pycharm.<br>
For example numpy’s documentation api is:<br>
<code>http://docs.scipy.org/doc/numpy/reference/{}generated/{module.name}.{element.name}.html</code></p>
<p>where available macros are<br>
<img src="https://discuss.pytorch.org/uploads/default/original/2X/0/08770f2bca8b86e7922e18ff8fc02e68d43100b4.png" alt="image" data-base62-sha1="1cSTZlvfVATGV3IFZD4fy0uezju" width="422" height="168"></p>
<p>Cheers</p>

username: ShawnZhong
cooked: <p>Agree. That would be pretty helpful.<br>
I am currently using <a href="https://pytorch.org/docs/master/torch.html#%7Belement.qname%7D" rel="nofollow noopener">https://pytorch.org/docs/master/torch.html#{element.qname}</a>, but it may not work if the function is not under torch.html</p>

username: ShawnZhong
cooked: <p>I compiled the documentation for the master branch and put them on GitHub: <a href="https://github.com/ShawnZhong/PyTorchDoc" rel="nofollow noopener">https://github.com/ShawnZhong/PyTorchDoc</a>.</p>
<p>You can use this link for PyTorch: <a href="https://shawnzhong.github.io/PyTorchDoc/index.html#%7Belement.qname%7D" rel="nofollow noopener">https://shawnzhong.github.io/PyTorchDoc/index.html#{element.qname}</a></p>

username: piotr
cooked: <p>This settings works for me quite well:<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/c/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08.png" data-download-href="https://discuss.pytorch.org/uploads/default/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08" title="53"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/c/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08_2_690x28.png" alt="53" data-base62-sha1="sZCse0qNCzaJBKxWYltIPuKpbUQ" width="690" height="28" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/c/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08_2_690x28.png, https://discuss.pytorch.org/uploads/default/optimized/2X/c/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08_2_1035x42.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/2X/c/cb340e404c091b21f9bea3d8a8a9f2ff5c308e08_2_1380x56.png 2x" data-dominant-color="43484B"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">53</span><span class="informations">2556×104 16.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
troch.nn.functional → <a href="https://pytorch.org/docs/stable/nn.functional.html#%7Belement.qname%7D" class="inline-onebox" rel="noopener nofollow ugc">torch.nn.functional — PyTorch 2.1 documentation</a><br>
torch → <a href="https://pytorch.org/docs/stable/%7Bmodule.basename%7D.html#%7Belement.qname%7D" rel="noopener nofollow ugc">https://pytorch.org/docs/stable/{module.basename}.html#{element.qname}</a></p>

username: Bladerunner
cooked: <p>This does not seem to work anymore. The new link to documentation should look like <a href="https://pytorch.org/docs/stable/generated/%7Bmodule.basename%7D.html#%7Belement.qname%7D" rel="noopener nofollow ugc">https://pytorch.org/docs/stable/generated/{module.basename}.html#{element.qname}</a>, but it does not work for me in PyCharm either. Did something change since Sep’19?</p>

username: Mouradost
cooked: <p>Try this <code>https://pytorch.org/docs/stable/generated/{element.qname.lower}.{class.name}.html#{element.qname.lower}.{class.name}</code></p>