<reponame>facebookresearch/diffkt<filename>website/docusaurus.config.js<gh_stars>0/**
 * 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
 */
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

// Imports
const math = require('remark-math');
const katex = require('rehype-katex');

/** @type {import('@docusaurus/types').Config} */
const config = {
  title: 'DiffKt',
  tagline: 'A Kotlin Library for Automatic Differentiation',
  url: 'https://diffkt.org',
  baseUrl: '/',
  onBrokenLinks: 'throw',
  onBrokenMarkdownLinks: 'warn',
  favicon: 'img/diffkitty-black-banner.png',

  // GitHub pages deployment config.
  // If you aren't using GitHub pages, you don't need these.
  organizationName: 'meta', // Usually your GitHub org/user name.
  projectName: 'facebookresearch/diffkt', // Usually your repo name.
  staticDirectories:['static'],

  presets: [
    [
      'classic',
      /** @type {import('@docusaurus/preset-classic').Options} */
      ({
        docs: {
          remarkPlugins: [math],
          rehypePlugins: [katex],
          sidebarPath: require.resolve('./sidebars.js'),
        },
        theme: {
          customCss: require.resolve('./src/css/custom.css'),
        },
      }),
    ],
  ],

  themeConfig:
    /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
    ({
      navbar: {
        title: 'DiffKt',
        logo: {
          alt: 'DiffKt Logo',
          src: 'img/diffkitty-black-banner.png',
        },
        items: [
         {
            type: 'doc',
            docId: 'overview/why_diffkt/why_diffkt',
            position: 'left',
            label: 'Docs',
          },
          {
            type: 'doc',
            docId: 'tutorials/api/intro_to_diff_prog/intro_to_diff_prog',
            position: 'left',
            label: 'Tutorials',
          },
          {
            href: 'pathname:///api/index.html',
            label: 'API',
            position: 'left',
          },
          // Please keep GitHub link to the right for consistency.
          {
            href: 'https://github.com/facebookresearch/diffkt',
            label: 'GitHub',
            position: 'right',
          },
        ],
      },
      footer: {
        style: 'dark',
        links: [
          {
            title: 'Legal',
            // Please do not remove the privacy and terms, it's a legal requirement.
            items: [
              {
                label: 'Privacy',
                href: 'https://opensource.facebook.com/legal/privacy/',
              },
              {
                label: 'Terms',
                href: 'https://opensource.facebook.com/legal/terms/',
              },
            ],
          },
        ],
        logo: {
          alt: 'DiffKt Logo',
          src: 'img/diffkitty-black-banner.png',
          href: 'https://diffkt.org',
        },
        // Please do not remove the credits, help to publicize Docusaurus :)
        copyright: `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc. Built with Docusaurus.`,
      },
    }),
  stylesheets: [
    {
      href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css',
      type: 'text/css',
      integrity:
          'kgfhvu9qnh3mr6eel97y6fq2hezzol8z',
      crossorigin: 'anonymous',
    },
  ],
};

module.exports = config;
