1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
3

T'ícã×ã5@sXdZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZddlmZddlmZmZdd	lmZdd
lmZmZddlm Z ddl!m"Z"ddl#Z#dd
l#m$Z$m%Z%ddl&m'Z'ddl(m)Z)ddl*m+Z+m,Z,ddl-m.Z.ddl/m0Z0ddl1m2Z2m3Z3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:ddl;m<Z<ddl=m>Z>ddl?m@Z@ddlAmBZBddlCmDZDddlEmZmFZFmGZGddlHmIZIddlJmKZKddlLmMZMdd lNmOZOdd!lPmQZQmRZRmSZSdd"lTmUZUdd#lVmWZWmXZXer&dd$lmYZYdd%lZm[Z[d`Z\d[Z]eFj^e_ƒZ`Gd\d]„d]ƒZaGd^d_„d_ƒZbdS)aznSphinx application class and extensibility interface.

Gracefully adapted from the TextPress system by Armin.
éN)Údeque)ÚStringIO)Úpath)
ÚIOÚ
TYPE_CHECKINGÚAnyÚCallableÚDictÚListÚOptionalÚTupleÚTypeÚUnion)Únodes)ÚElementÚTextElement)ÚParser)Ú	DirectiveÚroles)Ú	Transform)ÚLexer)ÚlocaleÚpackage_dir)ÚConfig)ÚRemovedInSphinx60Warning)ÚDomainÚIndex)ÚBuildEnvironment)ÚEnvironmentCollector)ÚApplicationErrorÚConfigErrorÚVersionRequirementError)ÚEventManager)Ú	Extension)Ú
lexer_classes)Ú__)ÚProject)ÚSphinxComponentRegistry)ÚXRefRole)ÚTheme)ÚdocutilsÚloggingÚprogress_message)Ú
BuildPhase)Úbold)ÚCatalogRepository)Úprefixed_warnings)ÚabspathÚ	ensuredirÚrelpath)ÚTags)ÚRoleFunctionÚTitleGetter)ÚNode)ÚBuilderúsphinx.addnodesúsphinx.builders.changesúsphinx.builders.epub3úsphinx.builders.dirhtmlúsphinx.builders.dummyúsphinx.builders.gettextúsphinx.builders.htmlúsphinx.builders.latexúsphinx.builders.linkcheckúsphinx.builders.manpageúsphinx.builders.singlehtmlúsphinx.builders.texinfoúsphinx.builders.textúsphinx.builders.xmlú
sphinx.configúsphinx.domains.cúsphinx.domains.changesetúsphinx.domains.citationúsphinx.domains.cppúsphinx.domains.indexúsphinx.domains.javascriptúsphinx.domains.mathúsphinx.domains.pythonúsphinx.domains.rstúsphinx.domains.stdúsphinx.directivesúsphinx.directives.codeúsphinx.directives.otherúsphinx.directives.patchesúsphinx.extensionúsphinx.parsersúsphinx.registryúsphinx.rolesúsphinx.transformsú%sphinx.transforms.compact_bullet_listúsphinx.transforms.i18núsphinx.transforms.referencesú!sphinx.transforms.post_transformsú&sphinx.transforms.post_transforms.codeú(sphinx.transforms.post_transforms.imagesúsphinx.util.compatúsphinx.versioningú*sphinx.environment.collectors.dependenciesú#sphinx.environment.collectors.assetú&sphinx.environment.collectors.metadataú#sphinx.environment.collectors.titleú%sphinx.environment.collectors.toctreeúsphinxcontrib.applehelpúsphinxcontrib.devhelpúsphinxcontrib.htmlhelpúsphinxcontrib.serializinghtmlúsphinxcontrib.qthelpÚ	alabasterzenvironment.picklec@s®eZdZUdZeedej	ej
ddddddf	eeeeeee
eeeeeeeeeddœdd„Zddœd	d
„Zeddœdd
„Zeddœdd„Zeddœdd„Zddœdd„Zdeeeddœdd„Zeddœdd„Zeddœdd„Zd‘eeeed œd!d"„Zedd#œd$d%„Zfd&œeeeeed'fed(œd)d*„Z fd&œeeeeed'fed(œd+d,„Z!d’ededd-œd.d/„Z"ffeee#eefedd0œd1d2„Z$eddœd3d4„Z%d“eee&j'edd5œd6d7„Z(d”ee)eeeeefdd8œd9d:„Z*d•ee)ee+eeeefdd;œd<d=„Z,d–eee-edd>œd?d@„Z.d—eeeddAœdBdC„Z/d˜eeeddDœdEdF„Z0d™ee1eddGœdHdI„Z2dšeeee-eddJœdKdL„Z3d›eee#e4e5feddMœdNdO„Z6dœeee7eddPœdQdR„Z8dSdddSgdfeeeeee9eeeddTœ	dUdV„Z:deeeee9eeddWœdXdY„Z;ee<ddZœd[d\„Z=ee<ddZœd]d^„Z>džeeeeedd_œd`da„Z?dŸeeeddbœdcdd„Z@d eeeddeœdfdg„ZAd¡eeeddhœdidj„ZBeeeCddkœdldm„ZDd¢eeddnœdodp„ZEeeeeegefddqœdrds„ZFeddtœdudv„ZGd£eeeddwœdxdy„ZHd¤eeIeddzœd{d|„ZJeeKdd}œd~d„ZLeedd€œdd‚„ZMd¥eeeefeeefddƒœd„d…„ZNeedd†œd‡dˆ„ZOeed‰œdŠd‹„ZPdŒd„ZQeRe
eefdœdŽd„ƒZSdS)¦ÚSphinxaThe main application class and extensibility interface.

    :ivar srcdir: Directory containing source.
    :ivar confdir: Directory containing ``conf.py``.
    :ivar doctreedir: Directory for storing pickled doctrees.
    :ivar outdir: Directory for storing build documents.
    NFr)ÚsrcdirÚconfdirÚoutdirÚ
