Skip to content

Commit

Permalink
Merge branch 'develop' into chore/custom-data-endpoint-for-latest-blo…
Browse files Browse the repository at this point in the history
…g-posts
  • Loading branch information
heldrida authored Jun 10, 2024
2 parents 3a360bb + 90c72a5 commit 1b4f644
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 49 deletions.
27 changes: 6 additions & 21 deletions .github/actions/spell-checker/ignore_words.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
2fa
8Fdevelop
8f
8fdevelop
astro
Expand All @@ -26,25 +25,21 @@ customtitlesbydirectoryname
customTitlesByDirectoryName
ddos
dev
Develop
develop
Development
development
devs
dns
dnslink
ef
env
EnvVars
envvars
ethereum
eu
️Fleek
fleek
fleek's
fleekchangelog01mar11
fleekreleasenotes06
fleekxyz
fleek’s
flkservices
fmt
gatsby
Expand All @@ -69,13 +64,10 @@ lon
md
mdx
meilisearch
Meilisearch's
metamask
mp4
NavBar
navbar
nodejs
NodeJS
npm
openinnewtab
openInNewTab
Expand All @@ -96,7 +88,6 @@ sdk
signups
src
srcset
SrcSet
stylesheets
submenu
submenus
Expand All @@ -106,7 +97,6 @@ tld
todo
totp
txt
TypeScript
typescript
ui
url
Expand All @@ -117,25 +107,20 @@ walkthrough
webp
xyz
onchain
onchain
serverless
testnet
latencygraphic
onchain
geo
serverless
Vercel
vercel
permissionless
onchain
deplatform
APIs
serverless
apis
serverless
users
Functions’
users'
functions'
lodash
repos
users’
development
everytime
develop
users'
12 changes: 11 additions & 1 deletion .github/workflows/grammar-spell-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
with:
fetch-depth: 0

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install Hunspell
run: |
sudo apt-get update
Expand All @@ -31,9 +35,15 @@ jobs:
echo
for file in $diff; do
output=$(hunspell -l -d en_US -p .github/actions/spell-checker/ignore_words.txt "$file")
normalizedFile=$(mktemp)
./scripts/markdown-normalizer.ts "$file" > "$normalizedFile"
output=$(hunspell -l -d en_US -p .github/actions/spell-checker/ignore_words.txt "$normalizedFile")
typos_count=$(echo "$output" | wc -l)
rm "$normalizedFile"
if [[ -n "$output" ]]; then
echo "🤓 Found the following typos in $file"
echo
Expand Down
32 changes: 32 additions & 0 deletions scripts/markdown-normalizer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bun

import fs from 'fs';

if (!process.argv.slice(1).length) {
console.error("👹 Oops! Missing the filename argument.");
process.exit(1);
}

const args = process.argv.slice(1);
const filePath = args[1];
const fileContent = fs.readFileSync(filePath, 'utf-8');

// Markdown headings
const re1 = /---[\s\S]*?---/g;
// Code blocks
const re2 = /```[\s\S]*?```/g;
// Named URL
const re3 = /\[.*?\]\(.*?\)/g;

try {
const content = fileContent
.replace(re1, '')
.replace(re2, '')
.replace(re3, '')
.toLowerCase();

process.stdout.write(content);
} catch (err) {
console.error("👹 Oops! Failed to normalize the file for some reason...");
process.exit(1);
}
62 changes: 40 additions & 22 deletions src/components/Footer/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ const {
careersUrl,
supportExternalUrl,
reportAbuseUrl,
discordFleekCommunityUrl,
statusURl,
mediaKit,
fleekNetworkWebsiteUrl,
templatesUrl,
} = settings.site.resources;

