Skip to content

Commit a20defb

Browse files
Merge branch 'main' into the-federation-layer-v0.6.0
2 parents e26435f + 80b711b commit a20defb

Some content is hidden

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

71 files changed

+1851
-234
lines changed

CONTRIBUTING_DOCS.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributing to docs
2+
3+
In order to translate the docs to your language, there are several steps to be done.
4+
5+
## Preparing the files
6+
7+
In the root folder, go to docs/_pages/docs
8+
9+
Create a folder with your language and copy inside the following folders/files
10+
11+
- /docs/_pages/`contribute`
12+
- /docs/_pages/docs/`00-quick-start`
13+
- /docs/_pages/docs/`01-best-practices`
14+
- /docs/_pages/docs/`02-features`
15+
- /docs/_pages/docs/`03-understand`
16+
- /docs/_pages/`home.md`
17+
- /docs/_pages/`stats.md`
18+
19+
this is how it looks the spanish folder
20+
21+
![spanish expample](/docs/contributeDocsImages/image-1.png "spanish folder")
22+
23+
Then go to `/docs/_includes/` and make a copy of the improve and wip files, adding at the end of them `xxx_{your language}`
24+
25+
![alt text](/docs/contributeDocsImages/image-2.png) ![alt text](/docs/contributeDocsImages/image-3.png)
26+
27+
Go to /docs/_data/ and make a copy of navigation.yml , adding at the end of them `xxx_{your language}`
28+
29+
![alt text](/docs/contributeDocsImages/image.png)
30+
31+
## Start translation
32+
33+
Now go file by file in the folder you created and translate everything
34+
In the beginning of most folders you will find this structure
35+
36+
![alt text](/docs/contributeDocsImages/image-5.png)
37+
38+
Remember to change the title, the permalink and the sidebar title.
39+
This is how it looks once changed, in the permalink, add /{your language}/, and do the same in all links with this structure.
40+
41+
![alt text](/docs/contributeDocsImages/image-6.png)
42+
43+
In order to do this quicker and easier, its better to use a find and replace tool. Here is what it looks in VSCode.
44+
Go to the magnifying glass icon in the left and use this as a sample.
45+
46+
![alt text](/docs/contributeDocsImages/image-9.png)
47+
48+
You can replace all at once, or go one by one
49+
50+
![alt text](/docs/contributeDocsImages/image-11.png)
51+
52+
There will be some files that include at the bottom a include for the improve file or the **wip** file
53+
Use the same tool to change it quick in all files.
54+
55+
![alt text](/docs/contributeDocsImages/image-12.png)
56+
57+
![alt text](/docs/contributeDocsImages/image-13.png)
58+
59+
***
60+
61+
## Menus
62+
63+
### Header Menu
64+
In order to trasnlate the menus, change all the titles and urls in the `/docs/_data/navigation_{your language}.yml` file you copied earlier. Then go to `/docs/_data/convertToJson.js` and change the filename const to your filename
65+
66+
![alt text](/docs/contributeDocsImages/image-15.png)
67+
68+
After that,from the root, run node `node .\docs\_data\converToJson.js`, and a json copy will be generated.
69+
70+
### Sidebar
71+
In the `/docs/_includes/nav_list` file, add 2 lines changing the language, just like in the picture below. (change all ocurrences of **'es'**). Add a {% endif %} at the end.
72+
73+
![alt text](/docs/contributeDocsImages/image-14.png)

docs/Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ gem "webrick"
1313
gem "breakpoint"
1414
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1515
# uncomment the line below. To upgrade, run `bundle update github-pages`.
16-
gem "github-pages", "~> 228", group: :jekyll_plugins
16+
gem "github-pages", "~> 231", group: :jekyll_plugins
1717
# If you have any plugins, put them here!
1818
group :jekyll_plugins do
19-
gem "jekyll-feed", "~> 0.12"
19+
gem "jekyll-feed", "~> 0.17"
2020
end
2121

2222
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

docs/Gemfile.lock

