docs: Allow multiple infoboxes on a page to have code (#1814)

This commit is contained in:
Pasha Stetsenko
2022-07-23 18:17:51 -07:00
committed by GitHub
parent 0a41b2dabe
commit 68ef250a9f
2 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ class FlutterAppDirective(SphinxDirective):
onclick=f'run_flutter_app("{iframe_url}")',
))
if 'code' in self.modes:
code_id = self.app_name + "-source"
code_id = self.app_name + "-source-" + page
result.append(self._generate_code_listings(code_id))
result.append(Button(
'',