You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document provides instructions for Large Language Models (LLMs) contributing to the Layer5 website, hosted at https://github.com/layer5io/layer5, built with Gatsby.js. These guidelines ensure consistency, quality, and alignment with the project's goals of promoting cloud native infrastructure management through clear documentation and user-friendly content.
4
+
5
+
## Project Overview
6
+
7
+
The Layer5 website (https://layer5.io) is a Gatsby.js-based static site that serves as the primary interface for the Layer5 community. It showcases projects like Meshery, Kanvas, and Cloud Native Patterns, and provides resources for contributors, users, and cloud native enthusiasts. The site emphasizes clean design, fast performance, and accessibility.
8
+
9
+
## Instructions for LLMs
10
+
11
+
### 1. Content Generation Guidelines
12
+
13
+
-**Tone and Style**: Use a professional yet approachable tone. Content should be clear, concise, and welcoming to both technical and non-technical audiences. Align with Layer5's mission of empowering engineers to "expect more from their infrastructure."
14
+
-**Markdown Usage**: All content must be written in Markdown, adhering to Gatsby's content structure (e.g., MDX files in `src/pages` or `src/content`).
15
+
-**Frontmatter**: Include appropriate frontmatter in MDX files. Example:
16
+
17
+
```yaml
18
+
---
19
+
title: "Page Title"
20
+
path: "/path/to/page"
21
+
date: "2025-09-23"
22
+
description: "Short description for SEO."
23
+
---
24
+
```
25
+
-**SEO Optimization**: Ensure all generated content includes meta descriptions, relevant keywords (e.g., "cloud native," "Meshery," "service mesh"), and proper heading structures (H1, H2, etc.).
26
+
-**Consistency**: Use American English spelling and grammar. Follow the Layer5 Writing Style Guide for terminology (e.g., "Meshery" not "meshery").
27
+
28
+
### 2. Code Contributions
29
+
30
+
-**Gatsby.js Structure**: Familiarize yourself with the repository structure:
31
+
-`src/components`: Reusable React components.
32
+
-`src/pages`: Page templates and MDX content.
33
+
-`gatsby-config.js`: Site metadata and plugins.
34
+
-`gatsby-node.js`: Dynamic page generation logic.
35
+
-**React Components**: When generating components, use functional components with modern JavaScript (ES6+). Example:
36
+
37
+
```jsx
38
+
importReactfrom'react';
39
+
40
+
constMyComponent= ({ title }) => (
41
+
<div className="my-component">
42
+
<h2>{title}</h2>
43
+
</div>
44
+
);
45
+
46
+
exportdefaultMyComponent;
47
+
```
48
+
-**Styling**: Use CSS modules or styled-components as per the project's conventions. Prefer Tailwind CSS classes if integrated. Example:
-**Accessibility**: Ensure all components meet WCAG 2.1 standards (e.g., alt text for images, ARIA labels where needed).
54
+
55
+
### 3. Contribution Workflow
56
+
57
+
-**Pull Requests**: All changes must be submitted as pull requests (PRs) to the `master` branch. Follow the Layer5 Contributing Guidelines.
58
+
-**Commit Messages**: Use clear, descriptive commit messages following the Conventional Commits format:
59
+
60
+
```
61
+
feat: add new Meshery feature page
62
+
fix: correct broken link in footer
63
+
docs: update AGENTS.md with LLM instructions
64
+
```
65
+
-**Testing**: Ensure generated code passes `make setup` and `make site` without errors. Test for responsiveness across devices.
66
+
- Verifying your fix: The website takes a long time to build. Don't interrupt the build when checking terminal output. Don't hail victory on a fix before you have ACTUALLY verified the solution. Wait for the website to be running, for you to actually \`curl\` a page and verify rendered content.
67
+
68
+
### 4. Content Restrictions
69
+
70
+
-**No External Images**: Do not include external image URLs in Markdown or components. Use local assets in `src/images`.
71
+
-**No Placeholder Text**: Avoid placeholders like `[Your Name]` or `[Insert Content]`. Provide complete, usable content.
72
+
-**No Sensitive Data**: Do not include API keys, credentials, or personal information in generated content.
73
+
74
+
### 5. Specific Tasks for LLMs
75
+
76
+
-**Documentation Updates**: Generate or update MDX files in `src/content` for tutorials, blog posts, or project documentation. Ensure alignment with Layer5's Documentation Guidelines.
77
+
-**Blog Posts**: Create blog posts about cloud native topics, Meshery features, or community events. Example structure:
78
+
79
+
```markdown
80
+
---
81
+
title: "Exploring Meshery's New Features in 2025"
82
+
path: "/blog/meshery-new-features-2025"
83
+
date: "2025-09-23"
84
+
description: "Discover the latest updates to Meshery, the cloud native management platform."
85
+
---
86
+
# Exploring Meshery's New Features in 2025
87
+
## Introduction
88
+
Meshery continues to evolve as the leading platform for...
89
+
```
90
+
-**Component Generation**: Create reusable React components for UI elements like buttons, cards, or modals, ensuring they match the site's design system.
91
+
92
+
### 6. Validation and Testing
93
+
94
+
-**Linting**: Run `npm run lint` to ensure code adheres to ESLint and Prettier rules.
95
+
-**Build Testing**: Verify that `gatsby build` completes successfully.
96
+
-**Preview**: Test changes locally with `gatsby develop` and check for visual/functional issues.
97
+
98
+
### 7. Community Alignment
99
+
100
+
-**CNCF Code of Conduct**: All contributions must adhere to the CNCF Code of Conduct.
101
+
-**Engage with MeshMates**: For guidance, reference the MeshMates program in the Layer5 Community Handbook.
102
+
103
+
## Example Contribution
104
+
105
+
Below is an example of a new MDX page for the Layer5 website:
106
+
107
+
```markdown
108
+
---
109
+
title: "Getting Started with Meshery"
110
+
path: "/learn/getting-started"
111
+
date: "2025-09-23"
112
+
description: "A beginner's guide to setting up Meshery for cloud native management."
113
+
---
114
+
# Getting Started with Meshery
115
+
Meshery is an open-source cloud native management platform that simplifies...
116
+
117
+
## Installation
118
+
1. Install Meshery CLI using:
119
+
```bash
120
+
curl -L https://meshery.io/install | bash -
121
+
```
122
+
123
+
2. Verify installation:
124
+
125
+
```bash
126
+
mesheryctl system check
127
+
```
128
+
129
+
## Next Steps
130
+
131
+
Explore Meshery Docs for advanced configurations.
132
+
133
+
```
134
+
135
+
## Troubleshooting
136
+
-**Build Errors**: Check `gatsby-config.js` for plugin misconfigurations.
137
+
-**Content Issues**: Validate MDX syntax using `npm run develop`.
138
+
-**Community Support**: Reach out via the [Layer5 Slack](https://slack.layer5.io) for assistance.
139
+
140
+
By following these guidelines, LLMs can contribute high-quality content and code to the Layer5 website, enhancing its role as a hub for the cloud native community.
If the validation is successful, you will see a modal displaying the number of components validated and the number of annotations, similar to the one shown below:
1.**Missing Required Field**: This happens when a required field is not provided. For example, in the image below, the first error indicates that the field ".spec.template.spec.containers.0.env.0" must have a value.
<h3class="chapter-sub-heading">Examples of Dry Run Errors</h3>
@@ -142,25 +142,25 @@ Some examples of dry run errors are:
142
142
1.**Invalid Field Value**: The error message indicates that a field has an invalid value. For instance, in the image below, the fields "spec > ports[0] > port" and "spec > ports[0] > targetPort" have invalid values of 0. These values must be between 1 and 65535, inclusive.
1.**Missing Dependencies**: In this case, the error occurs because a Kubernetes [Custom Resource Definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) (CRD) should have been deployed first before attempting to deploy this component.
159
159
160
160
To resolve this, ensure that all necessary dependencies, such as CRDs, are deployed before deploying the components that rely on them.
1. After creating the environment you add connections to the environment, here we want to add a Kubernetes cluster. Click on the **arrows** icon to open the Development Resources modal.
@@ -225,7 +225,7 @@ Another way to add a connection to an Environment is by selecting an environment
225
225
1. Identify the desired connection. Under the **Environment** section, click the dropdown menu to add and select the environment you want to associate with your connection.
@@ -234,15 +234,15 @@ The Kubernetes connection icon at the top right corner of the screen shows the l
234
234
Clicking on the icon will invoke an ad hoc connectivity test between your Meshery Server and the specific Kubernetes cluster. Should this check fail, verify the health of your Meshery Operator deployment within that cluster.
1.**Missing Namespace**: This error occurs when you attempt to create a Kubernetes resource without specifying a namespace. Kubernetes requires that all resources have an associated namespace.
By actively monitoring the Notification Center, you can promptly address issues as they arise, ensuring a smoother deployment process. Learn more about [Managing Events with the Notification Center](https://docs.meshery.io/guides/events-management).
0 commit comments