Skip to content

Commit

Permalink
fix: partners
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Cafolla committed Sep 19, 2024
1 parent f2f7414 commit 50dd9ee
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 18 deletions.
4 changes: 3 additions & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"devbox run website setup"
],
"deploy": [
"export BUCKET_NAME=$(cat ${DEVBOX_PROJECT_ROOT}/infrastructure/env/secrets.tfvars | grep bucket_name | cut -d= -f 2 | xargs)",
"devbox run info",
"sleep 5",
"export BUCKET_NAME=$(cat ${DEVBOX_PROJECT_ROOT}/infrastructure/env/secrets.${WORKSPACE}.tfvars | grep bucket_name | cut -d= -f 2 | xargs)",
"devbox run website deploy ${BUCKET_NAME}"
],
"switch-env": [
Expand Down
23 changes: 14 additions & 9 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,22 @@ const config = {
]
},
{
label: '🔥 How to Contribute',
position: 'left',
label: '⭐ Partners',
items: [
{
to: '/contributors/partners',
label: '⭐ Partners',
to: '/partners/our-partners',
label: 'Our Partners',
},
{
to: '/partners/how-to-became-partners',
label: 'How to became Partners',
},
]
},
{
label: '🔥 How to Contribute',
position: 'left',
items: [
{
to: '/contributors/developers',
label: '💻 Developers',
Expand Down Expand Up @@ -157,10 +166,6 @@ const config = {
},
]
},
{
to: '/partners',
label: '⭐ Our Partners',
},
{
to: '/about-us',
label: '💎 About Us',
Expand Down Expand Up @@ -190,7 +195,7 @@ const config = {
label: `Home`,
},
{
to: '/partners',
to: '/partners/our-partners',
label: `Our Partners`,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function App(): JSX.Element {
</Grid>

<Container component="main" sx={{ mt: 3, mb: 3 }} maxWidth="sm">
<Link href="/contributors/partners">
<Link href="/partners/how-to-became-partners">
<Button variant="contained" fullWidth={true} >
Became a community partner
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Se volete lanciare il vostro progetto, dargli una spinta o semplicemente sentirv
- [Aggiungi Startup](/contributors/startups)
- [Aggiungi Community](/contributors/communities)
- [Aggiungi una destinazione per Nomadi Digitali](/contributors/digital-nomads)
- [Diventa un Community Partner](/contributors/partners)
- [Diventa un Community Partner](/partners/how-to-became-partners)

## Come contribuire

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import Button from '@mui/material/Button';

<Grid container>
<Grid xs={12} sm={4} >
<Link href="/contributors/partners">
<Link href="/partners/how-to-became-partners">
<Button variant="contained" fullWidth={true}>
<span>Became a Community Partner</span>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion website/i18n/it/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"link.item.label.Our Partners": {
"message": "Partners",
"description": "The label of footer link with label=Our Partners linking to /partners"
"description": "The label of footer link with label=Our Partners linking to /partners/our-partners"
},
"link.item.label.GitHub": {
"message": "GitHub",
Expand Down
2 changes: 1 addition & 1 deletion website/scripts/create_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def add_startups_content(doc, data):
add_website_content(doc, data.get("site_url"))
if data["autogenerated"].get("partnership"):
doc.add_block(
f"<Alert>{data['name']} è nostro {data['sponsor_level']} sponsor. Vuoi supportarci anche te? vai sulla pagina <a href='/contributors/partners'>sponsor</a> </Alert><br></br>"
f"<Alert>{data['name']} è nostro {data['sponsor_level']} sponsor. Vuoi supportarci anche te? vai sulla pagina <a href='/partners/how-to-became-partners'>sponsor</a> </Alert><br></br>"
)


Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/communities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function App(): JSX.Element {
</Grid>

<Container component="main" sx={{ mt: 3, mb: 3 }} maxWidth="sm">
<Link href="/contributors/partners">
<Link href="/partners/how-to-became-partners">
<Button variant="contained" fullWidth={true} >
Became a community partner
</Button>
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/contributors/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Whether you want to launch your project, give it a boost or just feel part of an
- [Add Company](/contributors/startups)
- [Add Community](/contributors/communities)
- [Add a destination for Digital Nomads](/contributors/digital-nomads)
- [Become a Partners](/contributors/partners)
- [Become a Partners](/partners/how-to-became-partners)

## How to contribute

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import Button from '@mui/material/Button';

<Grid container>
<Grid xs={12} sm={4} >
<Link href="/contributors/partners">
<Link href="/partners/how-to-became-partners">
<Button variant="contained" fullWidth={true}>
<span>Became a Community Partner</span>
</Button>
Expand Down

0 comments on commit 50dd9ee

Please sign in to comment.