Skip to content

Commit

Permalink
style: reformat with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Aug 31, 2024
1 parent edc99cb commit 176cf5f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 25 deletions.
5 changes: 5 additions & 0 deletions documentation/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/** @type {import("prettier").Config} */
export default {
arrowParens: 'always',
printWidth: 120,
trailingComma: 'all',
singleQuote: true,
jsxSingleQuote: true,
plugins: ['prettier-plugin-astro'],
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/content/docs/guides/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: A guide how to use effector with patronum.

import { PackageManagers } from 'starlight-package-managers';

<PackageManagers pkg="patronum" frame="none" />
<PackageManagers pkg='patronum' frame='none' />

## Usage

Expand Down
23 changes: 11 additions & 12 deletions documentation/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
## Next steps

<CardGrid>
<Card title="Powerful" icon="rocket">
Patronum enhances your workflows with powerful, reusable operators that streamline
complex state management tasks.
<Card title='Powerful' icon='rocket'>
Patronum enhances your workflows with powerful, reusable operators that streamline complex state management tasks.
</Card>
<Card title="Type-Safe" icon="seti:typescript">
Leverage fully type-safe functions with effector patronum to ensure robustness and
prevent runtime errors in your application.
<Card title='Type-Safe' icon='seti:typescript'>
Leverage fully type-safe functions with effector patronum to ensure robustness and prevent runtime errors in your
application.
</Card>
<Card title="Seamless Integration" icon="setting">
Patronum integrates effortlessly with your existing effector logic, adding
modularity without the need for extensive refactoring.
<Card title='Seamless Integration' icon='setting'>
Patronum integrates effortlessly with your existing effector logic, adding modularity without the need for extensive
refactoring.
</Card>
<Card title="Tree Shaking Friendly" icon="heart">
Patronum is designed with tree shaking in mind, ensuring that your bundle size
remains minimal by including only the code you actually use.
<Card title='Tree Shaking Friendly' icon='heart'>
Patronum is designed with tree shaking in mind, ensuring that your bundle size remains minimal by including only the
code you actually use.
</Card>
</CardGrid>
18 changes: 10 additions & 8 deletions documentation/src/pages/docs/[operator].astro
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
---
import { getCollection, getEntry, render } from "astro:content";
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
import { getCollection, getEntry } from 'astro:content';
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
export async function getStaticPaths() {
const operators = await getCollection("operators");
const operators = await getCollection('operators');
return operators.map((operator) => ({
params: { operator: operator.data.slug },
}));
}
const operator = await getEntry("operators", Astro.params.operator);
const operator = await getEntry('operators', Astro.params.operator);
---

<meta http-equiv="refresh" content={`0;url=/operators/${operator.data.slug}`} />
<meta name="robots" content="noindex" />
<StarlightPage frontmatter={{...operator.data, pagefind: false}}>
<meta http-equiv='refresh' content={`0;url=/operators/${operator.data.slug}`} />
<meta name='robots' content='noindex' />
<StarlightPage frontmatter={{ ...operator.data, pagefind: false }}>
<!-- exclude this page from pagefind indexing -->
<p>Redirecting to <a href="/operators/{operator.data.slug}">/operators/{operator.data.slug}</a></p>
<p>
Redirecting to <a href={`/operators/${operator.data.slug}`}>/operators/{operator.data.slug}</a>
</p>
</StarlightPage>
8 changes: 4 additions & 4 deletions documentation/src/pages/operators/[operator].astro
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
import { getCollection, getEntry, render } from "astro:content";
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
import { getCollection, getEntry, render } from 'astro:content';
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
export async function getStaticPaths() {
const operators = await getCollection("operators");
const operators = await getCollection('operators');
return operators.map((operator) => ({
params: { operator: operator.data.slug },
}));
}
const operator = await getEntry("operators", Astro.params.operator);
const operator = await getEntry('operators', Astro.params.operator);
const { Content, headings } = await render(operator);
---

Expand Down

0 comments on commit 176cf5f

Please sign in to comment.