doctreedirÚbuildernameÚ
confoverridesÚstatusÚwarningÚfreshenvÚwarningiserrorÚtagsÚ	verbosityÚparallelÚ
keep_goingÚreturncCsþtj|_||_i|_d|_d|_d|_tƒ|_	t
|ƒ|_t
|ƒ|_t
|ƒ|_
tj|jƒsjttdƒ|jƒ‚tj|jƒr–tj|jƒr–ttdƒ|jƒ‚|j|jkr®ttdƒƒ‚|
|_|dkrÌtƒ|_d|_n||_d|_|dkrêtƒ|_n||_d|_|
oü||_|jrd|_n|
|_tj||j|jƒt|ƒ|_tdd|_ t!j"t#td	ƒt$j%ƒƒd|_&t'|ƒ|_(|dkrŒ|j|_)t*i|p„iƒ|_+n$t
|ƒ|_)t*j,|j)|p¦i|j(ƒ|_+|j+j-ƒ|j.ƒ|j+j/rð|j+j/t$j%krðt0td
ƒ|j+j/ƒ‚xt1D]}|j2|ƒqöWx|j+jD]}|j2|ƒqW|j3|ƒtj|ƒs^t4tdƒƒt5|ƒWdQRX|j+jr°tdƒd
}t6|ƒ.t7|j+jƒrš|j+j|ƒnt8tdƒƒ‚WdQRX|j+j9ƒ|jj:d|j+ƒt;|j|j+j<ƒ|_|j=|ƒ|_|j>|	ƒ|j?ƒdS)Nz!Cannot find source directory (%s)z(Output directory (%s) is not a directoryz>Source directory and destination directory cannot be identicalTFré
)ÚmaxlenzRunning Sphinx v%szWThis project needs at least Sphinx v%s and therefore cannot be built with this version.zmaking output directoryzwhile setting up extension %s:zconf.pyz¹'setup' as currently defined in conf.py isn't a Python callable. Please modify its definition to make it a callable function. This is needed for conf.py to behave as a Sphinx extension.z
config-inited)@r-ZINITIALIZATIONÚphaserzÚ
extensionsÚbuilderÚenvÚprojectr'Úregistryr1rorqrrrÚisdirrr%Úexistsr{rZ_statusÚquietZ_warningÚ
_warncountr|rxr+Úsetupr"ÚeventsrZ
messagelogÚloggerÚinfor.ÚsphinxÚ__display_version__Ú
statuscoder4ryrprÚconfigÚreadZpre_init_valuesÚ
_init_i18nZneeds_sphinxr!Úbuiltin_extensionsÚsetup_extensionÚpreload_builderr,r2r0Úcallabler Zinit_valuesÚemitr&Z
source_suffixÚcreate_builderÚ	_init_envÚ
_init_builder)Úselfrorprqrrrsrtrurvrwrxryrzr{r|Ú	extensionÚprefix©rŸú4/tmp/pip-build-gk9425m9/sphinx/sphinx/application.pyÚ__init__‚sŒ

















zSphinx.__init__)r}cCsþ|jjdkr tjgdƒ\|_}nÚtjttdƒ|jjƒddt	|j
|jj|jj|jjƒ}x4|j
D]*}|jdkrb|jƒrb|j|jj|jjƒqbWt|jƒ}|dg7}|tjtdƒg7}tj||jjƒ\|_}|sÜ|jjdkrìtjtdƒƒntjtd	ƒƒdS)
zhLoad translated strings from the configured localedirs if enabled in
        the configuration.
        Nzloading translations [%s]... T)ZnonlrŽrÚenÚdonez#not available for built-in messages)r‘ÚlanguagerÚinitZ
translatorrŒrr.r%r/roÚlocale_dirsZsource_encodingZcatalogsÚdomainZis_outdatedZwrite_moZ gettext_allow_fuzzy_translationsÚlistrÚjoinr)rœZhas_translationÚrepoÚcatalogr¦rŸrŸr r“s"


zSphinx._init_i18n)rwr}cCsÌtj|jtƒ}|s tjj|ƒr>t|ƒ|_|jj|j	|j
ƒnŠyJttdƒƒ4t
|dƒ}tj|ƒ|_|jj|ƒWdQRXWdQRXWn>tk
rÆ}z"tjtdƒ|ƒ|jddWYdd}~XnXdS)Nzloading pickled environmentÚrbz
failed: %sT)rw)rr©rrÚENV_PICKLE_FILENAMEÚosr‡rrƒZ
find_filesr‘r‚r,r%ÚopenÚpickleÚloadrŠÚ	ExceptionrŒrrš)rœrwÚfilenameÚfÚerrrŸrŸr ršs
$zSphinx._init_env)Únamer}cCs|jj||ƒdS)N)r…r–)rœr¶rŸrŸr r–.szSphinx.preload_builderr8cCs(|dkrtjtdƒƒd}|jj||ƒS)Nz(No builder selected, using default: htmlÚhtml)rŒrr%r…r™)rœr¶rŸrŸr r™1szSphinx.create_buildercCs(|jj|jƒ|jjƒ|jjdƒdS)Nzbuilder-inited)r‚Zset_environmentrƒr¥r‹r˜)rœrŸrŸr r›8s
zSphinx._init_builder)Ú	force_allÚ	filenamesr}cCs´tj|_y4|r&|jjƒ|jjƒn2|rD|jj|ƒ|jj|ƒn|jjƒ|jj	ƒ|j
rj|jrjd|_|jdkr|t
dƒnt
dƒ}|j
rä|jr®|j
dkr¤t
dƒ}qÊt
dƒ}n|j
dkrÂt
dƒ}nt
dƒ}tjt|||j
fƒƒntjtt
d	ƒ|ƒƒ|jdkr<|jjr<tjd
ƒtj|jjt|jƒ|jjdœƒWnXtk
r–}z:tj|jtƒ}tj|ƒrvtj|ƒ|jj d|ƒ‚WYdd}~XnX|jj ddƒ|jj!ƒdS)
NérZ	succeededzfinished with problemsz7build %s, %s warning (with warnings treated as errors).z8build %s, %s warnings (with warnings treated as errors).zbuild %s, %s warning.zbuild %s, %s warnings.z	build %s.Ú)rqr„zbuild-finished)"r-ZREADINGr€r‚Zcompile_all_catalogsZ	build_allZcompile_specific_catalogsZbuild_specificZcompile_update_catalogsZbuild_updater‰r|rr%rxrŒrr.Úepilogr3rqr‘r„r²rr©rrr­Úisfiler®Úunlinkr‹r˜Úcleanup)rœr¸r¹ruÚmsgrµZenvfilerŸrŸr Úbuild?sJ










