Commit 1f9b9104 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Update highlighting in doc (#3000)

Summary:
This change fixes the issue where syntax highlighting is broken up par word.

## Plain
Before
<img width="243" alt="Screenshot 2023-01-20 at 1 28 48 PM" src="https://user-images.githubusercontent.com/855818/213778202-27ec8030-3f2f-4ef9-8210-bce7cfc3cb38.png">
After
<img width="244" alt="Screenshot 2023-01-20 at 1 29 01 PM" src="https://user-images.githubusercontent.com/855818/213778231-61c52825-d63a-4913-b10d-a65f3b2cfbbb.png">

## In articles
Before
<img width="786" alt="Screenshot 2023-01-20 at 1 34 12 PM" src="https://user-images.githubusercontent.com/855818/213779050-c21ba5e2-84b3-4935-bbab-6edcb7bc89ce.png">
After
<img width="783" alt="Screenshot 2023-01-20 at 1 34 17 PM" src="https://user-images.githubusercontent.com/855818/213779069-f1406422-27a4-41cf-8ccd-5058f80860bd.png">

## In tables
Before
<img width="813" alt="Screenshot 2023-01-20 at 1 27 35 PM" src="https://user-images.githubusercontent.com/855818/213778039-fede6f18-5a35-47f2-9e0b-a9be5716dc73.png">
After
<img width="813" alt="Screenshot 2023-01-20 at 1 27 51 PM" src="https://user-images.githubusercontent.com/855818/213778073-e26275a9-d380-4601-aa92-84af7aeab00f.png">

Pull Request resolved: https://github.com/pytorch/audio/pull/3000

Reviewed By: xiaohui-zhang

Differential Revision: D42642522

Pulled By: mthrok

fbshipit-source-id: 6831bb90da005aff8d7f178ef768e967bc6d2640
parent 0dd59e0d
......@@ -15,6 +15,26 @@ article.pytorch-article img.shield-badge {
margin-top: -18px;
margin-bottom: 9px;
}
/* Apply code highlight to the whole sentences instead of each word */
code.docutils.literal.notranslate {
background-color: #f3f4f7;
border-color: #f3f4f7;
border-radius: 5px;
padding: 1px 2px;
}
code.docutils.literal.notranslate span.pre {
background-color: transparent;
padding: none;
}
/* Do not overwrite in Tables generated by autosummary */
tr.row-odd code.docutils.literal.notranslate span.pre {
background-color: transparent;
border-color: transparent;
}
tr.row-even code.docutils.literal.notranslate {
background-color: transparent;
border-color: transparent;
}
/* Fix for Sphinx gallery 0.11
See https://github.com/sphinx-gallery/sphinx-gallery/issues/990
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment