clearml-docs/docusaurus.config.js

269 lines
7.8 KiB
JavaScript
Raw Normal View History

2021-05-13 23:48:51 +00:00
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
const path = require('path');
module.exports = {
title: 'ClearML',
2023-11-14 16:51:45 +00:00
tagline: 'Auto-Magical Suite of tools to streamline your AI workflow',
2021-05-13 23:48:51 +00:00
url: 'https://clear.ml',
2021-05-20 20:26:53 +00:00
baseUrl: '/',
2021-05-13 23:48:51 +00:00
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'allegro.ai', // Usually your GitHub org/user name.
projectName: 'ClearML', // Usually your repo name.
themeConfig: {
prism: {
theme: require('prism-react-renderer/themes/dracula'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
2023-11-12 14:13:17 +00:00
//algolia algolia: {
//algolia appId: 'ALGOLIA_APP_ID', // The application ID provided by Algolia
//algolia apiKey: 'ALGOLIA_APP_KEY', // Public API key
//algolia indexName: 'ALGOLIA_INDEX_NAME', // index name
2023-11-01 14:51:36 +00:00
// Optional: see doc section below
2023-11-12 14:13:17 +00:00
//algolia contextualSearch: true,},
2021-05-13 23:48:51 +00:00
zoomSelector: '.markdown :not(em) > img',
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
2022-10-24 21:10:16 +00:00
// switchConfig: {
// darkIcon: '\u{1F319}',
// lightIcon: '\u{1F315}',
// darkIconStyle: {
// marginLeft: '2px',
// },
// lightIconStyle: {
// marginLeft: '1px',
// },
// },
2021-05-13 23:48:51 +00:00
},
announcementBar: {
id: 'supportus',
content: 'If you ❤️ <b>ClearML</b>, ⭐️ us on <a target="_blank" rel="noopener noreferrer" href="https://github.com/allegroai/clearml">GitHub</a>!',
isCloseable: true,
},
navbar: {
style: 'dark',
hideOnScroll: true,
title: ' ',
logo: {
alt: 'ClearML',
src: 'img/logo.svg',
},
items: [
{
to: '/docs',
label: 'Docs',
position: 'left',
},
2021-06-20 22:00:16 +00:00
{
to:'/docs/hyperdatasets/overview',
2022-10-18 12:10:12 +00:00
label: 'Hyper-Datasets',
2021-06-20 22:00:16 +00:00
position: 'left',
},
2021-05-13 23:48:51 +00:00
// {to: 'tutorials', label: 'Tutorials', position: 'left'},
// Please keep GitHub link to the right for consistency.
{to: '/docs/guides', label: 'Examples', position: 'left'},
//{to: '/docs/references', label: 'API', position: 'left'},
{
label: 'References',
position: 'left', // or 'right'
items: [
{
label: 'SDK',
to: '/docs/references/sdk/task',
},
2021-09-17 21:55:20 +00:00
{
label: 'ClearML Agent',
to: '/docs/clearml_agent/clearml_agent_ref',
2021-09-17 21:55:20 +00:00
},
2021-05-13 23:48:51 +00:00
{
label: 'Server API',
2022-10-27 14:52:46 +00:00
to: '/docs/references/api',
2021-05-13 23:48:51 +00:00
},
{
label: 'Hyper-Datasets',
to: '/docs/references/hyperdataset',
},
2021-05-13 23:48:51 +00:00
{
label: 'Release Notes',
to: '/docs/release_notes/ver_1_14',
2021-05-13 23:48:51 +00:00
},
{
label: 'Community Resources',
to: '/docs/community',
2022-09-18 12:18:55 +00:00
}
2021-05-13 23:48:51 +00:00
],
},
2022-09-18 12:18:55 +00:00
{
label: 'FAQ',
position: 'left', // or 'right'
to: '/docs/faq'
},
2021-05-13 23:48:51 +00:00
{
2023-06-04 08:24:23 +00:00
href: 'https://joinslack.clear.ml',
2021-05-13 23:48:51 +00:00
position: 'right',
className: 'header-ico header-ico--slack',
'aria-label': 'Slack Channel',
},
{
href: 'https://youtube.com/clearml',
position: 'right',
className: 'header-ico header-ico--youtube',
'aria-label': 'YouTube',
},
{
href: 'https://twitter.com/clearmlapp',
position: 'right',
className: 'header-ico header-ico--twitter',
'aria-label': 'Twitter',
},
{
href: 'https://github.com/allegroai/clearml',
position: 'right',
className: 'header-ico header-ico--github',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'light',
links: [
{
title: 'Community',
items: [
{
label: 'Slack',
2023-06-04 08:24:23 +00:00
href: 'https://joinslack.clear.ml',
2021-05-13 23:48:51 +00:00
},
{
2023-02-21 08:32:54 +00:00
label: 'YouTube',
2021-05-13 23:48:51 +00:00
href: 'https://www.youtube.com/c/ClearML',
},
{
label: 'Twitter',
href: 'https://twitter.com/clearmlapp',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/clearml',
},
// {
// html: `
// <a href="https://twitter.com/clearmlapp" target="_blank" rel="noreferrer noopener" aria-label="Twitter">
// <img src="img/twitter_logo_blue.svg" alt="Twitter" />
// </a>
// `,
// },
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'https://clear.ml/blog/',
},
{
label: 'GitHub',
href: 'https://github.com/allegroai/clearml',
},
],
},
],
// Please do not remove the credits, help to publicize Docusaurus :)
copyright: `Copyright © ${new Date().getFullYear()} allegro.ai. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
2022-10-25 10:21:44 +00:00
breadcrumbs: false,
2021-05-13 23:48:51 +00:00
editUrl:
2021-05-18 22:31:01 +00:00
'https://github.com/allegroai/clearml-docs/edit/main/',
2021-05-13 23:48:51 +00:00
},
2022-10-24 21:10:16 +00:00
// API: {
// sidebarPath: require.resolve('./sidebars.js'),
// // Please change this to your repo.
// editUrl:
// 'https://github.com/allegroai/clearml-docs/edit/main/',
// },
2021-05-13 23:48:51 +00:00
blog: {
blogTitle: 'ClearML Tutorials',
blogDescription: 'ClearML tutorials and documentation',
path: 'tutorials',
routeBasePath: 'tutorials',
showReadingTime: true,
// Please change this to your repo.
editUrl:
2021-05-18 22:31:01 +00:00
'https://github.com/allegroai/clearml-docs/edit/main/tutorials/',
2021-05-13 23:48:51 +00:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
2022-04-05 09:26:38 +00:00
gtag: {
trackingID: 'none',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
2021-05-13 23:48:51 +00:00
},
],
],
2023-11-12 14:13:17 +00:00
themes: [
// Delete for Algolia start
[
require.resolve("@easyops-cn/docusaurus-search-local"), {
hashed: true,
// whether to index docs pages
indexDocs: true,
// must start with "/" and correspond to the routeBasePath configured for the docs plugin
// use "/" if you use docs-only-mode
// (see https://v2.docusaurus.io/docs/2.0.0-alpha.70/docs-introduction#docs-only-mode)
docsRouteBasePath: '/docs',
searchResultLimits: 8,
searchResultContextMaxLength: 50,
// whether to index blog pages
indexBlog: false,
// blogRouteBasePath: '/blog',
// files to ignore in search
// whether to index static pages
// /404.html is never indexed
indexPages: false,
ignoreFiles: [/docs\/release_notes\/.*/],
// language of your documentation, see next section
language: "en",}
]
// Delete for Algolia end
],
2023-05-10 11:51:28 +00:00
plugins: [
// ... Your other plugins.
[
require.resolve('docusaurus-gtm-plugin'),
{
id: 'none', // GTM Container ID
}
],
2021-05-13 23:48:51 +00:00
path.resolve(__dirname, 'src/zoom-plugin')
],
};