Skip to content

Commit

Permalink
updated docusaurus and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksood619 committed Dec 6, 2023
1 parent e2b3eac commit b9011f9
Show file tree
Hide file tree
Showing 7 changed files with 6,276 additions and 4,003 deletions.
1 change: 1 addition & 0 deletions docs/devops/ides/mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Open two instance of same application - **open -n MQTT.fx.app**
- Auto Save - afterDelay
- enablePreview - off
- terminal.integrated.scrollback - 100000
- Window: Open Folders In New Window - On

- **Google Drive for mac**
- ~~bittorrent web~~
Expand Down
9 changes: 8 additions & 1 deletion docs/frontend/others/docusaurus.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cd my-website

npm start

npx docusaurus start
# npx docusaurus start

# http://localhost:3000

Expand Down Expand Up @@ -56,3 +56,10 @@ swizzling permits to **swap a theme component with your own implementation**, a
[📦 plugin-google-gtag | Docusaurus](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-google-gtag)

[📦 plugin-content-docs | Docusaurus](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs)

### Upgrading from v2 to v3

```bash
# check if all files compile successfully
npx docusaurus-mdx-checker
```
18 changes: 8 additions & 10 deletions docs/mathematics/geometry/right-triangles-and-geometry.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
3. [Special right triangles](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-special-right-triangles)
- 30-60-90 triangle rule

![image](../../media/Right-Triangles-and-Geometry-image1.jpg)
![image](../../media/Right-Triangles-and-Geometry-image1.jpg)

4. [Introduction to the trigonometric ratios](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-trig-ratios-intro)

![image](../../media/Right-Triangles-and-Geometry-image2.jpg)
![image](../../media/Right-Triangles-and-Geometry-image2.jpg)

Mnemonic - SOH CAH TOA
Mnemonic - SOH CAH TOA

Sine - Opposite / Hypotenuse
Sine - Opposite / Hypotenuse

Cosine - Adjacent / Hypotenuse
Cosine - Adjacent / Hypotenuse

Tangent - Opposite / Adjacent
Tangent - Opposite / Adjacent

![image](../../media/Right-Triangles-and-Geometry-image3.jpg)
![image](../../media/Right-Triangles-and-Geometry-image3.jpg)

5. [Solving for a side in a right triangle using the trigonometric ratios:](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-solve-for-a-side)

Expand All @@ -35,8 +35,6 @@ Tangent - Opposite / Adjacent

10. [Law of sines](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-law-of-sines)

11. [Law of cosines](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-law-of-cosines)

C^2^ = A^2^ + B^2^ - 2.A.B.cos **Θ**
11. [Law of cosines](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-law-of-cosines) `C^2^ = A^2^ + B^2^ - 2.A.B.cos **Θ**`

12. [Solving general triangles](https://www.khanacademy.org/math/geometry/hs-geo-trig#hs-geo-solving-general-triangles)
25 changes: 13 additions & 12 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
import {themes as prismThemes} from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -28,9 +30,9 @@ const config = {
// false gives all page errors
// true gives linked pages error from other pages since relative path is used

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
Expand Down Expand Up @@ -62,7 +64,7 @@ const config = {
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
numberPrefixParser: false,
Expand All @@ -73,7 +75,7 @@ const config = {
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-ZSZMJXWSH3',
Expand Down Expand Up @@ -125,11 +127,10 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Deep Notes, Built with ❤️`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),

plugins: [
[
'@docusaurus/plugin-pwa',
Expand Down Expand Up @@ -172,4 +173,4 @@ const config = {
],
};

module.exports = config;
export default config;
Loading

0 comments on commit b9011f9

Please sign in to comment.