You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tech-interview-handbook/website/docusaurus.config.js

195 lines
5.6 KiB

module.exports = {
title: 'Tech Interview Handbook',
tagline: 'Free curated interview preparation materials for busy people',
url: 'https://www.techinterviewhandbook.org',
baseUrl: '/',
trailingSlash: true,
favicon: 'img/favicon.png',
organizationName: 'yangshun',
projectName: 'tech-interview-handbook',
themeConfig: {
announcementBar: {
id: 'design-gurus-1', // Increment on change
content: `Stop memorizing solutions. Start learning coding interview patterns with <a href="https://www.designgurus.org/?utm_source=tih_header&utm_medium=ref&utm_campaign=tp&utm_id=tih" target="_blank" rel="noopener">Grokking the Coding Interview</a> by Design Gurus`,
backgroundColor: '#6fc8cc',
textColor: '#000',
isCloseable: false,
},
hideableSidebar: true,
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
navbar: {
title: 'Tech Interview Handbook',
logo: {
alt: 'Tech Interview Handbook Logo',
src: 'img/logo.svg',
},
hideOnScroll: true,
items: [
{
label: 'Start reading',
href: '/software-engineering-interview-guide/',
position: 'left',
},
{
label: 'Coding',
href: '/coding-interview-prep/',
},
{
label: 'Algorithms',
href: '/algorithms/study-cheatsheet',
},
{label: 'Blog', to: 'blog', position: 'left'},
{
label: 'Grind 75',
href: 'https://www.techinterviewhandbook.org/grind75',
position: 'left',
},
// {label: 'Advertise', to: '/advertise', position: 'left'},
{
href: 'https://github.com/yangshun/tech-interview-handbook',
position: 'right',
className: 'navbar-icon navbar-icon-github',
'aria-label': 'GitHub repository',
},
{
href: 'https://t.me/techinterviewhandbook',
position: 'right',
className: 'navbar-icon navbar-icon-telegram',
'aria-label': 'Telegram channel',
},
{
href: 'https://twitter.com/techinterviewhb',
position: 'right',
className: 'navbar-icon navbar-icon-twitter',
'aria-label': 'Twitter page',
},
{
href: 'https://www.instagram.com/techinterviewhandbook',
position: 'right',
className: 'navbar-icon navbar-icon-instagram',
'aria-label': 'Instagram page',
},
{
href: 'https://www.facebook.com/techinterviewhandbook',
position: 'right',
className: 'navbar-icon navbar-icon-facebook',
'aria-label': 'Facebook page',
},
],
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} Tech Interview Handbook. Built with Docusaurus.`,
links: [
{
title: 'General',
items: [
{
label: 'Start reading',
href: '/software-engineering-interview-guide/',
},
{
label: 'Resume preparation',
href: '/resume/',
},
{
label: 'Algorithms',
href: '/algorithms/study-cheatsheet',
},
{
label: 'Blog',
href: '/blog',
},
],
},
{
title: 'Interviews',
items: [
{
label: 'Coding interviews',
href: '/coding-interview-prep/',
},
{
label: 'Study plan',
href: '/coding-interview-study-plan/',
},
{
label: 'System design interviews',
href: '/system-design/',
},
{
label: 'Behavioral interviews',
href: '/behavioral-interview/',
},
],
},
{
title: 'About',
items: [
{
label: 'GitHub',
href: 'https://github.com/yangshun/tech-interview-handbook',
},
{
label: 'Telegram',
href: 'https://t.me/techinterviewhandbook',
},
{
label: 'Facebook',
href: 'https://www.facebook.com/techinterviewhandbook',
},
{
label: 'Twitter',
href: 'https://twitter.com/techinterviewhb',
},
],
},
{
title: 'More',
items: [
{
label: 'Grind 75',
href: 'https://www.techinterviewhandbook.org/grind75',
},
{label: 'Advertise', href: '/advertise'},
{
label: 'Contact us',
href: 'mailto:contact@techinterviewhandbook.org',
},
],
},
],
},
algolia: {
appId: 'Y09P1J4IPV',
apiKey: 'e12588cbae68d752469921cc46e9cb66',
indexName: 'techinterviewhandbook',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: '../contents',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'UA-44622716-2',
},
blog: {
blogSidebarCount: 15,
},
},
],
],
};