File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def get_context_data(self, **kwargs):
4242 current_version_kwargs .update (
4343 {
4444 "content_path" : re .sub (
45- r"([_0-9]+)/(\S+)" ,
45+ r"([_0-9]+|master|develop )/(\S+)" ,
4646 rf"{ LATEST_RELEASE_URL_PATH_STR } /\2" ,
4747 current_version_kwargs .get ("content_path" ),
4848 )
Original file line number Diff line number Diff line change @@ -326,5 +326,8 @@ def docs_path_to_boost_name(content_path):
326326 Convert a documentation content path to the Boost version name.
327327 e.g. "1_79_0/doc/html/accumulators.html" to "boost-1.79.0"
328328 """
329- result = re .sub (r"^([_0-9]+)(/\S+)" , r"boost-\1" , content_path )
329+ if content_path .startswith ("develop" ) or content_path .startswith ("master" ):
330+ result = content_path .split ("/" )[0 ]
331+ else :
332+ result = re .sub (r"^([_0-9]+)(/\S+)" , r"boost-\1" , content_path )
330333 return result .replace ("_" , "." )
You can’t perform that action at this time.
0 commit comments