Skip to content

Commit a2c0779

Browse files
committed
Use Prettier to format MD, TSX, JSON, etc. files
1 parent b8714a1 commit a2c0779

File tree

11 files changed

+201
-163
lines changed

11 files changed

+201
-163
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The website is hosted on [GitHub Pages](https://pages.github.com/).
66

77
# Table of contents
88

9+
<!-- prettier-ignore-start -->
10+
911
<!-- TOC -->
1012
* [lbl-rse.github.io](#lbl-rsegithubio)
1113
* [Table of contents](#table-of-contents)
@@ -31,6 +33,8 @@ The website is hosted on [GitHub Pages](https://pages.github.com/).
3133
* [Publishing](#publishing)
3234
<!-- TOC -->
3335

36+
<!-- prettier-ignore-end -->
37+
3438
# Contributing
3539

3640
## Local development
@@ -102,7 +106,7 @@ is a snippet of metadata about the page. Many Markdown files in this repository
102106
### About > Members (`/docs/About/members`)
103107

104108
You can edit this page by editing the file, `docs/About/members.mdx`. This is an [MDX](https://mdxjs.com/) file, which
105-
is a type of file that can contain both Markdown and [JSX](https://en.wikipedia.org/wiki/JSX_(JavaScript)). JSX is the
109+
is a type of file that can contain both Markdown and [JSX](<https://en.wikipedia.org/wiki/JSX_(JavaScript)>). JSX is the
106110
file format in which React user interface elements are typically implemented.
107111

108112
### About > Roadmap (`/docs/About/roadmap`)
@@ -192,4 +196,4 @@ and request some reviews of the PR.
192196

193197
Once the branch eventually gets merged into `main`, a GitHub Actions workflow will automatically generate a
194198
production build of the website and deploy it to GitHub Pages.
195-
That GitHub Actions workflow is defined in the file, `.github/workflows/deploy.yaml`.
199+
That GitHub Actions workflow is defined in the file, `.github/workflows/deploy.yaml`.

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

blog/2024-08-15-website/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
slug: website
33
title: Website
4-
authors: [ ernest_o_lawrence ]
5-
tags: [ journal ]
4+
authors: [ernest_o_lawrence]
5+
tags: [journal]
66
---
77

88
We're building a website using Docusaurus.
@@ -24,4 +24,4 @@ print(num_things_negated)
2424
```
2525

2626
Group members can use this to write about projects they've worked on. That can help disseminate knowledge and
27-
help with SEO.
27+
help with SEO.

blog/2024-08-16-welcome/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
slug: welcome
33
title: Welcome
4-
authors: [ ernest_o_lawrence ]
5-
tags: [ news ]
4+
authors: [ernest_o_lawrence]
5+
tags: [news]
66
---
77

88
Welcome to the website. We're still working on it.
@@ -15,4 +15,3 @@ securing funding, announcing an event.
1515
We can embed images, too—whether hosted locally or by a third party.
1616

1717
![Placeholder image](https://images.pexels.com/photos/3374210/pexels-photo-3374210.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2)
18-

docs/About/members.mdx

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,54 @@ Note: This is the implementation of a React component.
1111
repetition of Markdown or HTML snippets.
1212
Reference: https://docusaurus.io/docs/markdown-features/react
1313
-->
14-
export const Member = ({name, role, avatarUrl}) => (
15-
<div style={{display: "inline-block", marginRight: 8, marginBottom: 24, maxWidth: 150, verticalAlign: "top"}}>
16-
<div
17-
style={{
18-
backgroundImage: `url(${avatarUrl})`,
19-
backgroundSize: "cover",
20-
backgroundRepeat: "no-repeat",
21-
backgroundPositionY: "center",
22-
height: 150,
23-
width: 150,
24-
}}
25-
/>
26-
<div className={"text--semibold"}>{name}</div>
27-
<div><small>{role}</small></div>
14+
15+
export const Member = ({ name, role, avatarUrl }) => (
16+
<div
17+
style={{
18+
display: "inline-block",
19+
marginRight: 8,
20+
marginBottom: 24,
21+
maxWidth: 150,
22+
verticalAlign: "top",
23+
}}
24+
>
25+
<div
26+
style={{
27+
backgroundImage: `url(${avatarUrl})`,
28+
backgroundSize: "cover",
29+
backgroundRepeat: "no-repeat",
30+
backgroundPositionY: "center",
31+
height: 150,
32+
width: 150,
33+
}}
34+
/>
35+
<div className={"text--semibold"}>{name}</div>
36+
<div>
37+
<small>{role}</small>
2838
</div>
39+
</div>
2940
);
3041

31-
<Member name={"Alice Avocado"}
32-
avatarUrl={"https://images.pexels.com/photos/774909/pexels-photo-774909.jpeg?auto=compress&cs=tinysrgb&w=400&h=400&dpr=2"}
33-
role={"Advanced Light Source operator"}/>
42+
<Member
43+
name={"Alice Avocado"}
44+
avatarUrl={
45+
"https://images.pexels.com/photos/774909/pexels-photo-774909.jpeg?auto=compress&cs=tinysrgb&w=400&h=400&dpr=2"
46+
}
47+
role={"Advanced Light Source operator"}
48+
/>
3449

35-
<Member name={"Bobby Banana"}
36-
avatarUrl={"https://images.pexels.com/photos/1040880/pexels-photo-1040880.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"}
37-
role={"Bioinformaticist"}/>
50+
<Member
51+
name={"Bobby Banana"}
52+
avatarUrl={
53+
"https://images.pexels.com/photos/1040880/pexels-photo-1040880.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
54+
}
55+
role={"Bioinformaticist"}
56+
/>
3857

39-
<Member name={"Cindy Calamari"}
40-
avatarUrl={"https://images.pexels.com/photos/1130626/pexels-photo-1130626.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"}
41-
role={"Computer programmer"}/>
58+
<Member
59+
name={"Cindy Calamari"}
60+
avatarUrl={
61+
"https://images.pexels.com/photos/1130626/pexels-photo-1130626.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
62+
}
63+
role={"Computer programmer"}
64+
/>

docusaurus.config.ts

Lines changed: 72 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,57 @@
1-
import {themes as prismThemes} from 'prism-react-renderer';
2-
import type {Config} from '@docusaurus/types';
3-
import type * as Preset from '@docusaurus/preset-classic';
1+
import { themes as prismThemes } from "prism-react-renderer";
2+
import type { Config } from "@docusaurus/types";
3+
import type * as Preset from "@docusaurus/preset-classic";
44

55
const config: Config = {
6-
title: 'LBL-RSE',
7-
tagline: 'Research Software Engineer group at Lawrence Berkeley National Laboratory',
8-
favicon: 'img/favicon.ico',
6+
title: "LBL-RSE",
7+
tagline:
8+
"Research Software Engineer group at Lawrence Berkeley National Laboratory",
9+
favicon: "img/favicon.ico",
910

1011
// Set the production url of your site here
11-
url: 'https://lbl-rse.github.io',
12+
url: "https://lbl-rse.github.io",
1213
// Set the /<baseUrl>/ pathname under which your site is served
1314
// For GitHub pages deployment, it is often '/<projectName>/'
14-
baseUrl: '/',
15+
baseUrl: "/",
1516

1617
// GitHub pages deployment config.
1718
// If you aren't using GitHub pages, you don't need these.
18-
organizationName: 'lbl-rse', // Usually your GitHub org/user name.
19-
projectName: 'lbl-rse.github.io', // Usually your repo name.
19+
organizationName: "lbl-rse", // Usually your GitHub org/user name.
20+
projectName: "lbl-rse.github.io", // Usually your repo name.
2021

21-
onBrokenLinks: 'throw',
22-
onBrokenMarkdownLinks: 'warn',
22+
onBrokenLinks: "throw",
23+
onBrokenMarkdownLinks: "warn",
2324

2425
// Even if you don't use internationalization, you can use this field to set
2526
// useful metadata like html lang. For example, if your site is Chinese, you
2627
// may want to replace "en" with "zh-Hans".
2728
i18n: {
28-
defaultLocale: 'en',
29-
locales: ['en'],
29+
defaultLocale: "en",
30+
locales: ["en"],
3031
},
3132

3233
presets: [
3334
[
34-
'classic',
35+
"classic",
3536
{
3637
docs: {
37-
sidebarPath: './sidebars.ts',
38+
sidebarPath: "./sidebars.ts",
3839
// Please change this to your repo.
3940
// Remove this to remove the "edit this page" links.
40-
editUrl:
41-
'https://github.com/lbl-rse/lbl-rse.github.io/blob/main',
41+
editUrl: "https://github.com/lbl-rse/lbl-rse.github.io/blob/main",
4242
},
4343
blog: {
4444
showReadingTime: true,
4545
feedOptions: {
46-
type: ['rss', 'atom'],
46+
type: ["rss", "atom"],
4747
xslt: true,
4848
},
4949
// Please change this to your repo.
5050
// Remove this to remove the "edit this page" links.
51-
editUrl:
52-
'https://github.com/lbl-rse/lbl-rse.github.io/blob/main',
51+
editUrl: "https://github.com/lbl-rse/lbl-rse.github.io/blob/main",
5352
},
5453
theme: {
55-
customCss: './src/css/custom.css',
54+
customCss: "./src/css/custom.css",
5655
},
5756
} satisfies Preset.Options,
5857
],
@@ -64,103 +63,103 @@ const config: Config = {
6463
// Configure the navbar, which is implemented as part of the theme.
6564
// Reference: https://docusaurus.io/docs/api/themes/configuration#navbar
6665
navbar: {
67-
title: 'LBL-RSE',
66+
title: "LBL-RSE",
6867
logo: {
69-
alt: 'LBL-RSE',
70-
src: 'img/logo.svg',
68+
alt: "LBL-RSE",
69+
src: "img/logo.svg",
7170
},
7271
hideOnScroll: true,
7372
items: [
7473
{
75-
type: 'docSidebar',
76-
sidebarId: 'tutorialSidebar',
77-
position: 'left',
78-
label: 'About',
74+
type: "docSidebar",
75+
sidebarId: "tutorialSidebar",
76+
position: "left",
77+
label: "About",
7978
},
80-
{to: '/blog/tags/news', label: 'News', position: 'left'},
81-
{to: '/blog/tags/journal', label: 'Journal', position: 'left'},
79+
{ to: "/blog/tags/news", label: "News", position: "left" },
80+
{ to: "/blog/tags/journal", label: "Journal", position: "left" },
8281
{
83-
href: 'https://us-rse.org/',
84-
label: 'US-RSE',
85-
position: 'right',
82+
href: "https://us-rse.org/",
83+
label: "US-RSE",
84+
position: "right",
8685
},
8786
],
8887
},
8988
footer: {
90-
style: 'dark',
89+
style: "dark",
9190
links: [
9291
{
93-
title: 'About',
92+
title: "About",
9493
items: [
9594
{
96-
label: 'About',
97-
to: '/docs/About/overview',
98-
title: 'An overview of the group',
95+
label: "About",
96+
to: "/docs/About/overview",
97+
title: "An overview of the group",
9998
},
10099
{
101-
label: 'News',
102-
to: '/blog/tags/news',
100+
label: "News",
101+
to: "/blog/tags/news",
103102
title: "Changes to the group",
104103
},
105104
{
106-
label: 'Journal',
107-
to: '/blog/tags/journal',
108-
title: 'Engineering journal',
105+
label: "Journal",
106+
to: "/blog/tags/journal",
107+
title: "Engineering journal",
109108
},
110109
{
111-
label: 'Roadmap',
112-
to: '/docs/About/roadmap',
110+
label: "Roadmap",
111+
to: "/docs/About/roadmap",
113112
title: "Plans for the future",
114113
},
115114
],
116115
},
117116
{
118-
title: 'Connect',
117+
title: "Connect",
119118
items: [
120119
{
121-
label: 'Lightning Talks',
122-
href: 'https://sites.google.com/lbl.gov/lightningtalkslunch',
123-
title: 'Presentations given by our members',
120+
label: "Lightning Talks",
121+
href: "https://sites.google.com/lbl.gov/lightningtalkslunch",
122+
title: "Presentations given by our members",
124123
},
125124
{
126-
label: 'Google Group',
127-
href: 'https://groups.google.com/a/lbl.gov/g/lbl-rse/about',
128-
title: 'Our Google Group',
125+
label: "Google Group",
126+
href: "https://groups.google.com/a/lbl.gov/g/lbl-rse/about",
127+
title: "Our Google Group",
129128
},
130129
{
131-
label: 'GitHub',
132-
href: 'https://github.com/lbl-rse',
133-
title: 'Our GitHub organization',
130+
label: "GitHub",
131+
href: "https://github.com/lbl-rse",
132+
title: "Our GitHub organization",
134133
},
135134
{
136-
label: 'Slack',
137-
href: 'https://lbl-rse.slack.com',
138-
title: 'Our Slack workspace',
135+
label: "Slack",
136+
href: "https://lbl-rse.slack.com",
137+
title: "Our Slack workspace",
139138
},
140139
],
141140
},
142141
{
143-
title: 'Resources',
142+
title: "Resources",
144143
items: [
145144
{
146-
label: 'Berkeley Lab (LBL)',
147-
href: 'https://lbl.gov',
148-
title: 'Lawrence Berkeley National Laboratory',
145+
label: "Berkeley Lab (LBL)",
146+
href: "https://lbl.gov",
147+
title: "Lawrence Berkeley National Laboratory",
149148
},
150149
{
151-
label: 'US-RSE',
152-
href: 'https://us-rse.org/',
153-
title: 'United States Research Software Engineer Association',
150+
label: "US-RSE",
151+
href: "https://us-rse.org/",
152+
title: "United States Research Software Engineer Association",
154153
},
155154
{
156-
label: 'Press',
157-
href: 'https://crd.lbl.gov/news-and-publications/news/2024/us-rse-works-to-bring-research-software-engineers-into-the-spotlight/',
158-
title: 'LBL-RSE in the news',
155+
label: "Press",
156+
href: "https://crd.lbl.gov/news-and-publications/news/2024/us-rse-works-to-bring-research-software-engineers-into-the-spotlight/",
157+
title: "LBL-RSE in the news",
159158
},
160159
{
161-
label: 'Jobs',
162-
href: 'https://jobs.lbl.gov/jobs/search/5751125',
163-
title: 'Software jobs at Berkeley Lab',
160+
label: "Jobs",
161+
href: "https://jobs.lbl.gov/jobs/search/5751125",
162+
title: "Software jobs at Berkeley Lab",
164163
},
165164
],
166165
},
@@ -180,7 +179,7 @@ const config: Config = {
180179
markdown: {
181180
mermaid: true,
182181
},
183-
themes: ['@docusaurus/theme-mermaid'],
182+
themes: ["@docusaurus/theme-mermaid"],
184183
};
185184

186185
export default config;

0 commit comments

Comments
 (0)