File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ class TranslationGraph(Directive):
13
13
14
14
def run (self ):
15
15
# Read the JSON file containing translation statistics
16
- json_path = Path (__file__ ).parent .parent / ' _static' / ' translation_stats.json'
17
- with json_path .open ('r' ) as f :
16
+ json_path = Path (__file__ ).parent .parent / " _static" / " translation_stats.json"
17
+ with json_path .open ("r" ) as f :
18
18
data = json .load (f )
19
19
20
20
# Collect all module names -- iterates over the JSON data in 2 levels
@@ -53,16 +53,16 @@ def run(self):
53
53
# Create figure
54
54
fig = go .Figure (data = traces )
55
55
fig .update_layout (
56
- barmode = ' group' ,
56
+ barmode = " group" ,
57
57
title = "Translation Coverage by Module and Locale" ,
58
58
xaxis_title = "Module" ,
59
59
yaxis_title = "Percentage Translated" ,
60
60
height = 600 ,
61
61
margin = dict (l = 40 , r = 40 , t = 40 , b = 40 )
62
62
)
63
63
64
- div = plot (fig , output_type = ' div' , include_plotlyjs = True )
65
- return [nodes .raw ('' , div , format = ' html' )]
64
+ div = plot (fig , output_type = " div" , include_plotlyjs = True )
65
+ return [nodes .raw ("" , div , format = " html" )]
66
66
67
67
def setup (app ):
68
68
app .add_directive ("translation-graph" , TranslationGraph )
Original file line number Diff line number Diff line change 83
83
"sphinxext.opengraph" ,
84
84
"sphinx_favicon" ,
85
85
"sphinxcontrib.bibtex" ,
86
- ' _ext.translation_graph' ,
86
+ " _ext.translation_graph" ,
87
87
]
88
88
89
89
# colon fence for card support in md
You can’t perform that action at this time.
0 commit comments