Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externalize data to make the website translatable and add Spanish translation #34

Merged
merged 44 commits into from
Feb 10, 2025

Conversation

conradolandia
Copy link
Collaborator

@conradolandia conradolandia commented Nov 27, 2024

This PR aims to find and externalize all static data on the website so it can be imported from YAML files.

The website now loads its data from 4 sources, depending on the needed data:

  • If we are loading general configuration for the website, it resides now in $lib/config/content.yaml. The file $lib/config/index.js loads data from the YAML source and exports variables accordingly. This preserves compatibility with the previous configuration.
  • Each route has its own YAML data source. So, routes/content.yaml will provide content for the front page, routes/about/content.yaml will provide content for the /about route, and so on. Only the /blog route does not require an external content file.

Fixes #21
Fixes #8

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for spyder-website-preview ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e97c127
🔍 Latest deploy log https://app.netlify.com/sites/spyder-website-preview/deploys/67aa3f821868b70008f1249e
😎 Deploy Preview https://deploy-preview-34--spyder-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@conradolandia conradolandia marked this pull request as ready for review December 5, 2024 22:21
@conradolandia conradolandia self-assigned this Dec 5, 2024
@conradolandia conradolandia added the enhancement New feature or request label Dec 5, 2024
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fantastic improvement @conradolandia!! Thanks a lot for your work on it!

I left several suggestions for the Spanish translation, the rest looks good to me.

@ccordoba12 ccordoba12 changed the title Externalize data Externalize data to make the website translatable and add Spanish translation Feb 10, 2025
Copy link
Collaborator Author

@conradolandia conradolandia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All suggestions approved and ready to merge.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks @conradolandia!

@ccordoba12 ccordoba12 merged commit 217cb11 into spyder-ide:main Feb 10, 2025
2 checks passed
conradolandia added a commit to conradolandia/spyder-website that referenced this pull request Feb 11, 2025
@ccordoba12 ccordoba12 mentioned this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants