forked from pytorch/botorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
siteConfig.js
107 lines (85 loc) · 2.96 KB
/
siteConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
// Define this so it can be easily modified in scripts (to host elsewhere)
const baseUrl = '/';
// If true, include Algolia search bar when building site
// Note: this setting is toggled to false by publish_site.sh script, so
// it should not be renamed without modifying that script.
const includeAlgolia = true;
// List of projects/orgs using your project for the users page.
const users = [];
const siteConfig = {
title: 'BoTorch',
tagline: 'Bayesian Optimization in PyTorch',
url: 'https://botorch.org',
baseUrl: baseUrl,
cleanUrl: true, // No .html extensions for paths
// used for publishing and more
organizationName: 'pytorch',
projectName: 'botorch',
// Google analytics
gaTrackingId: 'UA-139570076-2',
// links that will be used in the header navigation bar
headerLinks: [
{doc: 'introduction', label: 'Docs'},
{href: `${baseUrl}tutorials/`, label: 'Tutorials'},
{href: `${baseUrl}api/`, label: 'API Reference'},
{href: `${baseUrl}docs/papers`, label: 'Papers'},
{href: 'https://github.com/pytorch/botorch', label: 'GitHub'},
],
// add users to the website
users,
// images for header/footer and favicon
headerIcon: 'img/botorch_logo_lockup_white.png',
footerIcon: 'img/botorch.png',
favicon: 'img/botorch.ico',
// colors for website
colors: {
primaryColor: '#f29837', // orange
secondaryColor: '#f0bc40', // yellow
},
highlight: {
theme: 'default',
},
// custom scripts that are placed in <head></head> of each page
scripts: [
// Github buttons
'https://buttons.github.io/buttons.js',
// Copy-to-clipboard button for code blocks
`${baseUrl}js/code_block_buttons.js`,
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
// Mathjax for rendering math content
`${baseUrl}js/mathjax.js`,
'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML',
],
// CSS sources to load
stylesheets: [`${baseUrl}css/code_block_buttons.css`],
// enable on-page navigation for the current documentation page
onPageNav: 'separate',
// enable scroll to top button a the bottom of the site
scrollToTop: true,
// if true, expand/collapse links & subcategories in sidebar
docsSideNavCollapsible: false,
// URL for editing docs
editUrl: 'https://github.com/pytorch/botorch/edit/main/docs/',
// Open Graph and Twitter card images
ogImage: 'img/botorch.png',
twitterImage: 'img/botorch.png',
// show html docs generated by sphinx
wrapPagesHTML: true,
};
if (includeAlgolia == true) {
siteConfig['algolia'] = {
apiKey: '207c27d819f967749142d8611de7cb19',
indexName: 'botorch',
};
}
module.exports = siteConfig;