-
Notifications
You must be signed in to change notification settings - Fork 24
Redesign pages using the W3C Jekyll theme #28
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
Open
vivienlacourba
wants to merge
15
commits into
main
Choose a base branch
from
redesign
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9d79451
Move to W3C Jekyll theme
vivienlacourba b6365f6
Rename translations.html to index.md
vivienlacourba e5ca5bd
Rename contribute.html to contribute/index.md
vivienlacourba d0cc822
Rename authorized.html to authorized/index.md
vivienlacourba d77fe66
Move matrix.html to matrix/index.md
vivienlacourba a1d74de
Redesign pages using Markdown and the W3C Jekyll theme. Also update t…
vivienlacourba 1eb3ef0
tweak css for large tables
deniak ebadc91
update unit to vw to make the table more resposive
deniak 1cd33fd
Use a breaking line instead of a dash before the translators name
vivienlacourba 12ebcc2
Move id from <section> to relevant heading so we can use the anchor s…
vivienlacourba b78938e
Wording
vivienlacourba 2979625
Tweak matrix table CSS: reduce some padding
vivienlacourba d2ba366
Tweak matrix table CSS: remove unneeded z-index
vivienlacourba 745b0d8
Tweak matrix table CSS: Increase max-height to 1000px
vivienlacourba a279cb8
Run jekyll without a specific Gemfile
vivienlacourba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Gemfile.lock | ||
| .jekyll-cache | ||
| .jekyll-metadata | ||
| _site | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| source "https://rubygems.org" | ||
| # Hello! This is where you manage which Jekyll version is used to run. | ||
| # When you want to use a different version, change it below, save the | ||
| # file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
| # | ||
| # bundle exec jekyll serve | ||
| # | ||
| # This will help ensure the proper Jekyll version is running. | ||
| # Happy Jekylling! | ||
| gem "jekyll", "~> 4.1.0" | ||
|
|
||
| group :jekyll_plugins do | ||
| gem 'jekyll-relative-links' | ||
| gem 'jekyll-commonmark' | ||
| gem 'jekyll-remote-theme' | ||
| gem 'webrick' | ||
| # gem 'jekyll-toc' | ||
| end | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Welcome to Jekyll! | ||
| # | ||
| # This config file is meant for settings that affect your whole blog, values | ||
| # This config file is meant for settings that affect your whole site, values | ||
| # which you are expected to set up once and rarely edit after that. If you find | ||
| # yourself editing this file very often, consider using Jekyll's data files | ||
| # feature for the data you need to update frequently. | ||
|
|
@@ -14,32 +14,20 @@ | |
| # You can create any custom variable you would like, and they will be accessible | ||
| # in the templates via {{ site.myvariable }}. | ||
| title: "W3C Specification Translations" | ||
| email: [email protected] | ||
| description: Translations of W3C Specifications | ||
| baseurl: "/Translations/" # the subpath of your site, e.g. /blog | ||
| url: "https://www.w3.org" # the base hostname & protocol for your site, e.g. http://example.com | ||
| twitter_username: w3cdevs | ||
| github_username: w3c | ||
| baseurl: "/translations" # the subpath of your site, e.g. /blog | ||
|
|
||
| # Build settings | ||
| markdown: kramdown | ||
| theme: minima | ||
| #plugins: | ||
| # - jekyll-feed | ||
| remote_theme: w3c/w3c-jekyll-theme | ||
|
|
||
| defaults: | ||
| - | ||
| scope: | ||
| path: "" # an empty string here means all files in the project | ||
| values: | ||
| layout: "default" # by default, use the default layout from the theme | ||
|
|
||
| # Exclude from processing. | ||
| # The following items will not be processed, by default. Create a custom list | ||
| # to override the default setting. | ||
| exclude: | ||
| - Gemfile | ||
| - Gemfile.lock | ||
| - node_modules | ||
| - package.json | ||
| - package-lock.json | ||
| - config.json | ||
| - config.json.dist | ||
| - fetch-translation-data.js | ||
| # - vendor/bundle/ | ||
| # - vendor/cache/ | ||
| # - vendor/gems/ | ||
| # - vendor/ruby/ | ||
| - README.md | ||
| - "**/README.md" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| pages: | ||
|
|
||
| - title: Translations of W3C standards and drafts | ||
| url: /translations/ | ||
| html: / | ||
|
|
||
| - title: Contributing to W3C Translations | ||
| url: /translations/contribute/ | ||
| html: /contribute/ | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| path: | ||
| - title: Home | ||
| url: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <div class="component component--text"> | ||
| <p><em>This <a href="https://github.com/w3c/translation-management/">document lives in GitHub</a>, where changes can be tracked and pull requests are welcome. Feedback and comments are welcome. Please use <a href="https://github.com/w3c/translation-management/issues">GitHub issues</a>.</em></p> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| <section id="{{cft.id}}"> | ||
vivienlacourba marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <h2><a href="{{cft['spec-version'].uri}}">{{cft.title}}</a><a class='self-link' href='#{{cft.id}}'></a></h2> | ||
| <ul class=details> | ||
| {%- for translation in cft.translations -%} | ||
| {%- if translation.states contains 'published' -%} | ||
| <li>{% include translation-details.html %}</li> | ||
| {% endif %} | ||
| {%- endfor -%} | ||
| </ul> | ||
| <h3><a href="{{cft['spec-version'].uri}}">{{cft.title}}</a><a class='self-link' href='#{{cft.id}}'></a></h3> | ||
vivienlacourba marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <ul> | ||
| {% for translation in cft.translations -%} | ||
dontcallmedom marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {%- if translation.states contains 'published' -%} | ||
| <li>{% include translation-details.html %}</li> | ||
| {% endif %} | ||
| {%- endfor -%} | ||
| </ul> | ||
| </section> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| <span dir="auto" lang="{{translation.language}}">{{site.data.lang[translation.language].nativeName}}</span> ({{site.data.lang[translation.language].name}}){% if translation.authorized %}<span aria-labelledby="Authorized Translation" aria-role="img"> Authorized</span>{% endif %}: <a hreflang="{{translation.language}}" href="{{translation.uri}}"><cite dir="auto" dir=auto lang={{translation.language}}>{{translation.title}}</cite></a> | ||
| {% if translation.authorized %} | ||
| — Lead Translation Organization: {{ translation['lto_name'] }} | ||
| {% else %} | ||
| {% if translation.translators.size > 0 %} | ||
| — Translators: {% for translator in translation.translators %}{{translator.name}}{% endfor %} | ||
| {% else %} | ||
| — {{ translation.comments | replace: "Translation author", "Translator"}} | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| <strong><span dir="auto" lang="{{translation.language}}">{{site.data.lang[translation.language].nativeName}}</span> ({{site.data.lang[translation.language].name}}){% if translation.authorized %} <span aria-labelledby="Authorized Translation" aria-role="img">Authorized</span>{% endif %}:</strong> <cite dir="auto" lang="{{translation.language}}"><a hreflang="{{translation.language}}" href="{{translation.uri}}">{{translation.title}}</a></cite> — | ||
vivienlacourba marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| {%- if translation.authorized -%} | ||
| Lead Translation Organization: {{ translation['lto_name'] }} | ||
| {%- elsif translation.translators.size > 0 -%} | ||
| Translators: {% for translator in translation.translators %}{{translator.name}}{% endfor %} | ||
| {%- else -%} | ||
| {{ translation.comments | replace: "Translation author", "Translator"}} | ||
| {%- endif -%} | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| title: Authorized Translations of W3C Recommendations | ||
| --- | ||
|
|
||
| [Authorized W3C Translations](https://www.w3.org/2005/02/TranslationPolicy.html) are developed through a process designed to achieve quality translations through transparency and community accountability. They can be used for official purposes in languages other than English. | ||
|
|
||
| See also the [broader list of translations of W3C Recommendations](../) (including volunteer translations). | ||
|
|
||
| {% assign cfts = site.data.translations | sort: "date"|reverse %} | ||
| {%- for cft in cfts -%} | ||
| {% if cft.hasAuthorizedTranslations %} | ||
| <section id="{{cft.id}}"> | ||
| <h2 class="txt-mars"><a href="{{cft['spec-version'].uri}}">{{cft.title}}</a><a class='self-link' href='#{{cft.id}}'></a></h2> | ||
vivienlacourba marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <ul> | ||
| {% for translation in cft.translations -%} | ||
| {%- if translation.states contains 'published' and translation.authorized -%} | ||
| <li>{% include translation-details.html %}</li> | ||
| {% endif %} | ||
| {%- endfor -%} | ||
| </ul> | ||
| </section> | ||
|
|
||
| {% endif -%} | ||
| {%- endfor -%} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.