Skip to content

Commit f7d7a00

Browse files
committed
Revert "Convert Docusaurus config to TypeScript and update documentation structure"
This reverts commit 833f9cc.
1 parent 833f9cc commit f7d7a00

File tree

8 files changed

+154
-265
lines changed

8 files changed

+154
-265
lines changed

docusaurus.config.js

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
module.exports = {
3+
title: "Console Table Printer", // Title for your website.
4+
tagline: "A tool to print colorful table on your console",
5+
url: "https://console-table.netlify.app", // Your website URL
6+
baseUrl: "/", // Base URL for your project */
7+
8+
favicon: "img/favicon.ico",
9+
organizationName: "Console Styles", // Usually your GitHub org/user name.
10+
projectName: "docusaurus", // Usually your repo name.
11+
themeConfig: {
12+
announcementBar: {
13+
id: "support",
14+
content:
15+
'⭐️ 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>! ⭐️',
16+
},
17+
navbar: {
18+
title: "Console Table Printer",
19+
logo: {
20+
alt: "CTP",
21+
src: "img/logo.ico",
22+
},
23+
items: [
24+
{
25+
href: "https://github.com/console-table-printer/console-table-printer",
26+
label: "GitHub",
27+
position: "right",
28+
},
29+
{
30+
href: "https://www.npmjs.com/package/console-table-printer",
31+
label: "npmjs",
32+
position: "right",
33+
},
34+
],
35+
},
36+
footer: {
37+
style: "dark",
38+
links: [
39+
{
40+
title: "Learn",
41+
items: [
42+
{
43+
label: "Quick Start",
44+
to: "docs",
45+
},
46+
{
47+
label: "Getting Started With CLI",
48+
to: "docs/doc-cli-install-quick-start",
49+
},
50+
],
51+
},
52+
{
53+
title: "Decorate",
54+
items: [
55+
{
56+
label: "Color",
57+
to: "docs/doc-color",
58+
},
59+
{
60+
label: "Border",
61+
to: "docs/doc-border-design",
62+
},
63+
{
64+
label: "Alignment",
65+
to: "docs/doc-alignment",
66+
},
67+
],
68+
},
69+
{
70+
title: "More",
71+
items: [
72+
{
73+
label: "GitHub",
74+
href: "https://github.com/console-table-printer/console-table-printer",
75+
},
76+
{
77+
label: "Npmjs",
78+
href: "https://www.npmjs.com/package/console-table-printer",
79+
},
80+
],
81+
},
82+
],
83+
copyright: `Copyright © ${new Date().getFullYear()} Nahiyan Kamal under MIT License. Built with Docusaurus.`,
84+
},
85+
},
86+
presets: [
87+
[
88+
"@docusaurus/preset-classic",
89+
{
90+
docs: {
91+
path: "docs",
92+
sidebarPath: require.resolve("./sidebars.js"),
93+
sidebarCollapsible: false,
94+
showLastUpdateAuthor: true,
95+
showLastUpdateTime: true,
96+
remarkPlugins: [
97+
[require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
98+
],
99+
// this enabled the edit button for documentation
100+
editUrl:
101+
"https://github.com/console-table-printer/console-table-docu/blob/master/",
102+
},
103+
theme: {
104+
customCss: require.resolve("./src/css/custom.css"),
105+
},
106+
},
107+
],
108+
],
109+
};

docusaurus.config.ts

Lines changed: 0 additions & 144 deletions
This file was deleted.

eslint.config.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# HTML files and assets generated by the build. If a base directory has
66
# been specified, include it in the publish directory path.
77
publish = "build/"
8-
environment = { NODE_VERSION = "24" }
8+
environment = { NODE_VERSION = "22.16.0" }
99

1010
# Default build command.
1111
command = "yarn build"

0 commit comments

Comments
 (0)