zSphinx.build)Úextnamer}cCstjd|ƒ|jj||ƒdS)zâImport and setup a Sphinx extension module.

        Load the extension given by the module *name*.  Use this if your
        extension needs the features provided by another extension.  No-op if
        called twice.
        z[app] setting up extension: %rN)rŒÚdebugr…Zload_extension)rœrÂrŸrŸr r•tszSphinx.setup_extension)Úversionr}cCs|tjdd…krt|ƒ‚dS)aCheck the Sphinx version if requested.

        Compare *version* with the version of the running Sphinx, and abort the
        build when it is too old.

        :param version: The required version in the form of ``major.minor``.

        .. versionadded:: 1.0
        Né)rŽrr!)rœrÄrŸrŸr Úrequire_sphinx~s
zSphinx.require_sphinxéô)ÚeventÚcallbackÚpriorityr}cCs&|jj|||ƒ}tjd||||ƒ|S)a?Register *callback* to be called when *event* is emitted.

        For details on available core events and the arguments of callback
        functions, please see :ref:`events`.

        :param event: The name of target event
        :param callback: Callback function for the event
        :param priority: The priority of the callback.  The callbacks will be invoked
                         in order of *priority* (ascending).
        :return: A listener ID.  It can be used for :meth:`disconnect`.

        .. versionchanged:: 3.0

           Support *priority*
        z*[app] connecting event %r (%d): %r [id=%s])r‹ÚconnectrŒrÃ)rœrÈrÉrÊÚlistener_idrŸrŸr rˌszSphinx.connect)rÌr}cCstjd|ƒ|jj|ƒdS)zvUnregister callback by *listener_id*.

        :param listener_id: A listener_id that :meth:`connect` returns
        z"[app] disconnecting event: [id=%s]N)rŒrÃr‹Ú
disconnect)rœrÌrŸrŸr rÍ¡szSphinx.disconnect)Úallowed_exceptions.)rÈÚargsrÎr}cGs|jj|f|žd|iŽS)aðEmit *event* and pass *arguments* to the callback functions.

        Return the return values of all callbacks as a list.  Do not emit core
        Sphinx events in extensions!

        :param event: The name of event that will be emitted
        :param args: The arguments for the event
        :param allowed_exceptions: The list of exceptions that are allowed in the callbacks

        .. versionchanged:: 3.1

           Added *allowed_exceptions* to specify path-through exceptions
        rÎ)r‹r˜)rœrÈrÎrÏrŸrŸr r˜©szSphinx.emitcGs|jj|f|žd|iŽS)aèEmit *event* and pass *arguments* to the callback functions.

        Return the result of the first callback that doesn't return ``None``.

        :param event: The name of event that will be emitted
        :param args: The arguments for the event
        :param allowed_exceptions: The list of exceptions that are allowed in the callbacks

        .. versionadded:: 0.5
        .. versionchanged:: 3.1

           Added *allowed_exceptions* to specify path-through exceptions
        rÎ)r‹Úemit_firstresult)rœrÈrÎrÏrŸrŸr rкszSphinx.emit_firstresult)r‚Úoverrider}cCs|jj||ddS)a#Register a new builder.

        :param builder: A builder class
        :param override: If true, install the builder forcedly even if another builder
                         is already installed as the same name

        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_builder)rœr‚rÑrŸrŸr rÒÎs
