1+ import { themes as prismThemes } from 'prism-react-renderer' ;
2+ import type { Config } from '@docusaurus/types' ;
3+ import type * as Preset from '@docusaurus/preset-classic' ;
4+
5+ // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6+
7+ const config : Config = {
8+ title : 'Console Table Printer' ,
9+ tagline : 'A tool to print colorful table on your console' ,
10+ favicon : 'img/favicon.ico' ,
11+
12+ // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
13+ future : {
14+ v4 : true , // Improve compatibility with the upcoming Docusaurus v4
15+ } ,
16+
17+ // Set the production url of your site here
18+ url : 'https://console-table.netlify.app' ,
19+ // Set the /<baseUrl>/ pathname under which your site is served
20+ // For GitHub pages deployment, it is often '/<projectName>/'
21+ baseUrl : '/' ,
22+
23+ // GitHub pages deployment config.
24+ // If you aren't using GitHub pages, you don't need these.
25+ organizationName : 'console-table-printer' , // Usually your GitHub org/user name.
26+ projectName : 'console-table-docu' , // Usually your repo name.
27+
28+ onBrokenLinks : 'throw' ,
29+ onBrokenMarkdownLinks : 'warn' ,
30+
31+ // Even if you don't use internationalization, you can use this field to set
32+ // useful metadata like html lang. For example, if your site is Chinese, you
33+ // may want to replace "en" with "zh-Hans".
34+ i18n : {
35+ defaultLocale : 'en' ,
36+ locales : [ 'en' ] ,
37+ } ,
38+
39+ presets : [
40+ [
41+ 'classic' ,
42+ {
43+ docs : {
44+ sidebarPath : './sidebars.ts' ,
45+ sidebarCollapsible : false ,
46+ showLastUpdateAuthor : true ,
47+ showLastUpdateTime : true ,
48+ remarkPlugins : [
49+ [ require ( '@docusaurus/remark-plugin-npm2yarn' ) , { sync : true } ] ,
50+ ] ,
51+ // this enabled the edit button for documentation
52+ editUrl : 'https://github.com/console-table-printer/console-table-docu/blob/master/' ,
53+ } ,
54+ theme : {
55+ customCss : './src/css/custom.css' ,
56+ } ,
57+ } satisfies Preset . Options ,
58+ ] ,
59+ ] ,
60+
61+ themeConfig : {
62+ // Replace with your project's social card
63+ image : 'img/logo.svg' ,
64+ announcementBar : {
65+ id : 'support' ,
66+ content :
67+ '⭐️ If you like Console Table Printer, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/console-table-printer/console-table-printer">GitHub</a>! ⭐️' ,
68+ } ,
69+ navbar : {
70+ title : 'Console Table Printer' ,
71+ logo : {
72+ alt : 'Console Table Printer' ,
73+ src : 'img/logo.ico' ,
74+ } ,
75+ items : [
76+ {
77+ href : 'https://github.com/console-table-printer/console-table-printer' ,
78+ label : 'GitHub' ,
79+ position : 'right' ,
80+ } ,
81+ {
82+ href : 'https://www.npmjs.com/package/console-table-printer' ,
83+ label : 'npmjs' ,
84+ position : 'right' ,
85+ } ,
86+ ] ,
87+ } ,
88+ footer : {
89+ style : 'dark' ,
90+ links : [
91+ {
92+ title : 'Learn' ,
93+ items : [
94+ {
95+ label : 'Quick Start' ,
96+ to : 'docs' ,
97+ } ,
98+ {
99+ label : 'Getting Started With CLI' ,
100+ to : 'docs/doc-cli-install-quick-start' ,
101+ } ,
102+ ] ,
103+ } ,
104+ {
105+ title : 'Decorate' ,
106+ items : [
107+ {
108+ label : 'Color' ,
109+ to : 'docs/doc-color' ,
110+ } ,
111+ {
112+ label : 'Border' ,
113+ to : 'docs/doc-border-design' ,
114+ } ,
115+ {
116+ label : 'Alignment' ,
117+ to : 'docs/doc-alignment' ,
118+ } ,
119+ ] ,
120+ } ,
121+ {
122+ title : 'More' ,
123+ items : [
124+ {
125+ label : 'GitHub' ,
126+ href : 'https://github.com/console-table-printer/console-table-printer' ,
127+ } ,
128+ {
129+ label : 'Npmjs' ,
130+ href : 'https://www.npmjs.com/package/console-table-printer' ,
131+ } ,
132+ ] ,
133+ } ,
134+ ] ,
135+ copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Nahiyan Kamal under MIT License. Built with Docusaurus.` ,
136+ } ,
137+ prism : {
138+ theme : prismThemes . github ,
139+ darkTheme : prismThemes . dracula ,
140+ } ,
141+ } satisfies Preset . ThemeConfig ,
142+ } ;
143+
144+ export default config ;
0 commit comments