-
Notifications
You must be signed in to change notification settings - Fork 297
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
📜 Allow for extra content for some languages? #5721
Comments
Note from @ZoomQuiet in #5720 that is relevant here:
|
Just to clarify, the only reason to not do this straight away is that it will be somewhat complex to build, so we need to figure out how to do this properly (such that is can work with existing tools and works for non-technical people too across languages) it is not a matter of not wanting you to have this option. A very very easy way to get this done quickly is that you setup your own website somewhere (like github pages) and we simply link to it labeling it the official Chinese community site (through something like cn.hedy.org/community) Let me know if that works! |
This is currently feasible, but for readers, it feels a bit subtle,
For this reason, we may need to purchase domain names such as of course, linking from the official website to the Chinese community website is an officially recognized behavior, please tell us about hedy's decision so that we can grab the domain name in time? |
Great, let's explore that path more!
Yes, I see! I am sure though that there are methods to keep the original domain name in the address bar while doing a redirect if both domains fiddle with the settings a bit. Can you look into how that could work to increase trust? |
@Felienne this is very easy in Nginx: This example will automatically replace all URLs of cnhedy.github.io with cn.hedy.org. The following is a specific Nginx configuration example: server {
listen 80;
server_name cn.hedy.org;
location / {
# forward the request to cnhedy.github.io
proxy_pass https://cnhedy.github.io;
# modify the HTTP header information to point to cn.hedy.org
proxy_set_header Host $host;
proxy_set_header Referer $scheme://$host;
proxy_set_header Origin $scheme://$host;
}
} Code explanation:
Effect verification:
Reference source:
If you configure it on the official website, you need to
PS: The current prototype website is published at: Because it is published using the github organization repository, there is an extra You can also complete all automatic proxies by referring to the Nginx official documentation; Of course, |
Thanks for the detailed info! We will discuss this in our next contributors meeting on Tuesday (feel free to drop in if you want/can (2PM CET) |
i'll try join, but can not make sure now. thanx for all, this issue, can usage all others country's community support. |
Hello @ZoomQuiet! We were debating about this issue in the last couple of meetings and came to a proposal for you guys! We can provide you with a HTML template that you can edit as you'd like. The link to access this template would be something like: cn.hedy.org/community In order to edit this template you would upload PRs to our repo which in turn would be approved by us. Does this proposal work for you? |
No problem,
So, how will such webpages be published? |
No, it still would be our site, so no Ngix redirection required. The subdomain would point to a html file within our repo that will be handled by you.
For sure! |
To clarify the details, my current understanding is:
The good news is that we will be allowed to maintain content based on .md through a mechanism similar to github-pages? So, since git repositories are used,
That is, allow the Chinese community to publish a group of pages with structural relationships to each other in the cn.hedy.org domain name, rather than a single page? |
Hi @ZoomQuiet! I understand the question, but just to get things going, can we start with, instead of 1 HTML page, a folder of HTML pages? Than you can indeed make different pages and link to each other, but we don't have to organize subrepos (which will be a large hassle for a lot of languages). Please understand that we have to balance your needs with the option that we will have to maintain it 50 fold. @jpelay Can you make a demo with a few HTML pages instead of one? If we have a concrete example, the discussion might be eased. |
@Felienne Agree, a set of html or a specified folder, If there is no such requirement, we are used to using Python tools, @jpelay |
Let's work from there, @jpelay has made a preliminary PR, please check that out: #5814
They will be served using the same css, so in that sense, it will look and feel the same. Plus we (you) will add new content through PRs, so we as core team can always keep an eye on what thing look like.
Yeah, I am sorry but you will have to change your workflow a bit to accommodate this solution, which I know might be annoying but I hope you understand we have many contradicting constraints to work with!
Here are there there might be a small drift, (ie in terms of what headers to use) and we can live with that. Hope you can too! |
In addition to #5720, the Chinese content makes would like to create some additional pages for their content, such as:
I am totally ok with that suggestion, but I am not sure how to practically make that happen, because currently all content exists in all languages and we don’t have support for content only in one language.
The text was updated successfully, but these errors were encountered: