microdot icon indicating copy to clipboard operation
microdot copied to clipboard

Add viewcode

Open jgarte opened this issue 3 years ago • 2 comments

Hi, this PR adds links to the source code in the documentation. I think this is convenient for jumping to the source code implementation.

What do you think?

jgarte avatar Oct 11 '22 01:10 jgarte

The sphinx template does not format the code correctly, did you notice? I think for this to look okay the font used in the source code pages should be reduced, so that the full 80 char width of the code is displayed without the need for scrolling. horizontally

miguelgrinberg avatar Oct 11 '22 10:10 miguelgrinberg

The sphinx template does not format the code correctly, did you notice?

Hi @miguelgrinberg, I had not tried building it yet I saw it now that I built it ;()

I think for this to look okay the font used in the source code pages should be reduced, so that the full 80 char width of the code is displayed without the need for scrolling. horizontally

I tried adjusting a css class to reduce the font but no luck yet. I pushed my latest attempt in case you have any suggestions for what parent css class I should actually be changing the font on or if I am approaching the problem the wrong way all together.

I'll do some more research in the meantime and testing.

This is what the source code currently looks like which is not what we want:

image

jgarte avatar Oct 12 '22 20:10 jgarte