Skip to content

Commit

Permalink
ignore mdx in formatting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Nov 20, 2023
1 parent bd83829 commit 6f98776
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 42 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**/*.mdx

node_modules
.pnp
.pnp.js
Expand Down
68 changes: 35 additions & 33 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';

import tailwind from "@astrojs/tailwind";
import starlight from '@astrojs/starlight'
import tailwind from '@astrojs/tailwind'
import { defineConfig } from 'astro/config'

// https://astro.build/config
export default defineConfig({
site: 'https://docs.coursebuilder.dev/',
favicon: '/images/badass.svg',
integrations: [starlight({
title: 'Course Builder',
logo: {
src: './src/assets/badass.svg',
replacesTitle: true,
},
editLink: {
baseUrl: 'https://github.com/joelhooks/course-builder/edit/main/docs/',
},
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
}
},
social: {
github: 'https://github.com/joelhooks/course-builder',
'x.com': 'https://x.com/badass_courses',
},
customCss: [
// Path to your Tailwind base styles:
'./src/tailwind.css',
],
}), tailwind({
// Disable the default base styles:
applyBaseStyles: false,
})]
});
integrations: [
starlight({
title: 'Course Builder',
logo: {
src: './src/assets/badass.svg',
replacesTitle: true,
},
editLink: {
baseUrl: 'https://github.com/joelhooks/course-builder/edit/main/docs/',
},
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
},
social: {
github: 'https://github.com/joelhooks/course-builder',
'x.com': 'https://x.com/badass_courses',
},
customCss: [
// Path to your Tailwind base styles:
'./src/tailwind.css',
],
}),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
],
})
2 changes: 1 addition & 1 deletion docs/src/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
12 changes: 6 additions & 6 deletions docs/tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import starlightPlugin from '@astrojs/starlight-tailwind';
import starlightPlugin from '@astrojs/starlight-tailwind'

/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [starlightPlugin()],
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [starlightPlugin()],
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"dev": "turbo run dev --filter \"./packages/*\"",
"lint": "turbo run lint && manypkg check",
"format:check": "prettier --check .",
"format": "prettier --write . --list-different",
"format": "prettier . --write --list-different",
"pre-commit": "lint-staged",
"test": "turbo run test",
"test:watch": "turbo run test:watch",
"typecheck": "turbo run typecheck",
"prepare": "husky install"
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": [
"**/*.{ts,tsx,js,jsx,cjs,mjs}": [
"pnpm run format"
]
},
Expand Down

0 comments on commit 6f98776

Please sign in to comment.