-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
110 lines (110 loc) · 2.88 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
require("dotenv").config();
module.exports = {
title: `You don't know js unoffical`,
tagline:
"Reading from github is boring. So created unofficial site to read that book",
url: "https://ydkjs.netlify.app/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "Shubham Verma", // Usually your GitHub org/user name.
projectName: "ydkjs-documentation", // Usually your repo name.
themeConfig: {
...(process.env.NODE_ENV === "production" && {
algolia: {
indexName: "ydkjs-documentation",
apiKey: process.env.ALGOLIA,
},
}),
prism: {
defaultLanguage: "javascript",
},
navbar: {
title: "YDKJS",
logo: {
alt: "YDKJS Logo",
src: "img/js.svg",
srcDark: "img/js.svg", // Default to `logo.src`.
},
items: [
{
to: "docs/",
activeBasePath: "docs",
label: "Docs",
position: "left",
},
{
href: "https://github.com/shubhamV123/ydkjs-documentation.git",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `<div>Created by <a
href="https://shubhamverma.dev"
target="_blank"
rel="noopener noreferrer">
Shubham
</a><br/> Built with <a href="https://v2.docusaurus.io/" target="_blank"
rel="noopener noreferrer">Docusaurus</a>. Icons by <a href="https://icons8.com/" target="_blank"
rel="noopener noreferrer">Icon8</a></div>`,
},
},
scripts: [
{
src:
"https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js",
async: true,
type: "text/javascript",
},
],
stylesheets: [
"https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css",
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl:
"https://github.com/shubhamV123/ydkjs-documentation/edit/master/",
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: [
[
"@docusaurus/plugin-pwa",
{
offlineModeActivationStrategies: ["appInstalled", "queryString"],
pwaHead: [
{
tagName: "link",
rel: "manifest",
href: "/manifest.json", // your PWA manifest
},
{
tagName: "meta",
name: "theme-color",
content: "rgb(37, 194, 160)",
},
{
tagName: "link",
rel: "apple-touch-icon",
href: "/img/apple-touch-icon.png",
},
],
},
],
],
};