Skip to content

Commit ffb75f0

Browse files
committed
add Boost.OpenMethod to the library list
1 parent 14b1be5 commit ffb75f0

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

search_interface/src/Demo.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'}

search_interface/src/index.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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 };

search_interface/src/libraries.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)