fork/wezterm
git clone https://git.julia.blue/fork/wezterm
3129e20fd
termwiz-0.23.0
1#!/usr/bin/env python3 2import glob 3import os 4import re 5import sys 6 7NIGHTLY = '20240203-110809-5046fc22' 8 9SINCE = re .compile ("\{\{since\('nightly'" ,re .MULTILINE ) 10 11for p in ["docs/**/*.md" ,"docs/**/*.markdown" ]: 12for filename in glob .glob (p ,recursive = True ): 13with open (filename ,"r" )as f : 14content = f .read () 15 16adjusted = SINCE .sub (f"{{{{since(' { NIGHTLY } '" ,content ) 17if content != adjusted : 18filename ) 19with open (filename ,"w" )as f : 20f .truncate () 21f .write (adjusted ) 22 23SCHEME_DATA = 'docs/colorschemes/data.json' 24with open (SCHEME_DATA ,'r' )as f : 25content = f .read () 26with open (SCHEME_DATA ,'w' )as f : 27content = content .replace ("nightly builds only" ,NIGHTLY ) 28f .truncate () 29f .write (content )