Skip to content

Commit

Permalink
Merge pull request #9 from DigiPie/docusaurus3
Browse files Browse the repository at this point in the history
Upgrade to docusaurus 3
  • Loading branch information
DigiPie authored Feb 9, 2024
2 parents 42115fa + 21d02f8 commit e4729e1
Show file tree
Hide file tree
Showing 11 changed files with 4,216 additions and 3,544 deletions.
200 changes: 0 additions & 200 deletions website/docs/doc1.md

This file was deleted.

6 changes: 0 additions & 6 deletions website/docs/doc2.md

This file was deleted.

14 changes: 0 additions & 14 deletions website/docs/doc3.md

This file was deleted.

2 changes: 1 addition & 1 deletion website/docs/git-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _This document was migrated from [DigiDocs](https://digipie.github.io/digidocs/g

:::tip

Basic knowledge of Git is assumed in this tutorial. If you are new to Git, visit <http://rogerdudler.github.io/git-guide/> to learn the basics first.
Basic knowledge of Git is assumed in this tutorial. If you are new to Git, visit [http://rogerdudler.github.io/git-guide/](http://rogerdudler.github.io/git-guide/) to learn the basics first.

:::

Expand Down
2 changes: 1 addition & 1 deletion website/docs/git-ignore-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This section covers how to tell Git to ignore certain files and directories by u

:::tip

Basic knowledge of Git is assumed in this tutorial. If you are new to Git, visit <http://rogerdudler.github.io/git-guide/> to learn the basics first.
Basic knowledge of Git is assumed in this tutorial. If you are new to Git, visit [http://rogerdudler.github.io/git-guide/](http://rogerdudler.github.io/git-guide/) to learn the basics first.

:::

Expand Down
8 changes: 4 additions & 4 deletions website/docs/mongodb-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use <database>

:::tip

Read <https://docs.mongodb.com/manual/mongo/> for more information.
Read [https://docs.mongodb.com/manual/mongo/](https://docs.mongodb.com/manual/mongo/) for more information.

:::

Expand Down Expand Up @@ -67,7 +67,7 @@ db.createUser(

:::tip

Read <https://docs.mongodb.com/manual/reference/method/db.createUser/> for more information.
Read [https://docs.mongodb.com/manual/mongo/](https://docs.mongodb.com/manual/mongo/) for more information.

:::

Expand All @@ -89,7 +89,7 @@ mongodb://devadmin:<password>@localhost:27017/dev
:::caution
If the username or password includes the at sign @, colon :, slash /, or the percent sign % character, use percent encoding. See <https://docs.mongodb.com/manual/reference/connection-string/#examples> for more information.
If the username or password includes the at sign @, colon :, slash /, or the percent sign % character, use percent encoding. See [https://docs.mongodb.com/manual/reference/connection-string/#examples](https://docs.mongodb.com/manual/reference/connection-string/#examples) for more information.
:::
Expand All @@ -99,7 +99,7 @@ Given that we are not enabling authentication, you can use either of the above c
:::tip
Read <https://docs.mongodb.com/manual/tutorial/enable-authentication/> for more information.
Read [https://docs.mongodb.com/manual/tutorial/enable-authentication/](https://docs.mongodb.com/manual/tutorial/enable-authentication/) for more information.
:::
Expand Down
12 changes: 7 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const math = require("remark-math");
const katex = require("rehype-katex");
import autoprefixer from "autoprefixer";
import katex from "rehype-katex";
import math from "remark-math";
import tailwind from "tailwindcss";

const internetProfiles = {
linkedin: {
Expand Down Expand Up @@ -132,13 +134,13 @@ module.exports = {
crossorigin: "anonymous",
},
],
plugins: [
plugins: [
async function tailwindPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
postcssOptions.plugins.push(tailwind);
postcssOptions.plugins.push(autoprefixer);
return postcssOptions;
},
};
Expand Down
38 changes: 21 additions & 17 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evantay.com",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand All @@ -9,25 +9,29 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"serve": "docusaurus serve",
"update:docusaurus": "yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest"
"update:docusaurus": "yarn add @docusaurus/core @docusaurus/preset-classic"
},
"dependencies": {
"@docusaurus/core": "^2.4.0",
"@docusaurus/preset-classic": "^2.4.0",
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-brands-svg-icons": "^6.4.0",
"@fortawesome/free-regular-svg-icons": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mdx-js/react": "^1.6.21",
"autoprefixer": "^10.4.13",
"clsx": "^1.1.1",
"postcss": "^8.4.19",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rehype-katex": "^4.0.0",
"remark-math": "^3.0.1",
"tailwindcss": "^3.3.2"
"@mdx-js/react": "^3.0.0",
"autoprefixer": "^10.4.17",
"clsx": "^2.1.0",
"postcss": "^8.4.35",
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0",
"tailwindcss": "^3.4.1"
},
"engines": {
"node": ">=18.0"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit e4729e1

Please sign in to comment.