Comments (6)
The infra for this I believe is ready now, the idea is we are going to build a container for each publication. The configs for each language will be available in docker-config
Mind adding some and we can test it out in the next deployment?
To be clear, there will probably be a bit of duplication because we need a different serve.json
file for each language, but we can revisit the strategy at some point if we need DRY configs.
from news.
I think some redirects like RSS etc, are working. But not everything is.
from news.
Not sure, why these do not work:
news/docker-config/italian/serve.json
Lines 7 to 10 in 65985dd
--
About these:
news/docker-config/italian/serve.json
Lines 19 to 26 in 65985dd
Is the idea to show users a localized version of the about, etc.?
from news.
I'm not sure why those first ones don't work either. It may be better to use routing segments that are mentioned in the docs. Maybe something like:
{
"source": "/@:username",
"destination": "/author/:username"
},
For the other redirects, I just wanted to confirm that those were all working. We could point to localized versions if those exist, or to the English versions of the articles for ones that we don't localize.
From the test redirects in that PR, I believe sponsors is the only one that should point to the English version of the article: https://www.freecodecamp.org/news/sponsors/
from news.
I have landed the linked PR & deployed it to staging. @scissorsneedfoodtoo can you confirm this works as intended and can be closed?
from news.
Awesome, thanks @raisedadead.
I did some testing previously and we should be able to handle all the current Ghost redirects with Serve. The only hangup might be if we need to do something fancy with regex, though I don't see that happening very often -- most of the current redirects are for the migrated articles, or to point to another article for some reason or another.
Just double checked and the Dothraki redirects work as expected. Once we do test Chinese and English builds I can do a more in-depth check.
from news.
Related Issues (20)
- Links that copy the table content headers HOT 2
- Remove redundant author/translator’s name HOT 2
- make code elements copiable to help with improving the flow state on mobile devices. HOT 1
- Extra Scroll padding for linked section HOT 5
- RTL direction isn't respected in specific safari version
- Remove `sanitize-html` dependency HOT 2
- Where can I find the original markdown file for this article? HOT 3
- Remove references to retired languages HOT 2
- Syntax highlighting breaks when visiting publication from Google HOT 3
- Improve the behavior when fetching the original author/article failed
- Footer tending guides' links outline is touching the text HOT 3
- There should be a floating button for scrolling to top HOT 4
- Donating users see the authenticated Banner instead
- Package json not updated HOT 2
- Clean up registry for items older than 2 days on DigitalOcean HOT 2
- [ Feature Request ] - Dark theme and Syntax highlighting
- footer column size mismatch between learn and news HOT 1
- freecodecamp.org/news/ dark mode theme HOT 3
- How to Help Translate freeCodeCamp into Your Native Language HOT 4
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from news.