Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/pr-assets/pr111-pro-after-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-assets/pr111-pro-after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-assets/pr111-pro-before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-assets/pr111-rsc-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion prototypes/docusaurus/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const config: Config = {

onBrokenLinks: 'warn',
markdown: {
mermaid: true,
hooks: {
onBrokenMarkdownLinks: 'warn',
},
Expand All @@ -68,7 +69,7 @@ const config: Config = {
locales: ['en'],
},

themes: useAlgolia ? [] : [localSearchTheme],
themes: [...(useAlgolia ? [] : [localSearchTheme]), '@docusaurus/theme-mermaid'],

presets: [
[
Expand Down
1,378 changes: 1,247 additions & 131 deletions prototypes/docusaurus/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions prototypes/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dependencies": {
"@docusaurus/core": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/theme-mermaid": "3.9.2",
"@easyops-cn/docusaurus-search-local": "^0.55.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions prototypes/docusaurus/src/constants/docsRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const docsRoutes = {
installExistingApp: '/docs/getting-started/existing-rails-app',
ossVsPro: '/docs/getting-started/oss-vs-pro',
proOverview: '/docs/pro',
proInstall: '/docs/pro/installation',
proUpgrade: '/docs/pro/upgrading-to-pro',
migrateFromReactRails: '/docs/migrating/migrating-from-react-rails',
} as const;
66 changes: 53 additions & 13 deletions prototypes/docusaurus/src/pages/pro.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
color: var(--ifm-color-primary-dark);
}

.install {
display: inline-block;
margin-top: 1rem;
padding: 0.55rem 0.8rem;
border: 1px solid var(--site-border);
border-radius: 8px;
background: var(--site-surface);
font-family: var(--ifm-font-family-monospace);
font-size: 0.9rem;
color: var(--ifm-color-content);
}

.actions {
margin-top: 1rem;
display: flex;
Expand Down Expand Up @@ -58,6 +70,13 @@
margin-bottom: 1.3rem;
}

.demoGrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.9rem;
margin: 1rem 0 1.3rem;
}

.policyCard {
border: 1px solid var(--site-border);
border-radius: 8px;
Expand Down Expand Up @@ -113,26 +132,42 @@
font-weight: 700;
}

.tableWrap {
overflow-x: auto;
.cardGrid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.9rem;
margin: 1rem 0 1.3rem;
}

.featureCard {
flex: 0 1 calc((100% - 1.8rem) / 3);
border: 1px solid var(--site-border);
border-radius: 8px;
background: var(--site-surface);
padding: 0.95rem;
}

.table {
width: 100%;
border-collapse: collapse;
.featureCard h3 {
margin: 0 0 0.35rem;
font-size: 1.02rem;
}

.table th,
.table td {
padding: 0.7rem;
border-bottom: 1px solid var(--site-border);
text-align: left;
.featureCard p {
margin: 0;
color: var(--ifm-color-content-secondary);
}

.table th {
background: var(--site-soft-surface);
.cardLinks {
display: flex;
flex-wrap: wrap;
gap: 1.1rem;
margin-top: 0.65rem;
}

.cardLink {
display: inline-block;
font-weight: 600;
}

.note {
Expand All @@ -146,7 +181,12 @@
align-items: flex-start;
}

.grid {
.grid,
.demoGrid {
grid-template-columns: 1fr;
}

.featureCard {
flex-basis: 100%;
}
}
Loading
Loading