+53-51
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ GEM
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
99
zeitwerk (~> 2.2, >= 2.2.2)
10-
addressable (2.8.4)
10+
addressable (2.8.6)
1111
public_suffix (>= 2.0.2, < 6.0)
1212
breakpoint (2.7.1)
1313
sass (~> 3.3)
1414
sassy-maps (< 1.0.0)
1515
coffee-script (2.4.1)
1616
coffee-script-source
1717
execjs
18-
coffee-script-source (1.11.1)
18+
coffee-script-source (1.12.2)
1919
colorator (1.1.0)
20-
commonmarker (0.23.9)
21-
concurrent-ruby (1.2.2)
20+
commonmarker (0.23.10)
21+
concurrent-ruby (1.2.3)
2222
dnsruby (1.70.0)
2323
simpleidn (~> 0.2.1)
2424
em-websocket (0.5.3)
@@ -27,24 +27,24 @@ GEM
2727
ethon (0.16.0)
2828
ffi (>= 1.15.0)
2929
eventmachine (1.2.7)
30-
execjs (2.8.1)
31-
faraday (2.7.4)
32-
faraday-net_http (>= 2.0, < 3.1)
33-
ruby2_keywords (>= 0.0.4)
34-
faraday-net_http (3.0.2)
35-
ffi (1.15.5)
30+
execjs (2.9.1)
31+
faraday (2.9.0)
32+
faraday-net_http (>= 2.0, < 3.2)
33+
faraday-net_http (3.1.0)
34+
net-http
35+
ffi (1.16.3)
3636
forwardable-extended (2.6.0)
37-
gemoji (3.0.1)
38-
github-pages (228)
39-
github-pages-health-check (= 1.17.9)
40-
jekyll (= 3.9.3)
41-
jekyll-avatar (= 0.7.0)
42-
jekyll-coffeescript (= 1.1.1)
37+
gemoji (4.1.0)
38+
github-pages (231)
39+
github-pages-health-check (= 1.18.2)
40+
jekyll (= 3.9.5)
41+
jekyll-avatar (= 0.8.0)
42+
jekyll-coffeescript (= 1.2.2)
4343
jekyll-commonmark-ghpages (= 0.4.0)
44-
jekyll-default-layout (= 0.1.4)
45-
jekyll-feed (= 0.15.1)
44+
jekyll-default-layout (= 0.1.5)
45+
jekyll-feed (= 0.17.0)
4646
jekyll-gist (= 1.5.0)
47-
jekyll-github-metadata (= 2.13.0)
47+
jekyll-github-metadata (= 2.16.1)
4848
jekyll-include-cache (= 0.2.1)
4949
jekyll-mentions (= 1.6.0)
5050
jekyll-optional-front-matter (= 0.3.2)
@@ -71,28 +71,28 @@ GEM
7171
jekyll-theme-tactile (= 0.2.0)
7272
jekyll-theme-time-machine (= 0.2.0)
7373
jekyll-titles-from-headings (= 0.5.3)
74-
jemoji (= 0.12.0)
75-
kramdown (= 2.3.2)
74+
jemoji (= 0.13.0)
75+
kramdown (= 2.4.0)
7676
kramdown-parser-gfm (= 1.1.0)
7777
liquid (= 4.0.4)
7878
mercenary (~> 0.3)
7979
minima (= 2.5.1)
8080
nokogiri (>= 1.13.6, < 2.0)
81-
rouge (= 3.26.0)
81+
rouge (= 3.30.0)
8282
terminal-table (~> 1.4)
83-
github-pages-health-check (1.17.9)
83+
github-pages-health-check (1.18.2)
8484
addressable (~> 2.3)
8585
dnsruby (~> 1.60)
86-
octokit (~> 4.0)
87-
public_suffix (>= 3.0, < 5.0)
86+
octokit (>= 4, < 8)
87+
public_suffix (>= 3.0, < 6.0)
8888
typhoeus (~> 1.3)
8989
html-pipeline (2.14.3)
9090
activesupport (>= 2)
9191
nokogiri (>= 1.4)
9292
http_parser.rb (0.8.0)
93-
i18n (1.12.0)
93+
i18n (1.14.1)
9494
concurrent-ruby (~> 1.0)
95-
jekyll (3.9.3)
95+
jekyll (3.9.5)
9696
addressable (~> 2.4)
9797
colorator (~> 1.0)
9898
em-websocket (~> 0.5)
@@ -105,27 +105,27 @@ GEM
105105
pathutil (~> 0.9)
106106
rouge (>= 1.7, < 4)
107107
safe_yaml (~> 1.0)
108-
jekyll-avatar (0.7.0)
108+
jekyll-avatar (0.8.0)
109109
jekyll (>= 3.0, < 5.0)
110-
jekyll-coffeescript (1.1.1)
110+
jekyll-coffeescript (1.2.2)
111111
coffee-script (~> 2.2)
112-
coffee-script-source (~> 1.11.1)
112+
coffee-script-source (~> 1.12)
113113
jekyll-commonmark (1.4.0)
114114
commonmarker (~> 0.22)
115115
jekyll-commonmark-ghpages (0.4.0)
116116
commonmarker (~> 0.23.7)
117117
jekyll (~> 3.9.0)
118118
jekyll-commonmark (~> 1.4.0)
119119
rouge (>= 2.0, < 5.0)
120-
jekyll-default-layout (0.1.4)
121-
jekyll (~> 3.0)
122-
jekyll-feed (0.15.1)
120+
jekyll-default-layout (0.1.5)
121+
jekyll (>= 3.0, < 5.0)
122+
jekyll-feed (0.17.0)
123123
jekyll (>= 3.7, < 5.0)
124124
jekyll-gist (1.5.0)
125125
octokit (~> 4.2)
126-
jekyll-github-metadata (2.13.0)
126+
jekyll-github-metadata (2.16.1)
127127
jekyll (>= 3.4, < 5.0)
128-
octokit (~> 4.0, != 4.4.0)
128+
octokit (>= 4, < 7, != 4.4.0)
129129
jekyll-include-cache (0.2.1)
130130
jekyll (>= 3.7, < 5.0)
131131
jekyll-mentions (1.6.0)
@@ -196,16 +196,16 @@ GEM
196196
jekyll (>= 3.3, < 5.0)
197197
jekyll-watch (2.2.1)
198198
listen (~> 3.0)
199-
jemoji (0.12.0)
200-
gemoji (~> 3.0)
199+
jemoji (0.13.0)
200+
gemoji (>= 3, < 5)
201201
html-pipeline (~> 2.2)
202202
jekyll (>= 3.0, < 5.0)
203-
kramdown (2.3.2)
203+
kramdown (2.4.0)
204204
rexml
205205
kramdown-parser-gfm (1.1.0)
206206
kramdown (~> 2.0)
207207
liquid (4.0.4)
208-
listen (3.8.0)
208+
listen (3.9.0)
209209
rb-fsevent (~> 0.10, >= 0.10.3)
210210
rb-inotify (~> 0.9, >= 0.9.10)
211211
mercenary (0.3.6)
@@ -220,22 +220,23 @@ GEM
220220
jekyll-include-cache (~> 0.1)
221221
jekyll-paginate (~> 1.1)
222222
jekyll-sitemap (~> 1.3)
223-
minitest (5.18.0)
224-
nokogiri (1.14.3-x86_64-linux)
223+
minitest (5.22.2)
224+
net-http (0.4.1)
225+
uri
226+
nokogiri (1.16.2-x86_64-linux)
225227
racc (~> 1.4)
226228
octokit (4.25.1)
227229
faraday (>= 1, < 3)
228230
sawyer (~> 0.9)
229231
pathutil (0.16.2)
230232
forwardable-extended (~> 2.6)
231-
public_suffix (4.0.7)
232-
racc (1.6.2)
233+
public_suffix (5.0.4)
234+
racc (1.7.3)
233235
rb-fsevent (0.11.2)
234236
rb-inotify (0.10.1)
235237
ffi (~> 1.0)
236-
rexml (3.2.5)
237-
rouge (3.26.0)
238-
ruby2_keywords (0.0.5)
238+
rexml (3.2.6)
239+
rouge (3.30.0)
239240
rubyzip (2.3.2)
240241
safe_yaml (1.0.5)
241242
sass (3.7.4)
@@ -253,26 +254,27 @@ GEM
253254
terminal-table (1.8.0)
254255
unicode-display_width (~> 1.1, >= 1.1.1)
255256
thread_safe (0.3.6)
256-
typhoeus (1.4.0)
257+
typhoeus (1.4.1)
257258
ethon (>= 0.9.0)
258259
tzinfo (1.2.10)
259260
thread_safe (~> 0.1)
260261
unf (0.1.4)
261262
unf_ext
262-
unf_ext (0.0.8.2)
263+
unf_ext (0.0.9.1)
263264
unicode-display_width (1.8.0)
265+
uri (0.13.0)
264266
webrick (1.8.1)
265-
zeitwerk (2.6.7)
267+
zeitwerk (2.6.13)
266268

