Skip to content

Commit

Permalink
Merge branch 'layer5io:master' into png-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay-singh1 authored Dec 19, 2024
2 parents e4805c6 + b086fa7 commit d10feb7
Show file tree
Hide file tree
Showing 51 changed files with 1,038 additions and 711 deletions.
44 changes: 22 additions & 22 deletions .github/build/features-to-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const headers = [
"Team Designer",
"Team Operator",
"Enterprise",
"Pricing Page",
"Exclude",
"Docs",
];

Expand All @@ -36,34 +36,34 @@ async function processCSV() {

const filteredData = rows.map(row => {
try {
const pricingPage = row["Pricing Page"]?.toLowerCase() || "";
const exclude = row["Exclude"]?.toLowerCase();
const hasXTier = [
"Free",
"Team Designer",
"Team Operator",
"Enterprise"]
.some(tier => row[tier]?.trim().toLowerCase() === "x");
const includeRow = hasXTier || (pricingPage && ["x", "X"].includes(pricingPage.toLowerCase()));
// const includeRow = hasXTier && !(exclude && ["x", "X"].includes(exclude.toLowerCase()));

if (!includeRow) return null;

return {
theme: row["Theme"],
categoryOrder: row["Category Order"],
category: row["Category"],
functionOrder: row["Function Order"],
function: row["Function"],
feature: row["Feature"],
subscription_tier: row["Subscription Tier"],
comparison_tiers: {
free: row["Free Tier"],
teamDesigner: row["Team Designer"],
teamOperator: row["Team Operator"],
enterprise: row["Enterprise"],
},
pricing_page: row["Pricing Page"],
docs: row["Docs"]
};
// if (!includeRow) return null;
if (!exclude) {
return {
theme: row["Theme"],
categoryOrder: row["Category Order"],
category: row["Category"],
functionOrder: row["Function Order"],
function: row["Function"],
feature: row["Feature"],
subscription_tier: row["Subscription Tier"],
comparison_tiers: {
free: row["Free"],
teamDesigner: row["Team Designer"],
teamOperator: row["Team Operator"],
enterprise: row["Enterprise"],
},
docs: row["Docs"]
};
}
} catch (error) {
console.error("Error processing row:", row, error);
return null;
Expand Down
32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ We are beyond excited to see that you want to contribute! We would love to accep
- [Before You Get Started](#before-you-get-started)
- [Contributing to Layer5 Projects](#contributing-to-layer5-projects)
- [Contributing to Layer5's Blogs](#contributing-to-layer5s-blogs)
- [Contributing to Layer5's Sistent](#contributing-to-layer5s-sistent)
- [How to Contribute](#how-to-contribute)
- [Prerequisites](#prerequisites)
- [Set up your Local Development Environment](#set-up-your-local-development-environment)
Expand Down Expand Up @@ -129,6 +130,37 @@ If you'd like to contribute a post to layer5.io/blog, please open an Issue and s
3. Follow the instructions included in the news template and name the new file after the title of the news article.
4. Entries will be listed in chronological order automatically.

# Contributing to Layer5's Sistent

If you'd like to contribute to Sistent, start by selecting the project/sistent label in the [#GitHub issue tracker](https://github.com/layer5io/layer5/labels/project%2Fsistent).

### General Contribution Guidelines

1. Select the [project/sistent](https://github.com/layer5io/layer5/labels/project%2Fsistent) label in the GitHub issue tracker.
1. Navigate to the relevant directory, such as:
```
src/sections/Projects/Sistent
```
> Note: For other parts of the project, the file path may vary. Ensure you're working in the correct file associated with the area you're contributing to.
1. Add or update content. The system dynamically generates pages and routes to maintain consistency.

### Adding Sistent Component

We've streamlined the process by introducing a dynamic page creation workflow, simplifying the addition of new pages and ensuring a consistent structure for all contributions.

1. Navigate to the relevant directory, such as:
```
src/sections/Projects/Sistent
```
1. To add a new page, simply update this `content.js` file with the necessary details. All content is managed in a centralized file:
```
src/sections/Projects/Sistent/components/content.js
```
1. The system will dynamically generate pages based on this content and handle routing automatically.

### Example
Refer to the [**Button component**](https://layer5.io/projects/sistent/components/button) in the Sistent Library for an example of how to structure the content.

# Common Types of Site Contributions

The following list of instructions pertains to commonplace site updates by contributors.
Expand Down
5 changes: 0 additions & 5 deletions src/assets/images/pricing/docs.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/assets/images/sistent/horizontal/sistent-horizontal-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d10feb7

Please sign in to comment.