Skip to content

Commit

Permalink
chore: fix docusaurus docs (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
alewin authored Oct 26, 2024
1 parent a0adadf commit cc62a26
Show file tree
Hide file tree
Showing 6 changed files with 2,561 additions and 1,832 deletions.
2 changes: 1 addition & 1 deletion apps/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.3",
"vite": "^5.4.9"
"vite": "^5.4.10"
}
}
86 changes: 43 additions & 43 deletions apps/website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,93 +1,93 @@
module.exports = {
title: 'useWorker',
tagline: 'Use web workers with react hook',
url: 'https://useworker.netlify.com/',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'alewin',
projectName: 'useWorker',
title: "useWorker",
tagline: "Use web workers with react hook",
url: "https://useworker.netlify.com/",
baseUrl: "/",
favicon: "img/favicon.ico",
organizationName: "alewin",
projectName: "useWorker",
themeConfig: {
googleAnalytics: {
trackingID: 'UA-160695625-2',
anonymizeIP: true,
},
navbar: {
title: 'useWorker',
title: "useWorker",
logo: {
alt: 'useWorker',
src: 'https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/237/gear_2699.png',
alt: "useWorker",
src: "img/gear.png",
},
items: [
{
to: 'docs/introduction',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
to: "docs/introduction",
activeBasePath: "docs",
label: "Docs",
position: "left",
},
{
href: 'https://github.com/alewin/useWorker',
label: 'GitHub',
position: 'right',
href: "https://github.com/alewin/useWorker",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: 'Docs',
title: "Docs",
items: [
{
label: 'introduction',
to: 'docs/introduction',
label: "introduction",
to: "docs/introduction",
},
{
label: 'Installation',
to: 'docs/installation',
label: "Installation",
to: "docs/installation",
},
{
label: 'API',
to: 'docs/api-useworker',
label: "API",
to: "docs/api-useworker",
},
{
label: 'Examples',
to: 'docs/examples/examples-sort',
label: "Examples",
to: "docs/examples/examples-sort",
},
{
label: 'Limitations',
to: 'docs/limitations',
label: "Limitations",
to: "docs/limitations",
},
],
},
{
title: 'Social',
title: "Social",
items: [
{
label: 'GitHub',
href: 'https://github.com/alewin/useworker',
label: "GitHub",
href: "https://github.com/alewin/useworker",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()}, Built with Docusaurus.`,
},
prism: {
defaultLanguage: 'js',
plugins: ['line-numbers', 'show-language'],
defaultLanguage: "js",
plugins: ["line-numbers", "show-language"],
},
},
presets: [
[
'@docusaurus/preset-classic',
"@docusaurus/preset-classic",
{
gtag: {
trackingID: "G-QH6C23CWJR",
anonymizeIP: true,
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/alewin/useworker/edit/master/website/',
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/alewin/useworker/edit/master/website/",
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
}
};
18 changes: 11 additions & 7 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@
"deploy": "docusaurus deploy"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.70",
"@docusaurus/preset-classic": "^2.0.0-alpha.70",
"classnames": "^2.2.6",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"@mdx-js/react": "1.5.2"
"@docusaurus/core": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"classnames": "^2.5.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@mdx-js/react": "3.1.0"
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
Expand Down
Binary file removed apps/website/static/img/bytes-newsletter.jpg
Binary file not shown.
Binary file added apps/website/static/img/gear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cc62a26

Please sign in to comment.