zSphinx.add_builder)r¶ÚdefaultÚrebuildÚtypesr}cCs>tjd||||fƒ|dkr(|r$dnd}|jj||||ƒdS)agRegister a configuration value.

        This is necessary for Sphinx to recognize new values and set default
        values accordingly.


        :param name: The name of the configuration value.  It is recommended to be prefixed
                     with the extension name (ex. ``html_logo``, ``epub_title``)
        :param default: The default value of the configuration.
        :param rebuild: The condition of rebuild.  It must be one of those values:

                        * ``'env'`` if a change in the setting only takes effect when a
                          document is parsed -- this means that the whole environment must be
                          rebuilt.
                        * ``'html'`` if a change in the setting needs a full rebuild of HTML
                          documents.
                        * ``''`` if a change in the setting will not need any special rebuild.
        :param types: The type of configuration value.  A list of types can be specified.  For
                      example, ``[str]`` is used to describe a configuration that takes string
                      value.

        .. versionchanged:: 0.4
           If the *default* value is a callable, it will be called with the
           config object as its argument in order to get the default value.
           This can be used to implement config values whose default depends on
           other values.

        .. versionchanged:: 0.6
           Changed *rebuild* from a simple boolean (equivalent to ``''`` or
           ``'env'``) to a string.  However, booleans are still accepted and
           converted internally.
        z[app] adding config value: %rFTrƒr»N)FT)rŒrÃr‘Úadd)rœr¶rÓrÔrÕrŸrŸr Úadd_config_valueÛs"zSphinx.add_config_valuecCstjd|ƒ|jj|ƒdS)z„Register an event called *name*.

        This is needed to be able to emit it.

        :param name: The name of the event
        z[app] adding event: %rN)rŒrÃr‹rÖ)rœr¶rŸrŸr Ú	add_eventszSphinx.add_event)r¶Útranslator_classrÑr}cCs|jj|||ddS)a”Register or override a Docutils translator class.

        This is used to register a custom output translator or to replace a
        builtin translator.  This allows extensions to use a custom translator
        and define custom nodes for the translator (see :meth:`add_node`).

        :param name: The name of the builder for the translator
        :param translator_class: A translator class
        :param override: If true, install the translator forcedly even if another translator
                         is already installed as the same name

        .. versionadded:: 1.3
        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Zadd_translator)rœr¶rÙrÑrŸrŸr Úset_translatorszSphinx.set_translator)ÚnoderÑÚkwargsr}cKsVtjd||fƒ|r8tj|ƒr8tjtdƒ|jdddtj|ƒ|jj	|f|ŽdS)aÐRegister a Docutils node class.

        This is necessary for Docutils internals.  It may also be used in the
        future to validate nodes in the parsed documents.

        :param node: A node class
        :param kwargs: Visitor functions for each builder (see below)
        :param override: If true, install the node forcedly even if another node is already
                         installed as the same name

        Node visitor functions for the Sphinx HTML, LaTeX, text and manpage
        writers can be given as keyword arguments: the keyword should be one or
        more of ``'html'``, ``'latex'``, ``'text'``, ``'man'``, ``'texinfo'``
        or any other supported translators, the value a 2-tuple of ``(visit,
        depart)`` methods.  ``depart`` can be ``None`` if the ``visit``
        function raises :exc:`docutils.nodes.SkipNode`.  Example:

        .. code-block:: python

           class math(docutils.nodes.Element): pass

           def visit_math_html(self, node):
               self.body.append(self.starttag(node, 'math'))
           def depart_math_html(self, node):
               self.body.append('</math>')

           app.add_node(math, html=(visit_math_html, depart_math_html))

        Obviously, translators for which you don't specify visitor methods will
        choke on the node when encountered in a document to translate.

        .. versionchanged:: 0.5
           Added the support for keyword arguments giving visit functions.
        z[app] adding node: %rzDnode class %r is already registered, its visitors will be overriddenÚappÚadd_node)ÚtypeÚsubtypeN)
rŒrÃr*Zis_node_registeredrvr%Ú__name__Z
register_noder…Zadd_translation_handlers)rœrÛrÑrÜrŸrŸr rÞs$

zSphinx.add_node)rÛÚfigtypeÚtitle_getterrÑrÜr}cKs.|jj||||d|j|fd|i|—ŽdS)a_Register a Docutils node class as a numfig target.

        Sphinx numbers the node automatically. And then the users can refer it
        using :rst:role:`numref`.

        :param node: A node class
        :param figtype: The type of enumerable nodes.  Each figtype has individual numbering
                        sequences.  As system figtypes, ``figure``, ``table`` and
                        ``code-block`` are defined.  It is possible to add custom nodes to
                        these default figtypes.  It is also possible to define new custom
                        figtype if a new figtype is given.
        :param title_getter: A getter function to obtain the title of node.  It takes an
                             instance of the enumerable node, and it must return its title as
                             string.  The title is used to the default title of references for
                             :rst:role:`ref`.  By default, Sphinx searches
                             ``docutils.nodes.caption`` or ``docutils.nodes.title`` from the
                             node as a title.
        :param kwargs: Visitor functions for each builder (same as :meth:`add_node`)
        :param override: If true, install the node forcedly even if another node is already
                         installed as the same name

        .. versionadded:: 1.4
        )rÑrÑN)r…Úadd_enumerable_noderÞ)rœrÛrârãrÑrÜrŸrŸr räKszSphinx.add_enumerable_node)r¶ÚclsrÑr}cCsFtjd||fƒ|r6tj|ƒr6tjtdƒ|dddtj||ƒdS)a^Register a Docutils directive.

        :param name: The name of the directive
        :param cls: A directive class
        :param override: If true, install the directive forcedly even if another directive
                         is already installed as the same name

        For example, a custom directive named ``my-directive`` would be added
        like this:

        .. code-block:: python

           from docutils.parsers.rst import Directive, directives

           class MyDirective(Directive):
               has_content = True
               required_arguments = 1
               optional_arguments = 0
               final_argument_whitespace = True
               option_spec = {
                   'class': directives.class_option,
                   'name': directives.unchanged,
               }

               def run(self):
                   ...

           def setup(app):
               app.add_directive('my-directive', MyDirective)

        For more details, see `the Docutils docs
        <https://docutils.sourceforge.io/docs/howto/rst-directives.html>`__ .

        .. versionchanged:: 0.6
           Docutils 0.5-style directive classes are now supported.
        .. deprecated:: 1.8
           Docutils 0.4-style (function based) directives support is deprecated.
        .. versionchanged:: 1.8
           Add *override* keyword.
        z[app] adding directive: %rz9directive %r is already registered, it will be overriddenrÝÚ
add_directive)rßràN)rŒrÃr*Zis_directive_registeredrvr%Zregister_directive)rœr¶rårÑrŸrŸr ræhs
)
zSphinx.add_directive)r¶ÚrolerÑr}cCsFtjd||fƒ|r6tj|ƒr6tjtdƒ|dddtj||ƒdS)aÒRegister a Docutils role.

        :param name: The name of role
        :param role: A role function
        :param override: If true, install the role forcedly even if another role is already
                         installed as the same name

        For more details about role functions, see `the Docutils docs
        <https://docutils.sourceforge.io/docs/howto/rst-roles.html>`__ .

        .. versionchanged:: 1.8
           Add *override* keyword.
        z[app] adding role: %rz4role %r is already registered, it will be overriddenrÝÚadd_role)rßràN)rŒrÃr*Úis_role_registeredrvr%Ú
register_role)rœr¶rçrÑrŸrŸr rè˜s

