Lightning-AI / pytorch-lightning

Pretrain, finetune ANY AI model of ANY size on multiple GPUs, TPUs with zero code changes.
https://lightning.ai
Apache License 2.0
28.47k stars 3.39k forks source link

Use :emphasize-lines: in sphinx docs to highlight code. #12119

Open tchaton opened 2 years ago

tchaton commented 2 years ago

📚 Documentation

For typos and doc fixes, please go ahead and:

.. code-block:: python
   :emphasize-lines: 3,5

   def some_function():
       interesting = False
       print 'This line is highlighted.'
       print 'This one is not...'
       print '...but this one is.'
Screenshot 2022-02-25 at 16 15 01

If you enjoy Lightning, check out our other projects! âš¡

cc @borda @rohitgr7 @tchaton @akihironitta

tanmoyio commented 2 years ago

@Borda @tchaton I want to work on it

akihironitta commented 2 years ago

Hi @tanmoyio! That'll be great! Thank you :)

tofuuudon commented 2 years ago

@tanmoyio have you made any progress with this? Else I'm happy to take this on in the coming week. @akihironitta @tchaton

akihironitta commented 2 years ago

@MikeyJL Are you still be interested in working on this? If yes, I'll assign this issue to you, and please create/submit a PR :)

tofuuudon commented 2 years ago

@akihironitta let's do it! Could you give me more context around the task pls? Not really sure what it's asking for in the PR desc

ParagEkbote commented 2 weeks ago

Are their specific lines of code which need to be highlighted?

Please let me know, and I could help out for this issue.

cc: @tchaton @akihironitta