Skip to content

Commit 98ef749

Browse files
authored
Merge pull request #201 from deploystackio/main
prod deployment
2 parents bb8f780 + 6861061 commit 98ef749

File tree

6 files changed

+660
-115
lines changed

6 files changed

+660
-115
lines changed

check-links.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ import fetch from 'node-fetch';
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
88

9+
// URLs to ignore during external link checking
10+
const IGNORED_URLS = [
11+
'https://deploystack.io',
12+
'https://deploystack.io/*',
13+
'https://cloud.deploystack.io'
14+
];
15+
16+
// Check if a URL should be ignored
17+
const shouldIgnoreUrl = (url) => {
18+
for (const pattern of IGNORED_URLS) {
19+
if (pattern.endsWith('/*')) {
20+
// Handle wildcard patterns
21+
const baseUrl = pattern.slice(0, -2); // Remove /*
22+
if (url === baseUrl || url.startsWith(baseUrl + '/')) {
23+
return true;
24+
}
25+
} else {
26+
// Handle exact matches
27+
if (url === pattern) {
28+
return true;
29+
}
30+
}
31+
}
32+
return false;
33+
};
34+
935
// Read a markdown file and extract all markdown links
1036
const extractLinks = (content) => {
1137
const linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
@@ -82,6 +108,12 @@ const checkExternalUrl = async (url) => {
82108
return true;
83109
}
84110

111+
// Check if URL should be ignored
112+
if (shouldIgnoreUrl(url)) {
113+
console.log(` ➡️ ${url} (ignored)`);
114+
return true;
115+
}
116+
85117
try {
86118
const response = await fetch(url, {
87119
method: 'HEAD',

docs/development/frontend/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ For table-specific implementations, refer to the [Table Design System](/developm
7474

7575
The frontend uses **TailwindCSS** for styling with **shadcn-vue** component library for consistent UI elements. For comprehensive styling guidelines, component patterns, and design standards, see the [UI Design System](/development/frontend/ui-design-system) documentation.
7676

77+
### ⚠️ **Mandatory Design Patterns**
78+
79+
All structured information displays must follow the **[Structured Data Display Pattern](/development/frontend/ui-design-system-structured-data)**. This includes:
80+
- User profiles and settings
81+
- Form layouts
82+
- Configuration displays
83+
- Installation details
84+
- Any information presented in label-value pairs
85+
86+
This pattern ensures visual consistency across the entire application.
87+
7788
## Environment Configuration
7889

7990
The frontend uses a sophisticated environment variable system that works seamlessly across development and production environments. For complete details on configuring and using environment variables, see the dedicated [Environment Variables Guide](/development/frontend/environment-variables).
@@ -115,6 +126,7 @@ Continue reading the detailed guides:
115126

116127
- [Frontend Architecture](/development/frontend/architecture) - Application architecture, patterns, and development principles
117128
- [UI Design System](/development/frontend/ui-design-system) - Component patterns, styling guidelines, and design standards
129+
- **[Structured Data Display Pattern](/development/frontend/ui-design-system-structured-data)** - **Mandatory pattern** for consistent information display
118130
- [Environment Variables](/development/frontend/environment-variables) - Complete environment configuration guide
119131
- [Global Event Bus](/development/frontend/event-bus) - Cross-component communication system
120132
- [Internationalization (i18n)](/development/frontend/internationalization) - Multi-language support

0 commit comments

Comments
 (0)