zSphinx.add_role)r¶Ú	nodeclassrÑr}cCsRtjd||fƒ|r6tj|ƒr6tjtdƒ|dddtj||ƒ}tj||ƒdS)a‰Register a generic Docutils role.

        Register a Docutils role that does nothing but wrap its contents in the
        node given by *nodeclass*.

        If *override* is True, the given *nodeclass* is forcedly installed even if
        a role named as *name* is already installed.

        .. versionadded:: 0.6
        .. versionchanged:: 1.8
           Add *override* keyword.
        z[app] adding generic role: %rz4role %r is already registered, it will be overriddenrÝÚadd_generic_role)rßràN)	rŒrÃr*rérvr%rZGenericRolerê)rœr¶rërÑrçrŸrŸr rì¬s
zSphinx.add_generic_role)r§rÑr}cCs|jj||ddS)a8Register a domain.

        :param domain: A domain class
        :param override: If true, install the domain forcedly even if another domain
                         is already installed as the same name

        .. versionadded:: 1.0
        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Ú
add_domain)rœr§rÑrŸrŸr ríÂszSphinx.add_domain)r§r¶rårÑr}cCs|jj||||ddS)aRegister a Docutils directive in a domain.

        Like :meth:`add_directive`, but the directive is added to the domain
        named *domain*.

        :param domain: The name of target domain
        :param name: A name of directive
        :param cls: A directive class
        :param override: If true, install the directive forcedly even if another directive
                         is already installed as the same name

        .. versionadded:: 1.0
        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_directive_to_domain)rœr§r¶rårÑrŸrŸr rîÏszSphinx.add_directive_to_domain)r§r¶rçrÑr}cCs|jj||||ddS)aRegister a Docutils role in a domain.

        Like :meth:`add_role`, but the role is added to the domain named
        *domain*.

        :param domain: The name of the target domain
        :param name: The name of the role
        :param role: The role function
        :param override: If true, install the role forcedly even if another role is already
                         installed as the same name

        .. versionadded:: 1.0
        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_role_to_domain)rœr§r¶rçrÑrŸrŸr rïâszSphinx.add_role_to_domain)r§ÚindexrÑr}cCs|jj||ƒdS)aÀRegister a custom index for a domain.

        Add a custom *index* class to the domain named *domain*.

        :param domain: The name of the target domain
        :param index: The index class
        :param override: If true, install the index forcedly even if another index is
                         already installed as the same name

        .. versionadded:: 1.0
        .. versionchanged:: 1.8
           Add *override* keyword.
        N)r…Úadd_index_to_domain)rœr§rðrÑrŸrŸr rñõszSphinx.add_index_to_domainr»)	Ú
directivenameÚrolenameÚ
indextemplateÚ
parse_nodeÚ
ref_nodeclassÚobjnameÚdoc_field_typesrÑr}c		
Cs |jj||||||||ddS)aX
Register a new object type.

        This method is a very convenient way to add a new :term:`object` type
        that can be cross-referenced.  It will do this:

        - Create a new directive (called *directivename*) for documenting an
          object.  It will automatically add index entries if *indextemplate*
          is nonempty; if given, it must contain exactly one instance of
          ``%s``.  See the example below for how the template will be
          interpreted.
        - Create a new role (called *rolename*) to cross-reference to these
          object descriptions.
        - If you provide *parse_node*, it must be a function that takes a
          string and a docutils node, and it must populate the node with
          children parsed from the string.  It must then return the name of the
          item to be used in cross-referencing and index entries.  See the
          :file:`conf.py` file in the source for this documentation for an
          example.
        - The *objname* (if not given, will default to *directivename*) names
          the type of object.  It is used when listing objects, e.g. in search
          results.

        For example, if you have this call in a custom Sphinx extension::

           app.add_object_type('directive', 'dir', 'pair: %s; directive')

        you can use this markup in your documents::

           .. rst:directive:: function

              Document a function.

           <...>

           See also the :rst:dir:`function` directive.

        For the directive, an index entry will be generated as if you had prepended ::

           .. index:: pair: function; directive

        The reference node will be of class ``literal`` (so it will be rendered
        in a proportional font, as appropriate for code) unless you give the
        *ref_nodeclass* argument, which must be a docutils node class.  Most
        useful are ``docutils.nodes.emphasis`` or ``docutils.nodes.strong`` --
        you can also use ``docutils.nodes.generated`` if you want no further
        text decoration.  If the text should be treated as literal (e.g. no
        smart quote replacement), but not have typewriter styling, use
        ``sphinx.addnodes.literal_emphasis`` or
        ``sphinx.addnodes.literal_strong``.

        For the role content, you have the same syntactical possibilities as
        for standard Sphinx roles (see :ref:`xref-syntax`).

        If *override* is True, the given object_type is forcedly installed even if
        an object_type having the same name is already installed.

        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_object_type)	rœròrórôrõrör÷rørÑrŸrŸr rùs?zSphinx.add_object_type)ròrórôrör÷rÑr}cCs|jj||||||ddS)aRegister a new crossref object type.

        This method is very similar to :meth:`add_object_type` except that the
        directive it generates must be empty, and will produce no output.

        That means that you can add semantic targets to your sources, and refer
        to them using custom roles instead of generic ones (like
        :rst:role:`ref`).  Example call::

           app.add_crossref_type('topic', 'topic', 'single: %s',
                                 docutils.nodes.emphasis)

        Example usage::

           .. topic:: application API

           The application API
           -------------------

           Some random text here.

           See also :topic:`this section <application API>`.

        (Of course, the element following the ``topic`` directive needn't be a
        section.)

        If *override* is True, the given crossref_type is forcedly installed even if
        a crossref_type having the same name is already installed.

        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_crossref_type)rœròrórôrör÷rÑrŸrŸr rúIs#
zSphinx.add_crossref_type)Ú	transformr}cCs|jj|ƒdS)a=Register a Docutils transform to be applied after parsing.

        Add the standard docutils :class:`Transform` subclass *transform* to
        the list of transforms that are applied after Sphinx parses a reST
        document.

        :param transform: A transform class

        .. list-table:: priority range categories for Sphinx transforms
           :widths: 20,80

           * - Priority
             - Main purpose in Sphinx
           * - 0-99
             - Fix invalid nodes by docutils. Translate a doctree.
           * - 100-299
             - Preparation
           * - 300-399
             - early
           * - 400-699
             - main
           * - 700-799
             - Post processing. Deadline to modify text and referencing.
           * - 800-899
             - Collect referencing and referenced nodes. Domain processing.
           * - 900-999
             - Finalize and clean up.

        refs: `Transform Priority Range Categories`__

        __ https://docutils.sourceforge.io/docs/ref/transforms.html#transform-priority-range-categories
        N)r…Ú
