): string {
+// const startAtIndex = contents.indexOf(START_AT);
+// if (startAtIndex < 0) return contents;
+
+// let endAtIndex = contents.indexOf(END_AT);
+// if (endAtIndex < 0) endAtIndex = undefined;
+
+// contents = contents
+// .substring(startAtIndex + START_AT.length, endAtIndex)
+// .trim();
+
+// return contents.replace(
+// /\n?(?:\/\* SNIP \*\/)(?:\n|.)+(?:\/\* SKIP END \*\/)/,
+// ""
+// );
+// }
+
export function trimSnippet(snippet: string): string {
const startAtIndex = snippet.indexOf(START_AT);
if (startAtIndex < 0) return snippet;
diff --git a/website/sidecar/src/components/HomepageFeatures/index.tsx b/website/sidecar/src/components/HomepageFeatures/index.tsx
index 07a73bb8..015113e9 100644
--- a/website/sidecar/src/components/HomepageFeatures/index.tsx
+++ b/website/sidecar/src/components/HomepageFeatures/index.tsx
@@ -11,31 +11,29 @@ type FeatureItem = {
const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
- Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
+ Svg: require('@site/static/img/undraw_mobile_development.svg').default,
description: (
<>
- Docusaurus was designed from the ground up to be easily installed and
- used to get your website up and running quickly.
+ Use custom lints and quick fixes just as easily as those included in the official Dart linter package.
>
),
},
{
- title: 'Focus on What Matters',
- Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
+ title: 'Customize Your DevX',
+ Svg: require('@site/static/img/undraw_development.svg').default,
description: (
<>
- Docusaurus lets you focus on your docs, and we'll do the chores. Go
- ahead and move your docs into the docs
directory.
+ Enforce rules that are perfectly tailored to your package or application.
>
),
},
{
- title: 'Powered by React',
- Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
+ title: 'Powered by Dart',
+ Svg: require('@site/static/img/undraw_computer_dart_flutter.svg').default,
description: (
<>
- Extend or customize your website layout by reusing React. Docusaurus can
- be extended while reusing the same header and footer.
+ Sidecar was built around Dart and Flutter, so you can expect the same level of performance
+ as the native Dart SDK toolchain.
>
),
},
diff --git a/website/sidecar/src/css/custom.scss b/website/sidecar/src/css/custom.scss
index 2bc6a4cf..22dd425b 100644
--- a/website/sidecar/src/css/custom.scss
+++ b/website/sidecar/src/css/custom.scss
@@ -6,7 +6,7 @@
/* You can override the default Infima variables here. */
:root {
- --ifm-color-primary: #2e8555;
+ --ifm-color-primary: #0175C2;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
@@ -19,7 +19,7 @@
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
- --ifm-color-primary: #25c2a0;
+ --ifm-color-primary: #13B9FD;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
@@ -27,4 +27,4 @@
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
-}
+}
\ No newline at end of file
diff --git a/website/sidecar/src/pages/index.tsx b/website/sidecar/src/pages/index.tsx
index 305139fb..4195ff6a 100644
--- a/website/sidecar/src/pages/index.tsx
+++ b/website/sidecar/src/pages/index.tsx
@@ -8,7 +8,7 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
import styles from './index.module.css';
function HomepageHeader() {
- const {siteConfig} = useDocusaurusContext();
+ const { siteConfig } = useDocusaurusContext();
return (