Skip to content

Commit 36c0178

Browse files
committed
add_stylesheet('railroad-diagrams.css') for syntax diagrams
After reading thru readthedocs/readthedocs.org#518 and experimenting, this seems to be the way to get the syntax diagram style sheets right on readthedocs.org
1 parent 038e7dd commit 36c0178

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
# ones.
3131
extensions = ['rr_ext']
3232

33+
def setup(app):
34+
app.add_stylesheet('railroad-diagrams.css')
35+
3336
# Add any paths that contain templates here, relative to this directory.
3437
templates_path = ['_templates']
3538

0 commit comments

Comments
 (0)