forked from pytorch/captum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
siteConfig.js
104 lines (82 loc) · 2.81 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
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the BSD 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 = "/";
// List of projects/orgs using your project for the users page.
const users = [];
const siteConfig = {
title: "Captum",
tagline: "Model Interpretability for PyTorch",
url: "https://captum.ai",
baseUrl: baseUrl,
cleanUrl: true, // No .html extensions for paths
// used for publishing and more
organizationName: "pytorch",
projectName: "captum",
// Google analytics
gaTrackingId: "UA-44373548-48",
// 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: "https://github.com/pytorch/captum", label: "GitHub" },
{ search: true } // position search box to the very right
],
// add users to the website
users,
// search integration w/ algolia
algolia: {
apiKey: "207c27d819f967749142d8611de7cb19",
indexName: "captum"
},
// images for header/footer and favicon
headerIcon: "img/captum_logo.svg",
// footerIcon: 'img/captum-icon.png',
favicon: "img/captum.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/captum/edit/master/docs/",
// Disable logo text so we can just show the logo
disableHeaderTitle: true,
// Open Graph and Twitter card images
ogImage: "img/captum-icon.png",
twitterImage: "img/captum.png",
// show html docs generated by sphinx
wrapPagesHTML: true
};
module.exports = siteConfig;