add_transform)rœrûrŸrŸr rüps!zSphinx.add_transformcCs|jj|ƒdS)aRegister a Docutils transform to be applied before writing.

        Add the standard docutils :class:`Transform` subclass *transform* to
        the list of transforms that are applied before Sphinx writes a
        document.

        :param transform: A transform class
        N)r…Úadd_post_transform)rœrûrŸrŸr rý“s	zSphinx.add_post_transform)r³rÊÚloading_methodrÜr}cKsb|dkrd|d<n|dkr"d|d<|jj|fd|i|—Žt|jdƒr^|jj|fd|i|—ŽdS)aé	Register a JavaScript file to include in the HTML output.

        :param filename: The filename of the JavaScript file.  It must be relative to the HTML
                         static path, a full URI with scheme, or ``None`` value.  The ``None``
                         value is used to create inline ``<script>`` tag.  See the description
                         of *kwargs* below.
        :param priority: The priority to determine the order of ``<script>`` tag for
                         JavaScript files.  See list of "prority range for JavaScript
                         files" below.  If the priority of the JavaScript files it the same
                         as others, the JavaScript files will be loaded in order of
                         registration.
        :param loading_method: The loading method of the JavaScript file.  ``'async'`` or
                               ``'defer'`` is allowed.
        :param kwargs: Extra keyword arguments are included as attributes of the ``<script>``
                       tag.  A special keyword argument ``body`` is given, its value will be
                       added between the ``<script>`` tag.

        Example::

            app.add_js_file('example.js')
            # => <script src="_static/example.js"></script>

            app.add_js_file('example.js', loading_method="async")
            # => <script src="_static/example.js" async="async"></script>

            app.add_js_file(None, body="var myVariable = 'foo';")
            # => <script>var myVariable = 'foo';</script>

        .. list-table:: priority range for JavaScript files
           :widths: 20,80

           * - Priority
             - Main purpose in Sphinx
           * - 200
             - default priority for built-in JavaScript files
           * - 500
             - default priority for extensions
           * - 800
             - default priority for :confval:`html_js_files`

        A JavaScript file can be added to the specific HTML page when an extension
        calls this method on :event:`html-page-context` event.

        .. versionadded:: 0.5

        .. versionchanged:: 1.8
           Renamed from ``app.add_javascript()``.
           And it allows keyword arguments as attributes of script tag.

        .. versionchanged:: 3.5
           Take priority argument.  Allow to add a JavaScript file to the specific page.
        .. versionchanged:: 4.4
           Take loading_method argument.  Allow to change the loading method of the
           JavaScript file.
        ÚasyncÚdeferrÊÚadd_js_fileN)r…rÚhasattrr‚)rœr³rÊrþrÜrŸrŸr ržs9
zSphinx.add_js_file)r³rÊrÜr}cKsLtjd|ƒ|jj|fd|i|—Žt|jdƒrH|jj|fd|i|—ŽdS)a[	Register a stylesheet to include in the HTML output.

        :param filename: The filename of the CSS file.  It must be relative to the HTML
                         static path, or a full URI with scheme.
        :param priority: The priority to determine the order of ``<link>`` tag for the
                         CSS files.  See list of "prority range for CSS files" below.
                         If the priority of the CSS files it the same as others, the
                         CSS files will be loaded in order of registration.
        :param kwargs: Extra keyword arguments are included as attributes of the ``<link>``
                       tag.

        Example::

            app.add_css_file('custom.css')
            # => <link rel="stylesheet" href="_static/custom.css" type="text/css" />

            app.add_css_file('print.css', media='print')
            # => <link rel="stylesheet" href="_static/print.css"
            #          type="text/css" media="print" />

            app.add_css_file('fancy.css', rel='alternate stylesheet', title='fancy')
            # => <link rel="alternate stylesheet" href="_static/fancy.css"
            #          type="text/css" title="fancy" />

        .. list-table:: priority range for CSS files
           :widths: 20,80

           * - Priority
             - Main purpose in Sphinx
           * - 200
             - default priority for built-in CSS files
           * - 500
             - default priority for extensions
           * - 800
             - default priority for :confval:`html_css_files`

        A CSS file can be added to the specific HTML page when an extension calls
        this method on :event:`html-page-context` event.

        .. versionadded:: 1.0

        .. versionchanged:: 1.6
           Optional ``alternate`` and/or ``title`` attributes can be supplied
           with the arguments *alternate* (a Boolean) and *title* (a string).
           The default is no title and *alternate* = ``False``. For
           more information, refer to the `documentation
           <https://mdn.io/Web/CSS/Alternative_style_sheets>`__.

        .. versionchanged:: 1.8
           Renamed from ``app.add_stylesheet()``.
           And it allows keyword arguments as attributes of link tag.

        .. versionchanged:: 3.5
           Take priority argument.  Allow to add a CSS file to the specific page.
        zpp] adding stylesheet: %rrÊÚadd_css_fileN)rŒrÃr…Z
add_css_filesrr‚r)rœr³rÊrÜrŸrŸr ràs8zSphinx.add_css_file)r³Ú	alternateÚtitler}cCsBtjdƒi}|rd|d<nd|d<|r0||d<|j|f|ŽdS)zGAn alias of :meth:`add_css_file`.

        .. deprecated:: 1.8
        zNThe app.add_stylesheet() is deprecated. Please use app.add_css_file() instead.zalternate stylesheetÚrelZ
stylesheetrN)rŒrvr)rœr³rrÚ
attributesrŸrŸr Úadd_stylesheets

