Skip to content

Commit

Permalink
Merge pull request #12 from SudoMagicCode/docusaurus-upgrades/v3-migr…
Browse files Browse the repository at this point in the history
…ation

Upgrades to 3.0
  • Loading branch information
raganmd authored Oct 31, 2023
2 parents 3c0cb2d + 5c31655 commit 826e87e
Show file tree
Hide file tree
Showing 5 changed files with 3,813 additions and 3,046 deletions.
1 change: 0 additions & 1 deletion docs/docs/SM-guide/002-preference-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ slug: /SM-guide/preferences
# Recommended Preference Settings

Preferences is a dialog for setting personal default settings for various TouchDesigner options. These preferences are found in the Edit menu under Preferences.... These options are saved so they apply to your next TouchDesigner session.
{: .fs-6 .fw-300 }

From the Edit menu select the Preferences dialog box. Alternatively, you could use the keyboard short-cut Alt + p

Expand Down
3 changes: 2 additions & 1 deletion docs/docs/SM-guide/python-in-td/004-py-td-auto-complete.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def FetchDateAndTime():
return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
```

{: .warning}
:::warning
This is considered bad form since it would be difficult for another developer to find that hidden import statement.
:::

### Where does it come from?

Expand Down
9 changes: 4 additions & 5 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

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

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -102,9 +101,9 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} SudoMagic, LLC. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['glsl'],
theme: prismThemes.oneLight,
darkTheme: prismThemes.dracula,
additionalLanguages: ['python', 'glsl'],
},
}),
};
Expand Down
19 changes: 10 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand All @@ -14,16 +14,17 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.0.0",
"@docusaurus/preset-classic": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1"
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/types": "^3.0.0"
},
"browserslist": {
"production": [
Expand All @@ -38,6 +39,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.0"
}
}
Loading

0 comments on commit 826e87e

Please sign in to comment.