267269
PLATFORMS
268270
x86_64-linux
269271
x86_64-linux-musl
270272

271273
DEPENDENCIES
272274
breakpoint
273-
github-pages (~> 228)
275+
github-pages (~> 231)
274276
http_parser.rb (~> 0.6.0)
275-
jekyll-feed (~> 0.12)
277+
jekyll-feed (~> 0.17)
276278
jekyll-include-cache
277279
minimal-mistakes-jekyll
278280
tzinfo (~> 1.2)

docs/_data/converToJson.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const fs = require('fs');
2+
const yaml = require('js-yaml');
3+
4+
const fileName = 'navigation_{your languageD}';
5+
6+
// Read YAML file
7+
const yamlData = fs.readFileSync(`./docs/_data/${fileName}.yml`, 'utf8');
8+
9+
// Parse YAML to JavaScript object
10+
const jsonData = yaml.load(yamlData);
11+
12+
// Convert JavaScript object to JSON
13+
const jsonContent = JSON.stringify(jsonData, null, 2);
14+
15+
// Write JSON to file
16+
fs.writeFileSync(`./docs/header-menu-jsons/${fileName}.json`, jsonContent, 'utf8');
17+
18+
console.log('Conversion completed successfully!');

docs/_data/navigation.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,5 @@ contribute:
122122
- title: '<span class="side-bar-item">&nbsp;&nbsp;<img id="side-icon-small" src="/assets/vector/bullhorn.svg"/>Outreach</span>'
123123
url: /contribute/outreach/
124124
- title: '<span class="side-bar-item">&nbsp;&nbsp;<img id="side-icon-small" src="/assets/vector/bitcoin.svg"/>Donate</span>'
125-
url: /contribute/donate/
125+
url: /contribute/donate/
126+

0 commit comments

Comments
 (0)