-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from adastackio/os_builders
Add Documentation page, improve and reorganize many pages
- Loading branch information
Showing
105 changed files
with
3,772 additions
and
3,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,5 @@ pnpm-lock.yaml | |
.env | ||
.vercel | ||
.env*.local | ||
.aider* | ||
data/ | ||
.vscode/settings.json | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from "react"; | ||
import RepoShieldIo from "./badges/shield_io_badges/RepoShieldIo"; | ||
import LanguageShieldIo from "./badges/shield_io_badges/LanguageShieldIo"; | ||
import LatestCommitShieldIo from "./badges/shield_io_badges/LatestCommitShieldIo"; | ||
import DiscordShieldIo from "./badges/shield_io_badges/DiscordShieldIo"; | ||
import DocsShieldIo from "./badges/shield_io_badges/DocsShieldIo"; | ||
|
||
interface DiscordInfo { | ||
discordInviteURL: string; | ||
DiscordServerName: string; | ||
} | ||
|
||
interface LibraryInfoProps { | ||
repoURL: string; | ||
language: string; | ||
docsURL: string; | ||
discord: DiscordInfo[]; | ||
} | ||
|
||
const LibraryInfo: React.FC<LibraryInfoProps> = ({ | ||
repoURL, | ||
language, | ||
discord, | ||
docsURL, | ||
}) => { | ||
return ( | ||
<div className="code-library-info-bar flex gap-2 items-center pb-5"> | ||
{language && ( | ||
<LanguageShieldIo language={language} isColorChanging={false} /> | ||
)} | ||
{docsURL && <DocsShieldIo docsURL={docsURL} />} | ||
|
||
{discord && | ||
discord.length > 0 && | ||
discord.map((info, index) => ( | ||
<DiscordShieldIo | ||
key={index} | ||
discordInviteURL={info.discordInviteURL} | ||
DiscordServerName={info.DiscordServerName} | ||
/> | ||
))} | ||
{repoURL && <LatestCommitShieldIo repoURL={repoURL} />} | ||
{repoURL && <RepoShieldIo repoURL={repoURL} />} | ||
</div> | ||
); | ||
}; | ||
|
||
export default LibraryInfo; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
|
||
interface DiscordShieldIoProps { | ||
discordInviteURL?: string; | ||
DiscordServerName?: string; | ||
} | ||
|
||
const DiscordShieldIo: React.FC<DiscordShieldIoProps> = ({ | ||
discordInviteURL, | ||
DiscordServerName = "Discord", | ||
}) => { | ||
if (!discordInviteURL) { | ||
return null; | ||
} | ||
|
||
// Replace dashes with HTML entity for en dash | ||
const formattedChannelName = DiscordServerName.replace(/-/g, "–"); | ||
|
||
return ( | ||
<a | ||
href={discordInviteURL} | ||
className="inline-block" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<img | ||
className="shield_io_badge badge-io-custom-shading shields_io_repo_badge" | ||
alt={`${DiscordServerName} Discord`} | ||
src={`https://img.shields.io/badge/${encodeURIComponent( | ||
formattedChannelName | ||
)}-ffffff?style=flat&logo=discord&logoColor=7289DA&labelColor=dfe8f0`} | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default DiscordShieldIo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
|
||
interface DocsShieldIoProps { | ||
docsURL: string; | ||
} | ||
|
||
const DocsShieldIo = ({ docsURL }: DocsShieldIoProps) => { | ||
return ( | ||
<a | ||
className="inline-block" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href={docsURL} | ||
> | ||
<img | ||
src="https://img.shields.io/badge/-Docs-white?logo=readme&labelColor=white&logoColor=61a6fa" | ||
className="shield_io_badge badge-io-custom-shading shields_io_repo_badge" | ||
alt="Latest Commit" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
export default DocsShieldIo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f443141
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
adastackio – ./
adastackio-git-main-adastack-projects.vercel.app
adastackio-adastack-projects.vercel.app
adastack.io
www.adastack.io
adastackio1436576985.vercel.app