const { fleekPlatformOrgUrl } = settings.github;
Expand All @@ -15,19 +17,19 @@ export default {
developers: [
{
text: 'Fleek Network',
url: 'https://fleek.network/',
url: fleekNetworkWebsiteUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
{
text: 'Github',
url: 'https://github.com/fleek-platform',
text: 'Changelog',
url: '/blog/changelog',
target: '_blank',
rel: 'noopener noreferrer',
},
{
text: 'Changelog',
url: '/blog/changelog',
text: 'Github',
url: fleekPlatformOrgUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
Expand All @@ -38,21 +40,29 @@ export default {
rel: 'noopener noreferrer',
},
],
legal: [
company: [
{
text: 'Terms of Service',
url: '/legal/terms-of-service',
text: 'Blog',
url: '/blog',
},
{
text: 'Privacy Policies',
url: '/legal/privacy-policy',
text: 'Pricing',
url: '/pricing',
},
{
text: 'Report Abuse',
url: reportAbuseUrl,
text: 'Careers',
url: careersUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
{
text: 'Terms of Service',
url: '/legal/terms-of-service',
},
{
text: 'Privacy Policies',
url: '/legal/privacy-policy',
},
{
text: 'Contact Us',
url: reportAbuseUrl,
Expand All @@ -75,29 +85,37 @@ export default {
},
{
text: 'Templates',
url: 'https://app.fleek.xyz/templates',
url: templatesUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
],
resources: [
{
text: 'Blog',
url: '/blog',
},
{
text: 'Docs',
text: 'Documentation',
url: '/docs',
},
{
text: 'Media Kit',
url: 'https://fleek.notion.site/Fleek-Brand-Kit-9a2bcf7eb40740a9b7e951fc951b478a',
url: mediaKit,
target: '_blank',
rel: 'noopener noreferrer',
},
{
text: 'Careers',
url: careersUrl,
text: 'Guides',
url: '/guides',
},
{
text: 'Support',
url: supportExternalUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
{
text: 'Report Abuse',
url: reportAbuseUrl,
target: '_blank',
rel: 'noopener noreferrer',
},
],
};
6 changes: 3 additions & 3 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Link, { Target } from '@components/Link';
import config from './config';
import { FaXTwitter } from 'react-icons/fa6';

const { product, developers, legal, resources, fleekPlatformOrgUrl } = config;
const { product, developers, company, resources, fleekPlatformOrgUrl } = config;

const Footer = () => {
return (
Expand Down Expand Up @@ -108,9 +108,9 @@ const Footer = () => {
</ul>
</div>
<div className="col-span-6 flex flex-col gap-12 md:col-span-3 md:gap-16">
<Text style="caption-m">Legal</Text>
<Text style="caption-m">Company</Text>
<ul className="flex flex-col gap-10 md:gap-8">
{legal.map((item, index) => (
{company.map((item, index) => (
<li className="flex justify-start" key={index}>
<Link
href={item.url}
Expand Down
6 changes: 4 additions & 2 deletions src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
"reportAbuseUrl": "https://support.fleek.xyz/hc/en-us/requests/new?ticket_form_id=16807535390093",
"fleekNetworkWebsiteUrl": "https://fleek.network",
"discordFleekCommunityUrl": "https://discord.gg/fleek",
"supportExternalUrl": "https://support.fleek.xyz",
"supportExternalUrl": "https://support.fleek.xyz/hc/en-us",
"arweaveUrl": "https://www.arweave.org",
"ipfsUrl": "https://ipfs.tech/",
"statusURl": "https://status.fleek.xyz/",
"fleekTwitterUrl": "https://twitter.com/fleek"
"fleekTwitterUrl": "https://twitter.com/fleek",
"mediaKit": "https://fleek.notion.site/Fleek-Brand-Kit-9a2bcf7eb40740a9b7e951fc951b478a",
"templatesUrl": "https://app.fleek.xyz/templates"
},
"annoucement": {
"message": "Introducing Fleek Functions: lightning-fast edge functions built on Fleek Network’s onchain cloud infrastructure. Read more here.",
Expand Down

0 comments on commit 1b4f644

Please sign in to comment.