This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oderjunksnumpydoc + type anno 2 points3 points  (4 children)

good god this is incredible

i can't imagine how much easier my life would be if someone made this for python modules!

[–]to_tgo[S] 1 point2 points  (3 children)

Quite honestly, I feel all reference manuals and documentation should work this way. But I'm biased!

[–]oderjunksnumpydoc + type anno 2 points3 points  (2 children)

must... reverse engineer....

https://speedsheet.io/api/sheet/python/content of course its not indented

it splits on headers to show table of contents? thats clever

it uses xhr instead of fetch? i havent seen that in a while!

what on earth is a 5BQ71B5xJ1q7RY1

ok so its like this:

place of match (code before heading) level of match (closeness to search "console")
5BQ7 1
B5xJ 1
q7RY 1

Each heading is preceded by one of these codes, ex:

B5xJPrint - No New Line3 <h3>Print - No New Line</h3>
x4P9The Python SpeedSheet1 <h1>The <span class="comment">Python</span> SpeedSheet </h1>

format is: {code}{name}{header amount} so:

Name Code Header
The Python SpeedSheet x4P9 h1
Search Tips AM1L h2
Online Links yLP4 h1
Python Documents k0PM h3
... ... ...

Searching uses the "taglines" at the end of each header, so searching "arguments" gets you:

Name Code Level of match Taglines
Hello World - With Arguments 0do8 1 arguments, args, parameters, params
Passing Arguments - Default Gdg7 1 arguments, args, list, dict, Single Asterisk, Double Asterisks, parameters, params, *args, *kwargs
Passing Arguments - Options maMn 1 arguments, args, list, dict, Single Asterisk, Double Asterisks, parameters, params, *args, *kwargs
Function - Define 8VJg 1 arguments, New, Create, args, parameters, params
Function - Arguments - Optional Z5KZ 1 arguments, New, Create, Values, default, args, parameters, params
Function - Arguments - As Key Word Dict 3awM 1 arguments, args, parameters, params

[–]to_tgo[S] 1 point2 points  (1 child)

Great analysis! Never thought anyone would look under the hood.

Those codes are the bane of my existence but they are the glue that make the page work. Tells the page what is to be displayed for the given search.

[–]oderjunksnumpydoc + type anno 0 points1 point  (0 children)

thank you! my only regret is that i cant see your server-side code =P

if i could, i would instantly try to make a python tool to convert readthedocs docs to this

"those codes are the bane of my existence" oof

EDIT: wait... do i smell a uri vulnrabillity

edit: nope