-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
160 lines (152 loc) · 5.05 KB
/
docusaurus.config.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const copyright = `
<div style="font-size: 0.75rem;">
Copyright © ${new Date().getFullYear()} Adobe. All rights reserved.
| <a style="text-decoration: underline;" href="https://www.adobe.com/privacy.html" target="_blank" rel="noopener noreferrer">Privacy</a>
| <a style="text-decoration: underline;" href="https://www.adobe.com/legal/terms.html" target="_blank" rel="noopener noreferrer">Terms of use</a>
| <a style="text-decoration: underline;" href="https://www.adobe.com/privacy/us-rights.html" target="_blank" rel="noopener noreferrer">Do not sell or share my personal information</a>
</div>
`;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Open-source tools for content authenticity and provenance',
tagline: 'Open-source tools for content authenticity and provenance',
url: 'https://contentauth.netlify.com',
baseUrl: '/',
staticDirectories: ['static'],
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: '/favicon.png',
organizationName: 'contentauth',
projectName: 'opensource.contentauth.org',
clientModules: [require.resolve('./src/assets/scripts/ui.js')],
scripts: [
// TODO: Re-enable analytics once we solve flicker problem
// '/scripts/analytics.js',
// 'https://www.adobe.com/marketingtech/main.min.js',
{
src: 'https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js',
'data-domain-script': '20e82cdb-918a-4036-93c6-c356dc13a801',
},
'/scripts/cookie-pro.js',
],
stylesheets: [
// Acumin Pro
'https://use.typekit.net/wgs7uns.css',
// Adobe Clean
'https://use.typekit.net/dnb4eqs.css',
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
// See here for configuration options:
// https://docusaurus.io/docs/api/themes/configuration
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
// { property: 'twitter:card', content: 'summary_large_image' },
{ property: 'og:card', content: 'summary_large_image' },
/*
{
property: 'twitter:image',
content:
'https://opensource.contentauthenticity.org/img/open-source@2x.png?v=1',
},
{
property: 'twitter:description',
content:
'Integrate secure provenance signals into your site, app, or service using open-source tools developed by the Content Authenticity Initiative.',
},
*/
{
property: 'og:description',
content:
'Integrate secure provenance signals into your site, app, or service using open-source tools developed by the Content Authenticity Initiative.',
},
/*
{
property: 'twitter:title',
content: 'Open-source tools for content authenticity and provenance',
},
*/
{
property: 'og:title',
content: 'Open-source tools for content authenticity and provenance',
},
],
// Relative to your site's 'static' directory.
// Cannot be SVGs. Can be external URLs too.
colorMode: {
disableSwitch: true,
},
navbar: {
logo: {
alt: 'Content Authenticity Initiative',
src: 'img/logo-cai.svg',
width: 180,
height: 54,
href: 'https://contentauthenticity.org',
},
items: [
{
href: 'https://discord.gg/CAI',
position: 'right',
className: 'header-logo header-discord-link',
},
{
href: 'https://github.com/contentauth',
position: 'right',
className: 'header-logo header-github-link',
},
/*
{
href: 'https://twitter.com/ContentAuth',
position: 'right',
className: 'header-logo header-twitter-link',
},
*/
],
},
footer: {
style: 'light',
/*
logo: {
src: '#', // stop warning.
alt: 'Content Authenticity Initiative',
href: 'https://contentauthenticity.org',
},
*/
copyright,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
// The application ID provided by Algolia
appId: 'XOI00ZGSIB',
// Public API key: it is safe to commit it
apiKey: '8c42f1b6cc4394334d572acc5d216069',
indexName: 'contentauthenticity',
// Optional: see doc section below
contextualSearch: true,
},
}),
themes: ['docusaurus-json-schema-plugin'],
};
module.exports = config;