diff --git a/libcxx/docs/ReleaseNotes.rst b/libcxx/docs/ReleaseNotes.rst --- a/libcxx/docs/ReleaseNotes.rst +++ b/libcxx/docs/ReleaseNotes.rst @@ -1,6 +1,6 @@ -========================================= -Libc++ 14.0.0 (In-Progress) Release Notes -========================================= +================================================ +Libc++ |version| |InProgressTitle| Release Notes +================================================ .. contents:: :local: @@ -10,7 +10,7 @@ .. warning:: - These are in-progress notes for the upcoming libc++ 14 release. + These are |InProgress| notes for the upcoming libc++ |version_major| release. Release notes for previous releases can be found on `the Download Page `_. @@ -18,7 +18,7 @@ ============ This document contains the release notes for the libc++ C++ Standard Library, -part of the LLVM Compiler Infrastructure, release 14.0.0. Here we describe the +part of the LLVM Compiler Infrastructure, release |version|. Here we describe the status of libc++ in some detail, including major improvements from the previous release and new feature work. For the general LLVM release notes, see `the LLVM documentation `_. All LLVM releases may @@ -32,8 +32,8 @@ the current one. To see the release notes for a specific release, please see the `releases page `_. -What's New in Libc++ 14.0.0? -============================ +What's New in Libc++ |version|? +=============================== New Features ------------ diff --git a/libcxx/docs/conf.py b/libcxx/docs/conf.py --- a/libcxx/docs/conf.py +++ b/libcxx/docs/conf.py @@ -48,9 +48,10 @@ # built documents. # # The short X.Y version. -version = '14.0' +version_major = '14' +version = version_major + '.0.0' # The full version, including alpha/beta/rc tags. -release = '14.0' +release = version + 'git' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -86,6 +87,15 @@ # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] +in_progress_title = "(In-Progress) " if version != release else "" +in_progress = 'in-progress' if version != release else "" + +rst_epilog = f""" +.. |version| replace:: {version} +.. |version_major| replace:: {version_major} +.. |InProgressTitle| replace:: {in_progress_title} +.. |InProgress| replace:: {in_progress} +""" # -- Options for HTML output ---------------------------------------------------