Skip to content

Commit 3d530f0

Browse files
committed
C++29に対応
cpprefjp/site#1675
1 parent 78ce955 commit 3d530f0

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

crsearch.json/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ def generate(self, base_dir, file_paths, all_file_paths):
467467
cpp_version = '23'
468468
elif any(map(lambda cpp: cpp == 'cpp26', metas['cpp'])):
469469
cpp_version = '26'
470+
elif any(map(lambda cpp: cpp == 'cpp29', metas['cpp'])):
471+
cpp_version = '29'
470472

471473
# (names[0], cpp_version) が同じものをまとめる
472474
name = names[0]

markdown_to_html/meta.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ def __init__(self, md):
113113
'title': 'C++26で追加',
114114
'text': '(C++26)',
115115
},
116+
'cpp29': {
117+
'class_name': 'cpp29',
118+
'title': 'C++29で追加',
119+
'text': '(C++29)',
120+
},
116121
'cpp11deprecated': {
117122
'class_name': 'cpp11deprecated text-warning',
118123
'title': 'C++11で非推奨',
@@ -173,6 +178,16 @@ def __init__(self, md):
173178
'title': 'C++26で削除',
174179
'text': '(C++26で削除)',
175180
},
181+
'cpp29deprecated': {
182+
'class_name': 'cpp29deprecated text-warning',
183+
'title': 'C++29で非推奨',
184+
'text': '(C++29で非推奨)',
185+
},
186+
'cpp29removed': {
187+
'class_name': 'cpp29removed text-danger',
188+
'title': 'C++29で削除',
189+
'text': '(C++29で削除)',
190+
},
176191
}
177192

178193
def run(self, text):

0 commit comments

Comments
 (0)