Skip to content

Commit e47941f

Browse files
authored
fix: newsletter form -> contact form (#101)
1 parent 7106277 commit e47941f

18 files changed

+832
-880
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"printWidth": 80,
33
"singleQuote": true,
44
"overrides": [
5+
{
6+
"files": [".imgbotconfig", ".eslintrc", ".prettierrc"],
7+
"options": { "parser": "json" }
8+
},
59
{
610
"files": ["*.md", "*.mdx"],
711
"options": {

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
},
55
"editor.defaultFormatter": "esbenp.prettier-vscode",
66
"editor.formatOnSave": true,
7+
"eslint.runtime": "node",
8+
"eslint.execArgv": ["--max_old_space_size=8192"],
9+
"files.associations": {
10+
".mdx": "md"
11+
},
712
"[python]": {
813
"editor.defaultFormatter": null
914
},
1015
"python.formatting.blackArgs": ["--line-length", "120"],
11-
"python.formatting.provider": "black"
16+
"python.formatting.provider": "black",
17+
"[css]": {
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
19+
}
1220
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ sources:
3838
3939
:::tip
4040
41-
When collecting multiple accounts, the `role` and `scrape_org` options instruct Cloud2SQL to fetch the list of all organization accounts and specify a role to assume. Alternatively, you can specify the list of accounts to collect using the `profiles` option if those profiles have been defined in your [AWS CLI config file](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html).
41+
When collecting multiple accounts, the `role` and `scrape_org` options instruct Cloud2SQL to fetch the list of all organization accounts and specify a role to assume.
42+
43+
Alternatively, you can specify the list of accounts to collect using the `profiles` option if those profiles have been defined in your [AWS CLI config file](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html).
4244

4345
:::
4446

docs/index.md renamed to docs/index.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ title: Documentation
99

1010
```mdx-code-block
1111
import AsciinemaPlayer from '@site/src/components/AsciinemaPlayer';
12-
/* import DocCardList from '@theme/DocCardList'; */
13-
/* import {useDocsSidebar} from '@docusaurus/theme-common/internal'; */
1412
```
1513

1614
Cloud2SQL is a tool based on [Resoto](https://resoto.com)'s collector plugins that allows you to collect data from various cloud infrastructure sources and export it to a database (like [Snowflake](https://snowflake.com), [PostgreSQL](https://postgresql.org), [MariaDB](https://mariadb.org), or [MySQL](https://mysql.com)) or write it as [Parquet](https://parquet.apache.org), [SQLite](https://sqlite.org), or [<abbr title="comma-separated values">CSV</abbr>](https://en.wikipedia.org/wiki/Comma-separated_values) files for ingestion in your data lake.
1715

1816
<p><AsciinemaPlayer src={require('./asciinema/cloud2sql.cast').default} cols={80} rows={20} preload={true} autoPlay={true} loop={true} controls={false} /></p>
19-
20-
<!-- <DocCardList items={useDocsSidebar().items.slice(1)} /> -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The installation process will take a couple of minutes.
2828
## Python pip (Linux, Windows, macOS) {#pip}
2929

3030
<Tabs>
31+
3132
<TabItem value="user" label="User">
3233

3334
The below command will install the `cloud2sql` command to `~/.local/bin/` on Linux, `~/Library/Python/3.<version>/bin/` on macOS, or `%APPDATA%\Python\bin\` on Windows. (Make sure those directories are part of your `PATH` environment variable.)
@@ -43,6 +44,7 @@ If you are unsure where pip installs user packages, you can run `python3 -m site
4344
:::
4445

4546
</TabItem>
47+
4648
<TabItem value="windows" label="Virtual Environment">
4749

4850
The following set of commands will install the `cloud2sql` command to the `cloud2sql-venv` virtual environment, which can be activated using `source cloud2sql-venv/bin/activate`.
@@ -54,6 +56,7 @@ $ pip3 install 'cloud2sql[all]'
5456
```
5557

5658
</TabItem>
59+
5760
</Tabs>
5861

5962
:::note
File renamed without changes.

docusaurus.config.js

Lines changed: 40 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,10 @@ const config = {
8787
swRegister: false,
8888
swCustom: require.resolve('./src/sw.js'),
8989
pwaHead: [
90-
{
91-
tagName: 'link',
92-
rel: 'manifest',
93-
href: 'site.webmanifest',
94-
},
95-
{
96-
tagName: 'link',
97-
rel: 'icon',
98-
href: 'img/icon-192.maskable.png',
99-
},
100-
{
101-
tagName: 'link',
102-
rel: 'icon',
103-
href: 'img/icon-512.maskable.png',
104-
},
105-
{
106-
tagName: 'meta',
107-
name: 'theme-color',
108-
content: '#89d1f1',
109-
},
90+
{ tagName: 'link', rel: 'manifest', href: 'site.webmanifest' },
91+
{ tagName: 'link', rel: 'icon', href: 'img/icon-192.maskable.png' },
92+
{ tagName: 'link', rel: 'icon', href: 'img/icon-512.maskable.png' },
93+
{ tagName: 'meta', name: 'theme-color', content: '#89d1f1' },
11094
{
11195
tagName: 'meta',
11296
name: 'apple-mobile-web-app-capable',
@@ -144,10 +128,7 @@ const config = {
144128
content:
145129
'Extract your infrastructure data to a SQL database. Open source and free to use.',
146130
},
147-
{
148-
property: 'og:type',
149-
content: 'website',
150-
},
131+
{ property: 'og:type', content: 'website' },
151132
],
152133
tableOfContents: {
153134
minHeadingLevel: 2,
@@ -160,43 +141,27 @@ const config = {
160141
navbar: {
161142
hideOnScroll: true,
162143
title: 'Cloud2SQL',
163-
logo: {
164-
alt: '',
165-
src: 'img/navbar-logo.svg',
166-
},
144+
logo: { alt: '', src: 'img/navbar-logo.svg' },
167145
items: [
168146
{
169147
label: 'Docs',
170148
to: '/docs',
171149
position: 'right',
172150
items: [
173-
{
174-
label: 'Installation',
175-
to: '/docs/installation',
176-
},
177-
{
178-
label: 'Configuration',
179-
to: '/docs/configuration',
180-
},
181-
{
182-
label: 'Resource Collection',
183-
to: '/docs/resource-collection',
184-
},
151+
{ label: 'Installation', to: '/docs/installation' },
152+
{ label: 'Configuration', to: '/docs/configuration' },
153+
{ label: 'Resource Collection', to: '/docs/resource-collection' },
185154
],
186155
},
156+
{ label: 'Blog', href: 'https://resoto.com/blog', position: 'right' },
187157
{
188-
label: 'Releases',
189-
href: 'https://github.com/someengineering/cloud2sql/releases',
190-
position: 'right',
191-
},
192-
{
193-
label: 'Blog',
194-
href: 'https://resoto.com/blog',
158+
label: 'Podcast',
159+
href: 'https://resoto.com/podcast',
195160
position: 'right',
196161
},
197162
{
198163
label: 'GitHub',
199-
href: 'https://github.com/someengineering/cloud2sql',
164+
href: 'https://github.com/someengineering/resoto',
200165
position: 'left',
201166
className: 'navbar-icon-link navbar-github-link',
202167
'aria-label': 'GitHub',
@@ -215,6 +180,13 @@ const config = {
215180
className: 'navbar-icon-link navbar-linkedin-link',
216181
'aria-label': 'LinkedIn',
217182
},
183+
{
184+
label: 'YouTube',
185+
href: 'https://youtube.com/@someengineering',
186+
position: 'left',
187+
className: 'navbar-icon-link navbar-youtube-link',
188+
'aria-label': 'YouTube',
189+
},
218190
],
219191
},
220192
footer: {
@@ -223,73 +195,43 @@ const config = {
223195
{
224196
title: 'Documentation',
225197
items: [
226-
{
227-
label: 'Overview',
228-
to: '/docs',
229-
},
230-
{
231-
label: 'Installation',
232-
to: '/docs/installation',
233-
},
234-
{
235-
label: 'Configuration',
236-
to: '/docs/configuration',
237-
},
238-
{
239-
label: 'Resource Collection',
240-
to: '/docs/resource-collection',
241-
},
198+
{ label: 'Overview', to: '/docs' },
199+
{ label: 'Installation', to: '/docs/installation' },
200+
{ label: 'Configuration', to: '/docs/configuration' },
201+
{ label: 'Resource Collection', to: '/docs/resource-collection' },
242202
],
243203
},
244204
{
245-
title: 'Community',
205+
title: 'More',
246206
items: [
247207
{
248-
label: 'Code of Conduct',
249-
to: '/code-of-conduct',
250-
},
251-
{
252-
label: 'GitHub',
253-
href: 'https://github.com/someengineering',
254-
},
255-
{
256-
label: 'Discord',
257-
href: 'https://discord.gg/someengineering',
258-
},
259-
{
260-
label: 'LinkedIn',
261-
href: 'https://linkedin.com/company/someengineering',
208+
label: 'Releases',
209+
href: 'https://github.com/someengineering/cloud2sql/releases',
262210
},
211+
{ label: 'Blog', href: 'https://resoto.com/blog' },
212+
{ label: 'Podcast', href: 'https://resoto.com/podcast' },
263213
],
264214
},
265215
{
266-
title: 'More',
216+
title: 'Community',
267217
items: [
218+
{ label: 'GitHub', href: 'https://github.com/someengineering' },
219+
{ label: 'Discord', href: 'https://discord.gg/someengineering' },
268220
{
269-
label: 'Releases',
270-
href: 'https://github.com/someengineering/cloud2sql/releases',
271-
},
272-
{
273-
label: 'Blog',
274-
href: 'https://resoto.com/blog',
221+
label: 'LinkedIn',
222+
href: 'https://linkedin.com/company/someengineering',
275223
},
276224
{
277-
label: 'Podcast',
278-
href: 'https://resoto.com/podcast',
225+
label: 'YouTube',
226+
href: 'https://youtube.com/@someengineering',
279227
},
280228
],
281229
},
282230
{
283231
title: 'Legal',
284232
items: [
285-
{
286-
label: 'Privacy Policy',
287-
to: '/privacy',
288-
},
289-
{
290-
label: 'Terms and Conditions',
291-
to: '/terms',
292-
},
233+
{ label: 'Privacy Policy', to: '/privacy' },
234+
{ label: 'Terms and Conditions', to: '/terms' },
293235
],
294236
},
295237
],
@@ -302,8 +244,8 @@ const config = {
302244
contextualSearch: true,
303245
},
304246
prism: {
305-
theme: require('prism-react-renderer/themes/github'),
306-
darkTheme: require('./src/utils/prismDark.js'),
247+
theme: require('prism-react-renderer').themes.github,
248+
darkTheme: require('prism-react-renderer').themes.dracula,
307249
},
308250
magicComments: [
309251
{

netlify/functions/submission-created.ts

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

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,28 @@
3232
"@docusaurus/theme-mermaid": "2.4.1",
3333
"@fec/remark-a11y-emoji": "3.1.0",
3434
"@mdx-js/react": "1.6.22",
35-
"@netlify/functions": "1.6.0",
3635
"@octokit/core": "4.2.1",
3736
"a11y-react-emoji": "1.2.0",
3837
"clsx": "1.2.1",
39-
"formik": "2.2.9",
38+
"formik": "2.4.0",
4039
"netlify-plugin-cache": "1.0.3",
41-
"prism-react-renderer": "1.3.5",
40+
"prism-react-renderer": "2.0.4",
4241
"react": "18.2.0",
4342
"react-dom": "18.2.0",
4443
"react-netlify-forms": "1.3.3",
4544
"url-loader": "4.1.1",
46-
"workbox-routing": "6.5.4",
47-
"workbox-strategies": "6.5.4",
48-
"yup": "1.1.1"
45+
"workbox-routing": "7.0.0",
46+
"workbox-strategies": "7.0.0",
47+
"yup": "1.2.0"
4948
},
5049
"devDependencies": {
51-
"@commitlint/cli": "17.6.3",
52-
"@commitlint/config-conventional": "17.6.3",
50+
"@commitlint/cli": "17.6.5",
51+
"@commitlint/config-conventional": "17.6.5",
5352
"@docusaurus/module-type-aliases": "2.4.1",
5453
"@docusaurus/types": "2.4.1",
5554
"@tsconfig/docusaurus": "1.0.7",
56-
"@typescript-eslint/eslint-plugin": "5.59.7",
57-
"@typescript-eslint/parser": "5.59.7",
55+
"@typescript-eslint/eslint-plugin": "5.59.8",
56+
"@typescript-eslint/parser": "5.59.8",
5857
"asciinema-player": "3.4.0",
5958
"commitizen": "4.3.0",
6059
"eslint": "8.41.0",

0 commit comments

Comments
 (0)