zSphinx.add_stylesheet)ÚpackagenameÚoptionsÚafter_hyperrefr}cCs|jj|||ƒdS)a›Register a package to include in the LaTeX source code.

        Add *packagename* to the list of packages that LaTeX source code will
        include.  If you provide *options*, it will be taken to the `\usepackage`
        declaration.  If you set *after_hyperref* truthy, the package will be
        loaded after ``hyperref`` package.

        .. code-block:: python

           app.add_latex_package('mypackage')
           # => \usepackage{mypackage}
           app.add_latex_package('mypackage', 'foo,bar')
           # => \usepackage[foo,bar]{mypackage}

        .. versionadded:: 1.3
        .. versionadded:: 3.1

           *after_hyperref* option.
        N)r…Úadd_latex_package)rœr	r
rrŸrŸr r1szSphinx.add_latex_package)ÚaliasÚlexerr}cCstjd||fƒ|t|<dS)a2Register a new lexer for source code.

        Use *lexer* to highlight code blocks with the given language *alias*.

        .. versionadded:: 0.6
        .. versionchanged:: 2.1
           Take a lexer class as an argument.  An instance of lexers are
           still supported until Sphinx-3.x.
        z[app] adding lexer: %rN)rŒrÃr$)rœr
rrŸrŸr Ú	add_lexerHs
zSphinx.add_lexer)rårÑr}cCsBtjd|ƒddlm}|jj|j|ƒ|jd|j||ddS)a¨Register a new documenter class for the autodoc extension.

        Add *cls* as a new documenter class for the :mod:`sphinx.ext.autodoc`
        extension.  It must be a subclass of
        :class:`sphinx.ext.autodoc.Documenter`.  This allows auto-documenting
        new types of objects.  See the source of the autodoc module for
        examples on how to subclass :class:`Documenter`.

        If *override* is True, the given *cls* is forcedly installed even if
        a documenter having the same name is already installed.

        See :ref:`autodoc_ext_tutorial`.

        .. versionadded:: 0.6
        .. versionchanged:: 2.2
           Add *override* keyword.
        z[app] adding autodocumenter: %rr)ÚAutodocDirectiveÚauto)rÑN)rŒrÃZsphinx.ext.autodoc.directiverr…Zadd_documenterZobjtyperæ)rœrårÑrrŸrŸr Úadd_autodocumenterUszSphinx.add_autodocumenter)ÚtypÚgetterr}cCs"tjd||fƒ|jj||ƒdS)a¼Register a new ``getattr``-like function for the autodoc extension.

        Add *getter*, which must be a function with an interface compatible to
        the :func:`getattr` builtin, as the autodoc attribute getter for
        objects that are instances of *typ*.  All cases where autodoc needs to
        get an attribute of a type are then handled by this function instead of
        :func:`getattr`.

        .. versionadded:: 0.6
        z#[app] adding autodoc attrgetter: %rN)rŒrÃr…Úadd_autodoc_attrgetter)rœrrrŸrŸr rlszSphinx.add_autodoc_attrgetter)rår}cCs8tjd|ƒddlm}m}t||ƒs*t‚|||j<dS)a–Register a new language for the HTML search index.

        Add *cls*, which must be a subclass of
        :class:`sphinx.search.SearchLanguage`, as a support language for
        building the HTML full-text search index.  The class must have a *lang*
        attribute that indicates the language it should be used for.  See
        :confval:`html_search_language`.

        .. versionadded:: 1.1
        z [app] adding search language: %rr)ÚSearchLanguageÚ	languagesN)rŒrÃZ
sphinx.searchrrÚ
issubclassÚAssertionErrorÚlang)rœrårrrŸrŸr Úadd_search_language{szSphinx.add_search_language)ÚsuffixÚfiletyperÑr}cCs|jj|||ddS)a3Register a suffix of source files.

        Same as :confval:`source_suffix`.  The users can override this
        using the config setting.

        If *override* is True, the given *suffix* is forcedly installed even if
        the same suffix is already installed.

        .. versionadded:: 1.8
        )rÑN)r…Úadd_source_suffix)rœrrrÑrŸrŸr r‹szSphinx.add_source_suffix)ÚparserrÑr}cCs|jj||ddS)aÈRegister a parser class.

        If *override* is True, the given *parser* is forcedly installed even if
        a parser for the same suffix is already installed.

        .. versionadded:: 1.4
        .. versionchanged:: 1.8
           *suffix* argument is deprecated.  It only accepts *parser* argument.
           Use :meth:`add_source_suffix` API to register suffix instead.
        .. versionchanged:: 1.8
           Add *override* keyword.
        )rÑN)r…Úadd_source_parser)rœrrÑrŸrŸr r ˜s
zSphinx.add_source_parser)Ú	collectorr}cCstjd|ƒ|ƒj|ƒdS)zxRegister an environment collector class.

        Refer to :ref:`collector-api`.

        .. versionadded:: 1.6
        z&[app] adding environment collector: %rN)rŒrÃÚenable)rœr!rŸrŸr Úadd_env_collector§szSphinx.add_env_collector)r¶Ú
theme_pathr}cCs tjd||ƒ|jj||ƒdS)zÁRegister a HTML Theme.

        The *name* is a name of theme, and *theme_path* is a full path to the
        theme (refs: :ref:`distribute-your-theme`).

        .. versionadded:: 1.6
        z[app] adding HTML theme: %r, %rN)rŒrÃr…Úadd_html_theme)rœr¶r$rŸrŸr r%±szSphinx.add_html_theme)r¶Úinline_renderersÚblock_renderersr}cCs|jj|||ƒdS)a¦Register a math renderer for HTML.

        The *name* is a name of math renderer.  Both *inline_renderers* and
        *block_renderers* are used as visitor functions for the HTML writer:
        the former for inline math node (``nodes.math``), the latter for
        block math node (``nodes.math_block``).  Regarding visitor functions,
        see :meth:`add_node` for details.

        .. versionadded:: 1.8

        N)r…Úadd_html_math_renderer)rœr¶r&r'rŸrŸr r(¼szSphinx.add_html_math_renderer)r«Ú
