File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ function Demo() {
8181 versionWarning = { false }
8282 library = { library }
8383 onLearnPages = { false }
84- librariesUrlPrefix = { 'https://www.boost.io /doc/libs/latest' }
85- learnUrlPrefix = { 'https://www.boost.io /doc/' }
86- librariesAlgoliaIndex = { '1_89_0 ' }
84+ librariesUrlPrefix = { 'https://www.boost.org /doc/libs/latest' }
85+ learnUrlPrefix = { 'https://www.boost.org /doc/' }
86+ librariesAlgoliaIndex = { '1_90_0 ' }
8787 learnAlgoliaIndex = { 'learn' }
8888 alogliaAppId = { 'D7O1MLLTAF' }
8989 alogliaApiKey = { '44d0c0aac3c738bebb622150d1ec4ebf' }
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ function parseURL() {
7777 path = path . replace ( 'doc/html/boost_' , '' ) ;
7878 path = path . replace ( 'doc/html/boost/' , '' ) ;
7979 path = path . replace ( 'doc/html/' , '' ) ;
80+
81+ const is_in_lib_dir = path . startsWith ( 'libs/' ) ;
8082 path = path . replace ( 'libs/' , '' ) ;
8183
8284 // First we try to match libraries like functional/factory and numeric/odeint
@@ -95,6 +97,13 @@ function parseURL() {
9597 if ( match && match [ 1 ] ) library = libraries . filter ( ( i ) => i . key === match [ 1 ] . toLowerCase ( ) ) [ 0 ] ;
9698 }
9799
100+ if ( ! library && is_in_lib_dir )
101+ {
102+ const match = path . match ( / ^ [ ^ / ] + / ) ;
103+ console . log ( match ) ;
104+ if ( match && match [ 0 ] ) library = { key : match [ 0 ] , name : match [ 0 ] } ;
105+ }
106+
98107 boostVersion = boostVersion . replace ( 'boost_' , '' ) ;
99108
100109 return { onLearnPages, boostVersion, library } ;
Original file line number Diff line number Diff line change @@ -371,6 +371,10 @@ export const libraries = [
371371 key : 'optional' ,
372372 name : 'Optional' ,
373373 } ,
374+ {
375+ key : 'openmethod' ,
376+ name : 'OpenMethod' ,
377+ } ,
374378 {
375379 key : 'outcome' ,
376380 name : 'Outcome' ,
You can’t perform that action at this time.
0 commit comments