Closed Lakshmikanth2001 closed 2 years ago
I'm afraid I don't fully understand what you're proposing. I think I like the idea of anchored links, but I'm not sure I see how your proposed implementation fits in.
Where is the urls.json
file placed, and what does it provide? What references it?
I'll note, there's a subtle improvement that you could add to the RegEx find in your code to find everything up to the first bracket:
RE = re.compile(r'def (.*)\(') # Find all text (function name) up to the open-parenthesis
If you'd like to make the modifications in a fork of the repo and open a PR so I can see the results, I'd be very happy to explore more closely! :)
urls.json
provide hyperlinks for the source code
"phasorz": "https://github.com/engineerjoe440/ElectricPy/blob/master/electricpy/__init__.py#L844",
Phasor function source code can be viewed just by clicking this link
Additional Information <https://electrical-engineering-portal.com/download-center/books-and-guides/power-substations/insulator-pollution>
In suspension insulator
we are having Additional Information
hyperlink
Similarly, we can add a source
which redirects to source code in GitHub
Sir any update regarding this ???
Please forgive the delay on this issue, I believe you'll see updated documentation in the web documentation now!
Can we have a similar source pointing anchor tag in our https://engineerjoe440.github.io/ElectricPy/api/ documentation page
I have written a python script to generate URL for each function
urls.json
would look similar to thishttps://github.com/engineerjoe440/ElectricPy/blob/master/electricpy/__init__.py#L844 will directly point to the actual function
Can we include this feature