Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"docusaurus-plugin-openapi-docs": "^5.1.0",
"docusaurus-theme-openapi-docs": "^5.1.0",
"js-yaml": "^5.2.0",
"js-yaml-loader": "^1.2.2",
"json-bigint": "^1.0.0",
"prism-react-renderer": "^2.4.1",
"react": "^18.3.1",
Expand Down Expand Up @@ -118,14 +117,16 @@
"react-redux": "^9.2.0",
"@reduxjs/toolkit": "^2.5.0",
"baseline-browser-mapping": "^2.9.19",
"swagger-client": "3.37.3",
"lodash": "4.18.1",
"lodash-es": "4.18.1",
"yaml": "1.10.3",
"uuid": "11.1.1",
"serialize-javascript": "7.0.5",
"d3-color": "3.1.0",
"ws": "^8.21.0"
"ws": "^8.21.0",
"@docusaurus/core/@docusaurus/utils/gray-matter/js-yaml": "^3.15.0",
"@docusaurus/core/**/js-yaml": "^4.3.0",
"docusaurus-plugin-openapi-docs/**/js-yaml": "^4.3.0"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
2 changes: 1 addition & 1 deletion docs/src/components/databases/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export interface DatabaseInfo {
expressions_in_orderby?: boolean;

// Platform features
limit_method?: string;
limit_method?: number;
limit_clause?: boolean;
max_column_name?: number;
supports_file_upload?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion docs/src/pages/inTheWild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import Layout from '@theme/Layout';
import { Avatar, Card, Col, Collapse, Row, Typography } from 'antd';
import { load } from 'js-yaml';
import BlurredSection from '../components/BlurredSection';
import SectionHeader from '../components/SectionHeader';
import DataSet from '../../../RESOURCES/INTHEWILD.yaml';
Expand All @@ -36,7 +37,7 @@ interface DataSetType {
categories: Record<string, Organization[]>;
}

const typedDataSet = DataSet as DataSetType;
const typedDataSet = load(DataSet) as DataSetType;

const ContributorAvatars = ({ contributors }: { contributors?: string[] }) => {
if (!contributors?.length) return null;
Expand Down
3 changes: 2 additions & 1 deletion docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Link from '@docusaurus/Link';
import { Card, Carousel, Flex } from 'antd';
import styled from '@emotion/styled';
import GitHubButton from 'react-github-btn';
import { load } from 'js-yaml';
import { mq } from '../utils';
import SectionHeader from '../components/SectionHeader';
import databaseData from '../data/databases.json';
Expand Down Expand Up @@ -60,7 +61,7 @@ interface DataSetType {
categories: Record<string, Organization[]>;
}

const typedDataSet = DataSet as DataSetType;
const typedDataSet = load(DataSet) as DataSetType;

// Extract all organizations with logos for the carousel
const companiesWithLogos = Object.values(typedDataSet.categories)
Expand Down
4 changes: 2 additions & 2 deletions docs/src/types/yaml.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/

declare module '*.yaml' {
const content: unknown;
const content: string;
export default content;
}

declare module '*.yml' {
const content: unknown;
const content: string;
export default content;
}
4 changes: 2 additions & 2 deletions docs/src/webpack.extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export default function webpackExtendPlugin(): Plugin<void> {
);
});

// Add YAML loader rule directly to existing rules
// Load YAML file as raw text string
config.module?.rules?.push({
test: /\.ya?ml$/,
use: 'js-yaml-loader',
type: 'asset/source',
});

// Add swc-loader rule for superset-frontend files
Expand Down
1 change: 0 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"exclude": [
"node_modules",
"../superset-frontend/**/*",
"src/webpack.extend.ts",
"src/shims/**"
]
}
Loading
Loading