/** * Copyright (c) 2017-present, Facebook, Inc. * * 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. // List of projects/orgs using your project for the users page. const users = [ { caption: 'User1', // You will need to prepend the image path with your baseUrl // if it is not '/', like: '/test-site/img/image.jpg'. image: '/img/undraw_open_source.svg', infoLink: 'https://www.faceboo.com', pinned: true, }, ]; const siteConfig = { title: 'ent', // Title for your website. tagline: 'An entity framework for Go', url: 'https://entgo.io', // Your website URL baseUrl: '/', // Base URL for your project */ // Used for publishing and more projectName: 'ent', organizationName: 'facebook', customDocsPath: 'md', // For no header links in the top nav bar -> headerLinks: [], headerLinks: [ {doc: 'getting-started', label: 'Docs'}, {href: 'https://pkg.go.dev/entgo.io/ent?tab=doc', label: 'GoDoc'}, {href: 'https://github.com/facebook/ent', label: 'Github'}, { blog: true, label: 'Blog' }, ], // If you have users set above, you add it here: users, /* path to images for header/footer */ headerIcon: 'img/logo.png', favicon: 'img/favicon.ico', /* Colors for website */ colors: { primaryColor: '#85daff', secondaryColor: '#4d8eaa', }, /* Custom fonts for website */ /* fonts: { myFont: [ "Times New Roman", "Serif" ], myOtherFont: [ "-apple-system", "system-ui" ] }, */ // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. copyright: `Copyright ${new Date().getFullYear()} Facebook Inc.`, highlight: { // Highlight.js theme to use for syntax highlighting in code blocks. theme: 'androidstudio', hljs: function(hljs) { hljs.registerLanguage('gotemplate', function(hljs) { var GO_KEYWORDS = { keyword: 'break default func interface select case map struct chan else goto package switch ' + 'const fallthrough if range type continue for import return var go defer ' + 'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' + 'uint16 uint32 uint64 int uint uintptr rune with define block end', literal: 'true false iota nil', built_in: 'append cap close complex copy imag len make new panic print println real recover delete' + 'printf fail slice dict list' }; return { name: 'GoTemplate', aliases: ['gotmpl'], keywords: GO_KEYWORDS, contains: [ hljs.COMMENT('{{-* */\\*', '\\*/ *-*}}'), hljs.C_LINE_COMMENT_MODE, { className: 'string', variants: [ hljs.QUOTE_STRING_MODE, hljs.APOS_STRING_MODE, {begin: '`', end: '`'}, ] }, { begin: /:=/ }, ] }; }); } }, // Add custom scripts here that would be placed in