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):
1313
1414 def run (self ):
1515 # 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 :
1818 data = json .load (f )
1919
2020 # Collect all module names -- iterates over the JSON data in 2 levels
@@ -53,16 +53,16 @@ def run(self):
5353 # Create figure
5454 fig = go .Figure (data = traces )
5555 fig .update_layout (
56- barmode = ' group' ,
56+ barmode = " group" ,
5757 title = "Translation Coverage by Module and Locale" ,
5858 xaxis_title = "Module" ,
5959 yaxis_title = "Percentage Translated" ,
6060 height = 600 ,
6161 margin = dict (l = 40 , r = 40 , t = 40 , b = 40 )
6262 )
6363
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" )]
6666
6767def setup (app ):
6868 app .add_directive ("translation-graph" , TranslationGraph )
Original file line number Diff line number Diff line change 8383 "sphinxext.opengraph" ,
8484 "sphinx_favicon" ,
8585 "sphinxcontrib.bibtex" ,
86- ' _ext.translation_graph' ,
86+ " _ext.translation_graph" ,
8787]
8888
8989# colon fence for card support in md
You can’t perform that action at this time.
0 commit comments