Skip to content

Commit

Permalink
Merge branch 'saintmalik:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderful-coyote authored Nov 5, 2023
2 parents dbb74a3 + 7a3375d commit 4132a3d
Show file tree
Hide file tree
Showing 27 changed files with 1,346 additions and 147 deletions.
195 changes: 98 additions & 97 deletions README.md

Large diffs are not rendered by default.

80 changes: 35 additions & 45 deletions awesome-oss-docs/src/component/card.jsx
Original file line number Diff line number Diff line change
@@ -1,56 +1,46 @@
import DocSection from './docSection';
// import jsonData from '../constants/data';
import DocCard from './docCard';
import docs from '../constants/docs';
import logo from '../component/imgs/logo.svg';
import React from "react";
import DocSection from "./docSection";
import DocCard from "./docCard"; // Import your DocCard component
import docs from "../constants/docs";
import logo from "../component/imgs/logo.svg";

export default function Card() {
const onGoToClick = (url) => {
window.open(url, '_blank'); // Open the URL in a new tab
window.open(url, "_blank"); // Open the URL in a new tab
};

console.log(docs);

// Check if docs is not undefined or null before mapping over it
if (!docs || !Array.isArray(docs)) {
console.error("Invalid data:", docs);
return <div>Error: Invalid data</div>; // Display an error message if data is not available or not in the expected format
}

return (
<div>
{/* {jsonData.documentationSets.map((documentation, index) => (
<DocSection key={index} title={documentation.title}>
{documentation.projects.map((project, projectIndex) => (
<DocCard
key={projectIndex}
title={project.title}
logoSrc={project.logoSrc}
description={project.description}
stars={project.stars}
isDocumentation={project.isDocumentation}
isOpenSource={project.isOpenSource}
goToProject={() => {
onGoToClick(project.projectUrl);
}}
goToGithub={() => {
onGoToClick(project.githubUrl);
}}
/>
))}
</DocSection>
))} */}

{docs.map((doc, index) => (
<DocSection key={index} title={doc.title}>
{doc.documentations.map((documentation, index) => (
<DocCard
key={index}
title={documentation.title}
logoSrc={logo}
description={documentation.description}
owner={documentation.owner}
goToGithub={() => onGoToClick(documentation.githubUrl)}
goToProject={() => onGoToClick(documentation.projectUrl)}
/>
))}
</DocSection>
))}
{docs.map((doc) => {
console.log("doc:", doc);
return (
<DocSection key={doc.title} title={doc.title}>
{/* Pass valid React elements (DocCard components) as children */}
{doc.documentations &&
Array.isArray(doc.documentations) &&
doc.documentations.map((documentation) => {
console.log("documentation:", documentation);
return (
<DocCard
key={documentation.title}
title={documentation.title}
logoSrc={logo}
description={documentation.description}
owner={documentation.owner}
goToGithub={() => onGoToClick(documentation.githubUrl)}
goToProject={() => onGoToClick(documentation.projectUrl)}
/>
);
})}
</DocSection>
);
})}
</div>
);
}
1 change: 0 additions & 1 deletion awesome-oss-docs/src/component/docSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ DocSection.propTypes = {
children: PropTypes.node.isRequired,
};


export default DocSection;
52 changes: 48 additions & 4 deletions awesome-oss-docs/src/constants/docs/index.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,77 @@
import airbnb from "./orderByAlphabet/airbnb";
import amazon from "./orderByAlphabet/amazon";
import apache from "./orderByAlphabet/apache";
import apple from "./orderByAlphabet/apple";
import bridgecrew from "./orderByAlphabet/bridgecrew";
import confluent from "./orderByAlphabet/confluent";
import cryptocurrencies from "./orderByAlphabet/cryptocurrencies";
import deltalake from "./orderByAlphabet/deltalake";
import docker from "./orderByAlphabet/docker";
import dropbox from "./orderByAlphabet/dropbox";
import elastic from "./orderByAlphabet/elastic";
import facebook from "./orderByAlphabet/facebook";
import google from "./orderByAlphabet/google";
import guild from "./orderByAlphabet/theguild";
import hashicorp from "./orderByAlphabet/hashicorp";
import ibm from "./orderByAlphabet/ibm";
import jetbrains from "./orderByAlphabet/jetbrains";
import linode from "./orderByAlphabet/linode";
import loginradius from "./orderByAlphabet/loginradius";
import mayadata from "./orderByAlphabet/mayadata";


import netflix from "./orderByAlphabet/netflix";
import netlify from "./orderByAlphabet/netlify";
import ory from "./orderByAlphabet/ory";
import redhat from './orderByAlphabet/redhat';
import salesforce from "./orderByAlphabet/salesforce";
import samsung from "./orderByAlphabet/samsung";
import shopify from "./orderByAlphabet/shopify";
import slackhq from "./orderByAlphabet/slackhq";
import suse from "./orderByAlphabet/suse";
import tailwind from "./orderByAlphabet/tailwind";
import twilio from "./orderByAlphabet/twilio";
import twitter from "./orderByAlphabet/twitter";
import uber from "./orderByAlphabet/uber";
import upbound from "./orderByAlphabet/upbound";
import puppet from "./orderByAlphabet/puppet";
import python from "./orderByAlphabet/python";
import microsoft from "./orderByAlphabet/microsoft";

export default [
airbnb,
apache,
amazon,
apple,
bridgecrew,
confluent,
cryptocurrencies,
docker,
deltalake,
dropbox,
elastic,
facebook,
google,
guild,
hashicorp,
ibm,
jetbrains,
linode,
loginradius,
mayadata];

