diff options
author | Victor Zverovich <viz@meta.com> | 2023-12-30 11:23:08 -0800 |
---|---|---|
committer | Victor Zverovich <viz@meta.com> | 2023-12-30 11:23:08 -0800 |
commit | 5f9058dbd4aa814372e54703d64ebc43fe44bba4 (patch) | |
tree | 2ba95594b78649c4c9e07394c9404002b92307d8 | |
parent | 28576b0600c0ce9183decfcd88e61c4ab6ca33db (diff) | |
download | fmtlib-5f9058dbd4aa814372e54703d64ebc43fe44bba4.tar.gz |
Improve scripts
-rwxr-xr-x | doc/build.py | 2 | ||||
-rwxr-xr-x | support/manage.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/build.py b/doc/build.py index bd10aa84..c25f588a 100755 --- a/doc/build.py +++ b/doc/build.py @@ -31,7 +31,7 @@ def create_build_env(venv_dir='virtualenv'): # Jinja2 >= 3.1 incompatible with sphinx 3.3.0 # See: https://github.com/sphinx-doc/sphinx/issues/10291 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') def build_docs(version='dev', **kwargs): diff --git a/support/manage.py b/support/manage.py index 0e116010..7f0c25a7 100755 --- a/support/manage.py +++ b/support/manage.py @@ -243,11 +243,12 @@ def release(args): elif line.startswith('#'): first_section = False elif first_section: - changes += line + changes_line = line if re.match(r'^\s*```', line): code_block = not code_block elif not code_block and line != '\n': - changes = changes.rstrip() + ' ' + changes_line = line.rstrip() + ' ' + changes += changes_line sys.stdout.write(line) cmakelists = 'CMakeLists.txt' |