Skip to content

Commit 4b256d5

Browse files
committed
Restructure the project to handle translations
1 parent 69bee2d commit 4b256d5

File tree

256 files changed

+987
-21378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+987
-21378
lines changed

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.1

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ RUN apt-get install ruby-dev -y
1010
RUN apt-get install make gcc g++ -y
1111
RUN bundle install
1212
RUN cat Gemfile.lock
13-
ENTRYPOINT bundle exec jekyll serve
13+
ENTRYPOINT bundle exec jekyll serve --source content/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "github-pages", group: :jekyll_plugins
1919
group :jekyll_plugins do
2020
gem "jekyll-feed", "~> 0.17"
2121
gem "jekyll-include-cache", "~> 0.2"
22-
gem "jekyll-sitemap", "~> 1.4"
22+
gem "copy", :path => "./content/_plugins/copy/"
2323
end
2424

2525
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
PATH
2+
remote: content/_plugins/copy
3+
specs:
4+
copy (0.1.0)
5+
16
GEM
27
remote: https://rubygems.org/
38
specs:
@@ -303,11 +308,11 @@ PLATFORMS
303308
x86_64-linux-musl
304309

305310
DEPENDENCIES
311+
copy!
306312
github-pages
307313
jekyll-feed (~> 0.17)
308314
jekyll-include-cache (~> 0.2)
309315
jekyll-redirect-from
310-
jekyll-sitemap (~> 1.4)
311316
kramdown-parser-gfm
312317
tzinfo-data
313318
webrick (~> 1.8)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ bundle install
3838
5. Build and serve the site locally:
3939

4040
```
41-
bundle exec jekyll serve
41+
bundle exec jekyll serve --source content/
4242
```

_data/languages.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

_data/navigation.yml

Lines changed: 0 additions & 159 deletions
This file was deleted.

_includes/head/custom.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

_includes/masthead.html

Lines changed: 0 additions & 54 deletions
This file was deleted.
File renamed without changes.

_config.yml renamed to content/_config.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
1616

17+
# Localized content for title subtitle and description is located at ''./en/_data/messages.yml'
18+
# and './_data/en/messages.yml'
1719
title: Zarr
1820
subtitle: chunked, compressed, N-dimensional arrays
19-
2021
description: >- # this means to ignore newlines until "baseurl:"
2122
2223
Zarr is an open source project developing specifications and
2324
software libraries for storage of data that is structured as
2425
N-dimensional typed arrays (also known as tensors) in a way that is
2526
compatible with parallel and distributed computing applications.
2627
27-
baseurl: "" # the subpath of your site, e.g. /blog
28+
# baseurl: "/zarr-developers.github.io" # the subpath of your site, e.g. /blog
2829

2930
url: "" # the base hostname & protocol for your site, e.g. http://example.com
3031

@@ -89,3 +90,15 @@ footer:
8990

9091
head_scripts:
9192
- assets/js/language_switcher.js
93+
94+
# Add new languages as translations become available.
95+
# Status of translations can be found at:
96+
# https://scientific-python-translations.github.io/status/#zarrdev
97+
default_language: 'en'
98+
languages:
99+
- prefix: 'en'
100+
label: 'English'
101+
- prefix: 'es'
102+
label: 'Español'
103+
- prefix: 'pt'
104+
label: 'Português'

content/_data/en/messages.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: Zarr
2+
subtitle: chunked, compressed, N-dimensional arrays
3+
description: >-
4+
5+
Zarr is an open source project developing specifications and
6+
software libraries for storage of data that is structured as
7+
N-dimensional typed arrays (also known as tensors) in a way that is
8+
compatible with parallel and distributed computing applications.
9+
10+
content: Content

content/_data/en/navigation.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
main:
2+
- title: "Documentation"
3+
url: "https://zarr.readthedocs.io/en/stable/"
4+
- title: "Contribute"
5+
url: "https://zarr.readthedocs.io/en/stable/developers/contributing.html"
6+
- title: "Python Quickstart"
7+
url: "https://zarr.readthedocs.io/en/stable/quickstart.html"
8+
sidebar:
9+
- title: About
10+
children:
11+
- title: "Description"
12+
url: "#description"
13+
- title: "Applications"
14+
url: "#applications"
15+
- title: "Features"
16+
url: "#features"
17+
- title: "Sponsorship"
18+
url: "#sponsorship"
19+
- title: "Videos"
20+
url: "#videos"
21+
- title: Subpages
22+
children:
23+
- title: "Adopters"
24+
url: "adopters/"
25+
- title: "Blog"
26+
url: "/blog/"
27+
- title: "Community"
28+
url: "community/"
29+
- title: "Conventions"
30+
url: "conventions/"
31+
- title: "Datasets"
32+
url: "datasets/"
33+
- title: "Implementations"
34+
url: "implementations/"
35+
- title: "Office Hours"
36+
url: "office-hours/"
37+
- title: "Slides"
38+
url: "/slides/"
39+
- title: "Specification"
40+
url: https://zarr-specs.readthedocs.io/
41+
- title: "ZEPs"
42+
url: "/zeps/"

content/_data/es/messages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Zarr
2+
subtitle: matrices fragmentadas, comprimidas y N-dimensionales
3+
description: >-
4+
Zarr es un proyecto de código abierto que desarrolla especificaciones y bibliotecas de software para el almacenamiento de datos estructurados como matrices tipadas N-dimensionales (también conocidas como tensores) de una manera que sea compatible con aplicaciones informáticas paralelas y distribuidas.
5+
content: Contenido

0 commit comments

Comments
 (0)