locale_dirr}cCs$tj|g|jj|ƒtj||ƒdS)züRegister a message catalog.

        :param catalog: The name of the catalog
        :param locale_dir: The base path of the message catalog

        For more details, see :func:`sphinx.locale.get_translation()`.

        .. versionadded:: 1.8
        N)rr¥r‘r¤Zinit_console)rœr«r)rŸrŸr Úadd_message_catalogÌs
zSphinx.add_message_catalog)rr}cCs¼|dkrd}tdƒ}tdƒ}n*|dkr<d}tdƒ}tdƒ}ntd	|ƒ‚xn|jjƒD]`}t||d
ƒ}|d
krŽtj||jƒtjtdƒ|ƒdS|sTtj||jƒtjtdƒ|ƒdSqTWd
S)zƒCheck whether parallel processing is allowed or not.

        :param typ: A type of processing; ``'read'`` or ``'write'``.
        r’Zparallel_read_safez—the %s extension does not declare if it is safe for parallel reading, assuming it isn't - please ask the extension author to check and make it explicitz1the %s extension is not safe for parallel readingÚwriteZparallel_write_safez—the %s extension does not declare if it is safe for parallel writing, assuming it isn't - please ask the extension author to check and make it explicitz1the %s extension is not safe for parallel writingz!parallel type %s is not supportedNzdoing serial %sFT)r%Ú
ValueErrorrÚvaluesÚgetattrrŒrvr¶)rœrÚattrnameZmessage_not_declaredZmessage_not_safeÚextÚallowedrŸrŸr Úis_parallel_allowedÚs(

zSphinx.is_parallel_allowedcCs |dkrtd|ƒ‚||j_dS)zÖSet the policy to include assets in HTML pages.

        - always: include the assets in all the pages
        - per_page: include the assets only in pages where they are used

        .. versionadded: 4.1
        ÚalwaysÚper_pagezpolicy %s is not supportedN)r3r4)r,r…Zhtml_assets_policy)rœÚpolicyrŸrŸr Úset_html_assets_policyýszSphinx.set_html_assets_policycCstjdtƒ|jjS)Nzapp.html_themes is deprecated.)ÚwarningsÚwarnrr…Úhtml_themes)rœrŸrŸr r9	szSphinx.html_themes)FN)rÇ)F)F)F)NF)F)F)F)F)F)F)F)r»Nr»F)rÇN)rÇ)FN)NF)F)F)F)NN)TráÚ
__module__Ú__qualname__Ú__doc__ÚboolrxÚintr‰ÚsysÚstdoutÚstderrÚstrrr	rr
r¡r“ršr–r™r›rÁr•rÆrrËrÍrrr
r²r˜rÐrÒrr×rØrÚNodeVisitorrÚrrÞr6rärrærèrìrrírîr5r(rïrrñrrùrúrrürýrrrrrrrrrrrr rr#r%r(r*r2r6Úpropertyr9rŸrŸrŸr rnvs†
:|5
	&&"&
,0 @ %#A=


&#rnc@s\eZdZdZddeeeddœdd„Zedœdd	„Z	ee
dd
œdd„Zee
ed
œd
d„ZdS)ÚTemplateBridgez”
    This class defines the interface for a "template bridge", that is, a class
    that renders templates given a template name and a context.
    Nr8)r‚ÚthemeÚdirsr}cCstdƒ‚dS)abCalled by the builder to initialize the template system.

        *builder* is the builder object; you'll probably want to look at the
        value of ``builder.config.templates_path``.

        *theme* is a :class:`sphinx.theming.Theme` object or None; in the latter
        case, *dirs* can be list of fixed directories to look for templates.
        z!must be implemented in subclassesN)ÚNotImplementedError)rœr‚rFrGrŸrŸr r¥s	zTemplateBridge.init)r}cCsdS)zàCalled by the builder to determine if output files are outdated
        because of template changes.  Return the mtime of the newest template
        file that was changed.  The default implementation returns ``0``.
        rrŸ)rœrŸrŸr Únewest_template_mtime!sz$TemplateBridge.newest_template_mtime)ÚtemplateÚcontextr}cCstdƒ‚dS)zCalled by the builder to render a template given as a filename with
        a specified context (a Python dictionary).
        z!must be implemented in subclassesN)rH)rœrJrKrŸrŸr Úrender(szTemplateBridge.rendercCstdƒ‚dS)z}Called by the builder to render a template given as a string with a
        specified context (a Python dictionary).
        z!must be implemented in subclassesN)rH)rœrJrKrŸrŸr Ú
render_string.szTemplateBridge.render_string)NN)
rár:r;r<r)r
rBr¥ÚfloatrIr	rLrMrŸrŸrŸr rEs
rE)5r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrm)cr<r®r°r?r7ÚcollectionsrÚiorrÚtypingrrrrr	r
rrr
rr*rZdocutils.nodesrrZdocutils.parsersrZdocutils.parsers.rstrrZdocutils.transformsrZpygments.lexerrrŽrrZ
sphinx.configrZsphinx.deprecationrZsphinx.domainsrrZsphinx.environmentrZsphinx.environment.collectorsrZ
sphinx.errorsrr r!Z
sphinx.eventsr"Zsphinx.extensionr#Zsphinx.highlightingr$Z
sphinx.localer%Zsphinx.projectr&Zsphinx.registryr'Zsphinx.rolesr(Zsphinx.themingr)Zsphinx.utilr+r,Zsphinx.util.build_phaser-Zsphinx.util.consoler.Zsphinx.util.i18nr/Zsphinx.util.loggingr0Zsphinx.util.osutilr1r2r3Zsphinx.util.tagsr4Zsphinx.util.typingr5r6r7Zsphinx.buildersr8r”r­Ú	getLoggerrárŒrnrErŸrŸrŸr Ú<module>sÖ0
#