mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Improve scripts
This commit is contained in:
@ -31,7 +31,7 @@ def create_build_env(venv_dir='virtualenv'):
|
|||||||
# Jinja2 >= 3.1 incompatible with sphinx 3.3.0
|
# Jinja2 >= 3.1 incompatible with sphinx 3.3.0
|
||||||
# See: https://github.com/sphinx-doc/sphinx/issues/10291
|
# See: https://github.com/sphinx-doc/sphinx/issues/10291
|
||||||
pip.install('Jinja2<3.1')
|
pip.install('Jinja2<3.1')
|
||||||
pip.install('sphinx-doc/sphinx', 'v3.3.0')
|
pip.install('sphinx==3.3.0')
|
||||||
pip.install('michaeljones/breathe', 'v4.25.0')
|
pip.install('michaeljones/breathe', 'v4.25.0')
|
||||||
|
|
||||||
def build_docs(version='dev', **kwargs):
|
def build_docs(version='dev', **kwargs):
|
||||||
|
@ -243,11 +243,12 @@ def release(args):
|
|||||||
elif line.startswith('#'):
|
elif line.startswith('#'):
|
||||||
first_section = False
|
first_section = False
|
||||||
elif first_section:
|
elif first_section:
|
||||||
changes += line
|
changes_line = line
|
||||||
if re.match(r'^\s*```', line):
|
if re.match(r'^\s*```', line):
|
||||||
code_block = not code_block
|
code_block = not code_block
|
||||||
elif not code_block and line != '\n':
|
elif not code_block and line != '\n':
|
||||||
changes = changes.rstrip() + ' '
|
changes_line = line.rstrip() + ' '
|
||||||
|
changes += changes_line
|
||||||
sys.stdout.write(line)
|
sys.stdout.write(line)
|
||||||
|
|
||||||
cmakelists = 'CMakeLists.txt'
|
cmakelists = 'CMakeLists.txt'
|
||||||
|
Reference in New Issue
Block a user