Skip to content

Commit f8def0b

Browse files
authored
Merge pull request #144 from USACE-RMC/feature/web-applications-and-services
[Content] Add the Web Applications and Services section and Coming Soon stubs for the DST documentation plan
2 parents 2932404 + d4bc0f8 commit f8def0b

10 files changed

Lines changed: 275 additions & 31 deletions

File tree

‎.claude/skills/new-doc/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ask: "Which category does this document belong to?"
2020
Present these options:
2121
1. **Desktop Applications** (`desktop-applications/`)
2222
2. **Toolbox Technical Manuals** (`toolbox-technical-manuals/`)
23-
3. **Web Applications** (`web-applications/`)
23+
3. **Web Applications and Services** (`web-applications/`)
2424
4. **Developer Resources** (`dev/`)
2525

2626
### 1b — Software Product
@@ -332,7 +332,7 @@ If the user chose to add the document to the header nav, edit `src/theme/Layout/
332332

333333
### Add a version variable (non-dev versioned docs only):
334334

335-
In the appropriate section (Desktop Applications, Toolbox, Web Applications), add a new `const` for the document href:
335+
In the appropriate section (Desktop Applications, Toolbox, Web Applications and Services), add a new `const` for the document href:
336336
```javascript
337337
const {camelCaseVarName}Href = useBaseUrl(
338338
`/docs/{category}/{software}/{slug}/${latestVersions['{category}/{software}/{slug}'] || 'v{version}'}/preface`,

‎docs/web-applications/dst/users-guide/v1.0/users-guide.mdx‎

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

‎package-lock.json‎

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"glob": "^11.0.1",
3838
"gray-matter": "^4.0.3",
3939
"image-size": "^2.0.2",
40+
"lucide-react": "^1.49.0",
4041
"lunr": "^2.3.9",
4142
"markdown-it-cite": "^0.0.2",
4243
"mermaid": "^11.12.0",
@@ -53,14 +54,14 @@
5354
"@docusaurus/module-type-aliases": "^3.10.2",
5455
"@docusaurus/types": "^3.10.2",
5556
"@tailwindcss/postcss": "^4.1.11",
57+
"acorn": "8.18.0",
5658
"autoprefixer": "^10.4.21",
5759
"baseline-browser-mapping": "^2.9.19",
5860
"cross-env": "^7.0.3",
5961
"ffmpeg-static": "^5.3.0",
6062
"postcss": "^8.5.6",
6163
"prettier": "3.9.6",
62-
"prettier-plugin-tailwindcss": "^0.6.14",
63-
"acorn": "8.18.0"
64+
"prettier-plugin-tailwindcss": "^0.6.14"
6465
},
6566
"browserslist": {
6667
"production": [

‎src/components/SiteTour.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const buildSteps = (baseUrl, tier) => {
5959
{
6060
title: 'Main Navigation',
6161
content:
62-
'The navigation organizes all documentation into three categories: Desktop Applications, Toolbox Technical Manuals, and Web Applications. Each category expands to reveal available tools and their documents. Helpful resources can also be accessed from the navigation.',
62+
'The navigation organizes all documentation into three categories: Desktop Applications, Toolbox Technical Manuals, and Web Applications and Services. Each category expands to reveal available tools and their documents. Helpful resources can also be accessed from the navigation.',
6363
selector: 'header.gw-sticky .md\\:gw-hidden',
6464
selectorFallback: 'header.gw-sticky .gw-bg-nav-black',
6565
padding: { top: 4, right: 4, bottom: 4, left: 4 },
@@ -69,12 +69,12 @@ const buildSteps = (baseUrl, tier) => {
6969
tablet: {
7070
title: 'Menu Navigation',
7171
content:
72-
'Tap the menu icon to open the navigation drawer. It organizes all documentation into three categories: Desktop Applications, Toolbox Technical Manuals, and Web Applications. Each category expands to reveal available tools and documents.',
72+
'Tap the menu icon to open the navigation drawer. It organizes all documentation into three categories: Desktop Applications, Toolbox Technical Manuals, and Web Applications and Services. Each category expands to reveal available tools and documents.',
7373
},
7474
phone: {
7575
title: 'Menu Navigation',
7676
content:
77-
'Tap the menu icon to open the navigation drawer. It lists all documentation organized by category: Desktop Applications, Toolbox Technical Manuals, and Web Applications.',
77+
'Tap the menu icon to open the navigation drawer. It lists all documentation organized by category: Desktop Applications, Toolbox Technical Manuals, and Web Applications and Services.',
7878
},
7979
},
8080

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { ChartSpline } from 'lucide-react';
2+
import { useId } from 'react';
3+
4+
const FILLED_VIEWBOX = '0 0 562.04 562.04';
5+
const GLYPH_SIZE = 300;
6+
const GLYPH_OFFSET = (562.04 - GLYPH_SIZE) / 2;
7+
8+
export default function SystemResponseIcon({ className = '', color = 'currentColor', size = 48, showBackground = true }) {
9+
const id = useId();
10+
const gradientId = `system-response-grad${id}`;
11+
const filterId = `system-response-shadow${id}`;
12+
13+
if (!showBackground) {
14+
return <ChartSpline className={className} color={color} size={size} aria-hidden="true" />;
15+
}
16+
17+
return (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
viewBox={FILLED_VIEWBOX}
21+
width={size}
22+
height={size}
23+
className={className}
24+
overflow="visible"
25+
aria-hidden="true"
26+
>
27+
<defs>
28+
<linearGradient id={gradientId} x1="0" y1="0" x2="1" y2="1">
29+
<stop offset="0%" stopColor="#2a5068" />
30+
<stop offset="50%" stopColor="#4a7c9b" />
31+
<stop offset="100%" stopColor="#7fb5d0" />
32+
</linearGradient>
33+
<filter id={filterId}>
34+
<feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#1E3A4F" floodOpacity="0.3" />
35+
</filter>
36+
</defs>
37+
<circle cx="281.02" cy="281.02" r="281.02" fill={`url(#${gradientId})`} filter={`url(#${filterId})`} />
38+
<ChartSpline x={GLYPH_OFFSET} y={GLYPH_OFFSET} size={GLYPH_SIZE} color="white" />
39+
</svg>
40+
);
41+
}

‎src/docConfig.js‎

Lines changed: 142 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,155 @@ const docs = [
289289
draft: false,
290290
},
291291

292-
// --- Web Applications: DST ---
292+
// --- Web Applications and Services: DST ---
293293
{
294294
category: 'web-applications',
295295
software: 'dst',
296296
doc_location: 'web-applications/dst/users-guide',
297-
doc_name: 'Dam Screening Tool Users Guide',
297+
doc_name: "Dam Screening Tool User's Guide",
298+
active: false,
299+
draft: true,
300+
},
301+
{
302+
category: 'web-applications',
303+
software: 'dst',
304+
doc_location: 'web-applications/dst/technical-reference-manual',
305+
doc_name: 'Dam Screening Tool Technical Reference Manual',
306+
active: false,
307+
draft: true,
308+
},
309+
{
310+
category: 'web-applications',
311+
software: 'dst',
312+
doc_location: 'web-applications/dst/applications-guide',
313+
doc_name: 'Dam Screening Tool Applications Guide',
314+
active: false,
315+
draft: true,
316+
},
317+
318+
// --- Web Applications and Services: System Response Library ---
319+
{
320+
category: 'web-applications',
321+
software: 'system-response',
322+
doc_location: 'web-applications/system-response/overtopping-erosion-screening',
323+
doc_name: 'Overtopping Erosion Screening Technical Reference Manual',
324+
active: false,
325+
draft: true,
326+
},
327+
{
328+
category: 'web-applications',
329+
software: 'system-response',
330+
doc_location: 'web-applications/system-response/backward-erosion-piping-screening',
331+
doc_name: 'Backward Erosion Piping Screening Technical Reference Manual',
332+
active: false,
333+
draft: true,
334+
},
335+
{
336+
category: 'web-applications',
337+
software: 'system-response',
338+
doc_location: 'web-applications/system-response/continuation-screening',
339+
doc_name: 'Continuation (Filter Evaluation) Screening Technical Reference Manual',
340+
active: false,
341+
draft: true,
342+
},
343+
{
344+
category: 'web-applications',
345+
software: 'system-response',
346+
doc_location: 'web-applications/system-response/cle-common-methods-screening',
347+
doc_name: 'Concentrated Leak Erosion Common Methods Screening Technical Reference Manual',
348+
active: false,
349+
draft: true,
350+
},
351+
{
352+
category: 'web-applications',
353+
software: 'system-response',
354+
doc_location: 'web-applications/system-response/cle-cross-valley-settlement-screening',
355+
doc_name: 'CLE Cross-Valley Settlement Screening Technical Reference Manual',
356+
active: false,
357+
draft: true,
358+
},
359+
{
360+
category: 'web-applications',
361+
software: 'system-response',
362+
doc_location: 'web-applications/system-response/cle-wall-cliff-settlement-screening',
363+
doc_name: 'CLE Wall/Cliff Settlement Screening Technical Reference Manual',
364+
active: false,
365+
draft: true,
366+
},
367+
{
368+
category: 'web-applications',
369+
software: 'system-response',
370+
doc_location: 'web-applications/system-response/cle-core-compaction-screening',
371+
doc_name: 'CLE Core Compaction Screening Technical Reference Manual',
372+
active: false,
373+
draft: true,
374+
},
375+
{
376+
category: 'web-applications',
377+
software: 'system-response',
378+
doc_location: 'web-applications/system-response/cle-conduit-compaction-screening',
379+
doc_name: 'CLE Conduit Compaction Screening Technical Reference Manual',
380+
active: false,
381+
draft: true,
382+
},
383+
{
384+
category: 'web-applications',
385+
software: 'system-response',
386+
doc_location: 'web-applications/system-response/cle-wall-cliff-compaction-screening',
387+
doc_name: 'CLE Wall/Cliff Compaction Screening Technical Reference Manual',
388+
active: false,
389+
draft: true,
390+
},
391+
{
392+
category: 'web-applications',
393+
software: 'system-response',
394+
doc_location: 'web-applications/system-response/cle-foundation-abutment-compaction-screening',
395+
doc_name: 'CLE Foundation/Abutment Compaction Screening Technical Reference Manual',
396+
active: false,
397+
draft: true,
398+
},
399+
{
400+
category: 'web-applications',
401+
software: 'system-response',
402+
doc_location: 'web-applications/system-response/cle-desiccation-screening',
403+
doc_name: 'CLE Desiccation Screening Technical Reference Manual',
404+
active: false,
405+
draft: true,
406+
},
407+
{
408+
category: 'web-applications',
409+
software: 'system-response',
410+
doc_location: 'web-applications/system-response/cle-freezing-screening',
411+
doc_name: 'CLE Freezing Screening Technical Reference Manual',
412+
active: false,
413+
draft: true,
414+
},
415+
{
416+
category: 'web-applications',
417+
software: 'system-response',
418+
doc_location: 'web-applications/system-response/gravity-dam-stability-screening',
419+
doc_name: 'Gravity Dam Stability Screening Technical Reference Manual',
420+
active: false,
421+
draft: true,
422+
},
423+
{
424+
category: 'web-applications',
425+
software: 'system-response',
426+
doc_location: 'web-applications/system-response/verification-report',
427+
doc_name: 'System Response Library Verification Report',
428+
active: false,
429+
draft: true,
430+
},
431+
{
432+
category: 'web-applications',
433+
software: 'system-response',
434+
doc_location: 'web-applications/system-response/integration-guide',
435+
doc_name: 'System Response Library Integration Guide',
298436
active: false,
299437
draft: true,
300438
},
301439

302-
// --- Web Applications: LST ---
440+
// --- Web Applications and Services: LST ---
303441
{
304442
category: 'web-applications',
305443
software: 'lst',
@@ -309,7 +447,7 @@ const docs = [
309447
draft: true,
310448
},
311449

312-
// --- Web Applications: RRFT ---
450+
// --- Web Applications and Services: RRFT ---
313451
{
314452
category: 'web-applications',
315453
software: 'rrft',

‎src/pages/index.js‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import RRFTIcon from '../components/icons/RRFTIcon';
1313
import SeismicHazardIcon from '../components/icons/SeismicHazardIcon';
1414
import SpillwayErosionIcon from '../components/icons/SpillwayErosionIcon';
1515
import StructuralIcon from '../components/icons/StructuralIcon';
16+
import SystemResponseIcon from '../components/icons/SystemResponseIcon';
1617
import ToolboxIcon from '../components/icons/ToolboxIcon';
1718
import WebAppIcon from '../components/icons/WebAppIcon';
1819
import TourButton from '../components/TourButton';
@@ -115,7 +116,7 @@ export default function Home() {
115116
},
116117
{
117118
IconComponent: WebAppIcon,
118-
doc_name: 'Web Applications',
119+
doc_name: 'Web Applications and Services',
119120
contentCardData: [
120121
{
121122
IconComponent: RRFTIcon,
@@ -138,6 +139,13 @@ export default function Home() {
138139
href: addBaseUrl('web-applications/dst'),
139140
active: false,
140141
},
142+
{
143+
IconComponent: SystemResponseIcon,
144+
title: 'System Response Library',
145+
description: 'System response models for screening',
146+
href: addBaseUrl('web-applications/system-response'),
147+
active: false,
148+
},
141149
],
142150
},
143151
];

0 commit comments

Comments
 (0)