Skip to content

Commit dc94157

Browse files
General cleanup and refactoring (#3026)
1 parent b743acf commit dc94157

File tree

6 files changed

+23
-39
lines changed

6 files changed

+23
-39
lines changed

packages/common/src/util/stringUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
export function camelCaseToAllDown(input: string): string {
1212
return input
13-
.replace(/([A-Z])/g, " $1")
13+
.replace(/(?<=[a-z0-9])([A-Z])/g, " $1")
1414
.split(" ")
1515
.map((word) => word.toLowerCase())
1616
.join(" ");

packages/cursorless-org-docs/docusaurus.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const config: Config = {
146146
},
147147
],
148148
],
149-
plugins: ["./src/plugins/tailwind-plugin.js"],
149+
plugins: ["./src/plugins/tailwind-plugin.ts"],
150150

151151
themeConfig: {
152152
navbar: {
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// @ts-check
22

33
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
4-
const sidebars = {
4+
export default {
55
user: [{ type: "autogenerated", dirName: "user" }],
66
contributing: [{ type: "autogenerated", dirName: "contributing" }],
77
};
8-
9-
export default sidebars;

packages/cursorless-org-docs/src/plugins/tailwind-plugin.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type {
2+
LoadContext,
3+
PluginOptions,
4+
PostCssOptions,
5+
} from "@docusaurus/types";
6+
import tailwindcss from "tailwindcss";
7+
8+
export default function tailwindPlugin(
9+
_context: LoadContext,
10+
_options: PluginOptions,
11+
) {
12+
return {
13+
name: "tailwind-plugin",
14+
15+
configurePos1tCss(postcssOptions: PostCssOptions): PostCssOptions {
16+
postcssOptions.plugins.push(tailwindcss);
17+
return postcssOptions;
18+
},
19+
};
20+
}

packages/meta-updater/src/updateLanguageScopeSupportConfig.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)