Skip to content

Commit c892543

Browse files
authored
Merge pull request #104 from team-dev-docs/tim/new-landing-page
Tim/new landing page
2 parents e59a7de + dbfc41b commit c892543

File tree

89 files changed

+61275
-27060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+61275
-27060
lines changed

docusaurus.config.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
const lightCodeTheme = require('prism-react-renderer').themes.github;
5+
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
66

77
// [item, [[], [], []]]
88
const apiConfig = require('./dev-docs-openapi.js');
@@ -31,7 +31,11 @@ const config = {
3131
'src/css/custom.css',
3232
{
3333
href: 'https://cdn.tailwindcss.com/2.2.19/tailwind.min.css'
34-
}
34+
},
35+
{
36+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap',
37+
rel: 'stylesheet',
38+
},
3539
],
3640
title: 'Your Dev-Docs',
3741
tagline: 'Lets Dev-Doc and Roll',
@@ -45,15 +49,19 @@ const config = {
4549
// If you aren't using GitHub pages, you don't need these.
4650
organizationName: 'facebook', // Usually your GitHub org/user name.
4751
projectName: 'docusaurus', // Usually your repo name.
48-
plugins: ['docusaurus-plugin-sass', "@orama/plugin-docusaurus",
52+
plugins: [
53+
'docusaurus-plugin-sass',
54+
// "@orama/plugin-docusaurus",
55+
// '@docusaurus/plugin-content-docs',
4956
[
5057
'docusaurus-plugin-openapi-docs',
5158
{
5259
id: "apiDocs",
5360
docsPluginId: "classic",
5461
config: openApiCongfig
5562
},
56-
], async function myPlugin(context, options) {
63+
],
64+
async function myPlugin(context, options) {
5765
return {
5866
name: "docusaurus-tailwindcss",
5967
configurePostCss(postcssOptions) {
@@ -81,7 +89,7 @@ const config = {
8189
({
8290
docs: {
8391
docItemComponent: "@theme/ApiItem",
84-
docLayoutComponent: "@theme/DocPage",
92+
// docLayoutComponent: "@theme/DocPage",
8593
sidebarPath: require.resolve('./sidebars.js'),
8694
sidebarCollapsed: true,
8795
// Please change this to your repo.
@@ -101,7 +109,7 @@ const config = {
101109
console.log("###########")
102110
console.log(blogPosts)
103111
return defaultCreateFeedItems({
104-
112+
105113
// keep only the 10 most recent blog posts in the feed
106114
blogPosts: blogPosts.filter((item, index) => index < 10),
107115
...rest,

package-lock.json

Lines changed: 51793 additions & 22042 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 70 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -18,85 +18,92 @@
1818
"typecheck": "tsc"
1919
},
2020
"dependencies": {
21-
"@docusaurus/core": "2.4.3",
22-
"@docusaurus/preset-classic": "2.4.3",
23-
"@docusaurus/theme-live-codeblock": "2.4.3",
24-
"@fontsource/inter": "^5.0.8",
21+
"@docusaurus/core": "^3.5.2",
22+
"@docusaurus/plugin-content-docs": "^3.5.2",
23+
"@docusaurus/preset-classic": "^3.5.2",
24+
"@docusaurus/theme-live-codeblock": "^3.5.2",
25+
"@fontsource/inter": "^5.1.0",
2526
"@gocapsule/column-extension": "^1.0.0-beta-3",
26-
"@lyrasearch/plugin-docusaurus": "^0.0.2",
27-
"@mdx-js/react": "^1.6.22",
28-
"@monaco-editor/react": "^4.4.6",
29-
"@orama/orama": "^1.2.6",
30-
"@orama/plugin-docusaurus": "^1.2.6",
27+
"@lyrasearch/plugin-docusaurus": "^0.1.0",
28+
"@mdx-js/react": "^3.0.1",
29+
"@monaco-editor/react": "^4.6.0",
30+
"@orama/orama": "^2.1.0",
31+
"@orama/plugin-docusaurus": "^2.1.0",
3132
"@radix-ui/react-accordion": "^1.1.2",
32-
"@radix-ui/react-alert-dialog": "^1.0.5",
33+
"@radix-ui/react-alert-dialog": "^1.1.1",
3334
"@radix-ui/react-aspect-ratio": "^1.0.3",
3435
"@radix-ui/react-context-menu": "^2.1.5",
3536
"@radix-ui/react-icons": "^1.3.0",
36-
"@radix-ui/react-slot": "^1.0.2",
37-
"@radix-ui/react-tabs": "^1.0.4",
38-
"@tabler/icons-react": "^2.46.0",
37+
"@radix-ui/react-slot": "^1.1.0",
38+
"@radix-ui/react-tabs": "^1.1.0",
39+
"@react-three/fiber": "^8.17.7",
40+
"@tabler/icons-react": "^3.16.0",
3941
"@tailwindcss/aspect-ratio": "^0.4.2",
40-
"@tiptap/core": "^2.0.0-beta.205",
41-
"@tiptap/extension-code-block-lowlight": "^2.0.3",
42-
"@tiptap/extension-color": "^2.0.0-beta.212",
43-
"@tiptap/extension-image": "^2.0.0-beta.202",
44-
"@tiptap/extension-link": "^2.0.0-beta.213",
45-
"@tiptap/extension-table": "^2.0.0-beta.217",
46-
"@tiptap/extension-table-cell": "^2.0.0-beta.217",
47-
"@tiptap/extension-table-header": "^2.0.0-beta.217",
48-
"@tiptap/extension-table-row": "^2.0.0-beta.217",
49-
"@tiptap/extension-task-item": "^2.0.0-beta.213",
50-
"@tiptap/extension-task-list": "^2.0.0-beta.213",
51-
"@tiptap/extension-text-align": "^2.0.0-beta.212",
52-
"@tiptap/extension-text-style": "^2.0.0-beta.212",
53-
"@tiptap/pm": "^2.0.0-beta.212",
54-
"@tiptap/react": "^2.0.0-beta.202",
55-
"@tiptap/starter-kit": "^2.0.0-beta.202",
56-
"autoprefixer": "^10.4.16",
57-
"axios": "^1.3.4",
58-
"cheerio": "^1.0.0-rc.12",
59-
"chroma-js": "^2.4.2",
42+
"@tiptap/core": "^2.6.6",
43+
"@tiptap/extension-code-block-lowlight": "^2.6.6",
44+
"@tiptap/extension-color": "^2.6.6",
45+
"@tiptap/extension-image": "^2.6.6",
46+
"@tiptap/extension-link": "^2.6.6",
47+
"@tiptap/extension-table": "^2.6.6",
48+
"@tiptap/extension-table-cell": "^2.6.6",
49+
"@tiptap/extension-table-header": "^2.6.6",
50+
"@tiptap/extension-table-row": "^2.6.6",
51+
"@tiptap/extension-task-item": "^2.6.6",
52+
"@tiptap/extension-task-list": "^2.6.6",
53+
"@tiptap/extension-text-align": "^2.6.6",
54+
"@tiptap/extension-text-style": "^2.6.6",
55+
"@tiptap/pm": "^2.6.6",
56+
"@tiptap/react": "^2.6.6",
57+
"@tiptap/starter-kit": "^2.6.6",
58+
"@types/three": "^0.168.0",
59+
"autoprefixer": "^10.4.20",
60+
"axios": "^1.7.7",
61+
"caniuse-lite": "^1.0.30001660",
62+
"cheerio": "^1.0.0",
63+
"chroma-js": "^3.1.1",
6064
"class-variance-authority": "^0.7.0",
61-
"clsx": "^2.0.0",
62-
"docusaurus-plugin-openapi-docs": "^2.0.1",
65+
"clsx": "^2.1.1",
66+
"docusaurus-plugin-openapi-docs": "^4.0.1",
6367
"docusaurus-plugin-sass": "^0.2.2",
64-
"docusaurus-theme-openapi-docs": "^2.0.1",
65-
"embla-carousel-react": "^8.0.2",
66-
"framer-motion": "^6.5.1",
67-
"highlight.js": "^11.8.0",
68+
"docusaurus-theme-openapi-docs": "^4.0.1",
69+
"embla-carousel-react": "^8.2.1",
70+
"framer-motion": "^11.8.0",
71+
"highlight.js": "^11.10.0",
6872
"js-yaml": "^4.1.0",
69-
"lowlight": "^2.9.0",
70-
"lucide-react": "^0.294.0",
71-
"marked": "^4.2.12",
73+
"lowlight": "^3.1.0",
74+
"lucide-react": "^0.441.0",
75+
"marked": "^14.1.2",
7276
"mini-svg-data-uri": "^1.4.4",
73-
"postcss": "^8.4.32",
74-
"postcss-import": "^15.1.0",
75-
"prism-react-renderer": "^1.3.5",
76-
"prosemirror-history": "^1.3.0",
77-
"react": "^17.0.2",
78-
"react-dom": "^17.0.2",
79-
"react-monaco-editor": "^0.52.0",
77+
"postcss": "^8.4.45",
78+
"postcss-import": "^16.1.0",
79+
"prism-react-renderer": "^2.4.0",
80+
"prosemirror-history": "^1.4.1",
81+
"react": "^18.3.1",
82+
"react-dom": "^18.3.1",
83+
"react-monaco-editor": "^0.56.1",
8084
"react-resizable": "^3.0.5",
81-
"rehype-react": "^7.1.2",
82-
"rehype-sanitize": "^5.0.1",
83-
"remark": "^14.0.2",
84-
"remark-parse": "^10.0.1",
85+
"react-router-dom": "^6.26.2",
86+
"react-transition-group": "^4.4.5",
87+
"rehype-react": "^8.0.0",
88+
"rehype-sanitize": "^6.0.0",
89+
"remark": "^15.0.1",
90+
"remark-parse": "^11.0.0",
8591
"remark-react": "^9.0.1",
86-
"remark-rehype": "^10.1.0",
87-
"sass": "^1.56.0",
88-
"sharp": "^0.33.2",
89-
"simplex-noise": "^4.0.1",
90-
"tailwind-merge": "^2.1.0",
91-
"tailwindcss": "^3.3.6",
92+
"remark-rehype": "^11.1.0",
93+
"sass": "^1.78.0",
94+
"sharp": "^0.33.5",
95+
"simplex-noise": "^4.0.3",
96+
"tailwind-merge": "^2.5.2",
97+
"tailwindcss": "^3.4.11",
9298
"tailwindcss-animate": "^1.0.7",
99+
"three": "^0.168.0",
93100
"tiptap": "^1.32.2",
94-
"unified": "^10.1.2"
101+
"unified": "^11.0.5"
95102
},
96103
"devDependencies": {
97-
"@docusaurus/module-type-aliases": "2.4.3",
98-
"@tsconfig/docusaurus": "^1.0.5",
99-
"typescript": "^4.7.4"
104+
"@docusaurus/module-type-aliases": "^3.5.2",
105+
"@tsconfig/docusaurus": "^2.0.3",
106+
"typescript": "^5.6.2"
100107
},
101108
"browserslist": {
102109
"production": [

src/components/MarkdownEditor.jsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ import js from 'highlight.js/lib/languages/javascript'
2626
import python from 'highlight.js/lib/languages/python'
2727
import ts from 'highlight.js/lib/languages/typescript'
2828
import html from 'highlight.js/lib/languages/xml'
29-
import { lowlight } from 'lowlight'
29+
// import lowlight from 'lowlight'
30+
import { createLowlight } from 'lowlight';
3031
import Accordion from "./Accordion";
3132
import Tabs from "./Tabs";
3233
import Heading from "@tiptap/extension-heading"
3334

35+
const lowlight = createLowlight();
36+
3437
const HeadingWithID = Heading.extend({
3538
addAttributes() {
3639
return {
@@ -58,7 +61,7 @@ export const inputRegex = /https:\/\/www\.youtube\.com\/[a-zA-Z?=\-0-9&_]+|https
5861
const Iframe = Node.create({
5962
name: "iframe",
6063
group: "block",
61-
defaultOptions: {
64+
addOptions: {
6265
allowFullscreen: true,
6366
HTMLAttributes: {
6467
class: "iframe-wrapper"
@@ -102,11 +105,11 @@ const Iframe = Node.create({
102105
},
103106
})
104107

105-
lowlight.registerLanguage('html', html)
106-
lowlight.registerLanguage('css', css)
107-
lowlight.registerLanguage('js', js)
108-
lowlight.registerLanguage('ts', ts)
109-
lowlight.registerLanguage('python', python)
108+
lowlight.register('html', html)
109+
lowlight.register('css', css)
110+
lowlight.register('js', js)
111+
lowlight.register('ts', ts)
112+
lowlight.register('python', python)
110113

111114
const MenuBar = ({ editor }) => {
112115
if (!editor) {

0 commit comments

Comments
 (0)