mayadata,
microsoft,
netflix,
netlify,
ory,
redhat,
salesforce,
samsung,
shopify,
slackhq,
suse,
tailwind,
twilio,
twitter,
uber,
upbound,
puppet,
python,
];
150 changes: 150 additions & 0 deletions awesome-oss-docs/src/constants/docs/orderByAlphabet/amazon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
export default {
title: "Amazon Open Source Documentation",
documentations: [
{
title: "OpenSearch Docs",
description:
"The documentation for OpenSearch, OpenSearch Dashboards, and their associated plugins.",
projectUrl: "https://opensearch.org/docs",
githubUrl: "https://github.com/opensearch-project/documentation-website",
owner: "Community Owned Documentation",
},
{
title: "Amplify JS Docs",
description:
"A declarative JavaScript library for application development using cloud services.",
projectUrl: "https://docs.amplify.aws/lib/q/platform/js",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amplify iOS Docs",
description:
"A declarative library for application development using cloud services.",
projectUrl: "https://docs.amplify.aws/start/q/integration/ios",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amplify CLI Docs",
description:
"The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.",
projectUrl: "https://docs.amplify.aws/cli",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amplify Android Docs",
description:
"The fastest and easiest way to use AWS from your Android app.",
projectUrl: "https://docs.amplify.aws/lib/q/platform/android",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amplify Flutter Docs",
description:
"A declarative library with an easy-to-use interface for building Flutter applications on AWS.",
projectUrl:
"https://docs.amplify.aws/lib/q/platform/flutter#amplify-flutter",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amplify Console Docs",
description:
"The AWS Amplify Console provides a Git-based workflow for deploying and hosting fullstack serverless web applications.",
projectUrl: "https://docs.amplify.aws/console",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amazon EC2 Docs",
description:
"A web service that provides resizable computing capacity—literally, servers in Amazon's data centers—that you use to build and host your software systems.",
projectUrl: "https://docs.aws.amazon.com/ec2/index.html",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amazon CloudFront Docs",
description:
"Amazon CloudFront speeds up distribution of your static and dynamic web content.",
projectUrl: "https://docs.aws.amazon.com/cloudfront/index.html",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amazon S3 Docs",
description:
"Amazon Simple Storage Service (Amazon S3) is storage for the internet.",
projectUrl: "https://docs.aws.amazon.com/s3/index.html",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "AWS IAM Docs",
description:
"AWS Identity and Access Management (IAM) is a web service for securely controlling access to AWS services.",
projectUrl: "https://docs.aws.amazon.com/iam",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "AWS A2C Docs",
description:
"AWS App2Container (A2C) is a command-line tool for modernizing .NET and Java applications into containerized applications.",
projectUrl: "https://docs.aws.amazon.com/app2container",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Amazon EKS Docs",
description:
"Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on AWS.",
projectUrl: "https://docs.aws.amazon.com/eks/index.html",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "Bottlerocket Docs",
description:
"A linux-based operating system purpose-built to run containers.",
projectUrl: "https://aws.amazon.com/bottlerocket",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "AWS Distro for OpenTelemetry Docs",
description:
"A Secure, production-ready open source distribution with predictable performance.",
projectUrl: "https://aws-otel.github.io/docs/introduction",
githubUrl: "",
owner: "Community Owned Documentation",
},
{
title: "Firecracker Docs",
description: "Firecracker is an open source virtualization technology.",
projectUrl:
"https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md",
githubUrl: "",
owner: "Community Owned Documentation",
},
{
title: "AWS CDK Docs",
description:
"AWS Cloud Development Kit defines cloud infrastructure using familiar programming languages.",
projectUrl: "https://aws.amazon.com/cdk/resources",
githubUrl: "",
owner: "Company Owned Documentation",
},
{
title: "FreeRTOS Docs",
description:
"FreeRTOS is a market-leading real-time operating system (RTOS) for microcontrollers and small microprocessors.",
projectUrl: "https://docs.aws.amazon.com/freertos/index.html",
githubUrl: "",
owner: "Company Owned Documentation",
},
],
};
29 changes: 29 additions & 0 deletions awesome-oss-docs/src/constants/docs/orderByAlphabet/confluent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export default {
title: 'Confluent Inc Open Source Documentation',
documentations: [
{
title: 'Kafka Rest',
description: 'Confluent REST Proxy for Kafka.',
projectUrl:
'https://docs.confluent.io/platform/current/kafka-rest/index.html',
githubUrl: 'https://github.com/confluentinc/kafka-rest',
owner: 'Community Owned Documentation',
},
{
title: 'Schema Registry',
description: ' Confluent Schema Registry for Kafka.',
projectUrl:
'https://docs.confluent.io/platform/current/schema-registry/index.html',
githubUrl: 'https://github.com/confluentinc/schema-registry',
owner: 'Community Owned Documentation',
},
{
title: 'Ksql',
description:
'The database purpose-built for stream processing applications.',
projectUrl: 'https://docs.ksqldb.io/en/latest/',
githubUrl: 'https://github.com/confluentinc/ksql/tree/master/docs',
owner: 'Community Owned Documentation',
},
],
};
13 changes: 13 additions & 0 deletions awesome-oss-docs/src/constants/docs/orderByAlphabet/deltalake.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
title: "DeltaLake Open Source Documentation",
documentations: [
{
title: "DeltaLake Docs",
description:
"An open-source storage layer that brings scalable, ACID transactions to Apache Spark™ and big data workloads.",
projectUrl: "https://docs.delta.io/latest/index.html",
githubUrl: "",
owner: "Community Owned Documentation",
},
],
};
Loading

0 comments on commit 4132a3d

Please sign in to comment.