mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10162 from AA-Turner/use-settings-default-overrides
Use `settings_default_overrides` in `sphinx.writers.html`
This commit is contained in:
commit
6515af256e
@ -8,7 +8,6 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
import copy
|
||||
import os
|
||||
import posixpath
|
||||
import re
|
||||
@ -54,11 +53,8 @@ def multiply_length(length: str, scale: int) -> str:
|
||||
|
||||
class HTMLWriter(Writer):
|
||||
|
||||
# override embed-stylesheet default value to 0.
|
||||
settings_spec = copy.deepcopy(Writer.settings_spec)
|
||||
for _setting in settings_spec[2]:
|
||||
if '--embed-stylesheet' in _setting[1]:
|
||||
_setting[2]['default'] = 0
|
||||
# override embed-stylesheet default value to False.
|
||||
settings_default_overrides = {"embed_stylesheet": False}
|
||||
|
||||
def __init__(self, builder: "StandaloneHTMLBuilder") -> None:
|
||||
super().__init__()
|
||||
|
Loading…
Reference in New Issue
Block a user