Add other styles to fixup_header.py

This commit is contained in:
Richard Berger
2020-09-02 11:55:53 -04:00
parent 0c88074525
commit 84e922eff6

View File

@ -5,8 +5,8 @@ import shutil
import re import re
import argparse import argparse
index_pattern = re.compile(r"^.. index:: (fix|pair_style)\s+([a-zA-Z0-9/_]+)$") index_pattern = re.compile(r"^.. index:: (compute|fix|pair_style|angle_style|bond_style|dihedral_style|improper_style)\s+([a-zA-Z0-9/_]+)$")
pattern = re.compile(r"^(fix|pair_style)\s+([a-zA-Z0-9/_]+)\s+command$") pattern = re.compile(r"^(compute|fix|pair_style|angle_style|bond_style|dihedral_style|improper_style)\s+([a-zA-Z0-9/_]+)\s+command$")
parser = argparse.ArgumentParser(description='Fixup headers in docs') parser = argparse.ArgumentParser(description='Fixup headers in docs')
parser.add_argument('files', metavar='FILE', nargs='+', help='files to fix') parser.add_argument('files', metavar='FILE', nargs='+', help='files to fix')