Skip to content
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

Jss #342

Closed
wants to merge 3,990 commits into from
Closed

Jss #342

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3990 commits
Select commit Hold shift + click to select a range
eeef0d6
New translations mkcp.md (Korean)
VictoriaRaymond May 13, 2019
98cb8ce
New translations quic.md (Korean)
VictoriaRaymond May 13, 2019
d0b2ed8
New translations README.md (Korean)
VictoriaRaymond May 13, 2019
9363240
New translations routing.md (Korean)
VictoriaRaymond May 13, 2019
881e9bf
New translations transport.md (Korean)
VictoriaRaymond May 13, 2019
79c8966
New translations api.md (Korean)
VictoriaRaymond May 13, 2019
e1b83a7
New translations overview.md (Korean)
VictoriaRaymond May 13, 2019
32f6ad8
New translations env.md (Korean)
VictoriaRaymond May 13, 2019
e46219f
New translations stats.md (Korean)
VictoriaRaymond May 13, 2019
263e099
New translations dns.md (Korean)
VictoriaRaymond May 13, 2019
2b72fd0
New translations faq.md (Persian)
VictoriaRaymond May 13, 2019
bbde001
New translations h2.md (Persian)
VictoriaRaymond May 13, 2019
0bf8893
New translations overview.md (Russian)
VictoriaRaymond May 13, 2019
3693b27
New translations workflow.md (Russian)
VictoriaRaymond May 13, 2019
87450ac
New translations ads.md (Persian)
VictoriaRaymond May 13, 2019
fade5bf
New translations tools.md (Persian)
VictoriaRaymond May 13, 2019
ef36e0e
New translations README.md (Russian)
VictoriaRaymond May 13, 2019
c480730
New translations install.md (Russian)
VictoriaRaymond May 13, 2019
9b6153b
New translations help.md (Russian)
VictoriaRaymond May 13, 2019
4c7f04d
New translations donate.md (Russian)
VictoriaRaymond May 13, 2019
8c54db0
New translations versions.md (Russian)
VictoriaRaymond May 13, 2019
da68bfa
New translations start.md (Russian)
VictoriaRaymond May 13, 2019
a7c36a4
New translations command.md (Russian)
VictoriaRaymond May 13, 2019
e974785
New translations faq.md (Russian)
VictoriaRaymond May 13, 2019
c02c23a
New translations domainsocket.md (Russian)
VictoriaRaymond May 13, 2019
89f4d29
New translations h2.md (Russian)
VictoriaRaymond May 13, 2019
edfb17e
New translations websocket.md (Russian)
VictoriaRaymond May 13, 2019
e648277
New translations tcp.md (Russian)
VictoriaRaymond May 13, 2019
34abc30
New translations mkcp.md (Russian)
VictoriaRaymond May 13, 2019
4b91443
New translations quic.md (Russian)
VictoriaRaymond May 13, 2019
1ae5fc5
New translations README.md (Russian)
VictoriaRaymond May 13, 2019
489421e
New translations routing.md (Russian)
VictoriaRaymond May 13, 2019
7005742
New translations transport.md (Russian)
VictoriaRaymond May 13, 2019
bed16f6
New translations api.md (Russian)
VictoriaRaymond May 13, 2019
67d87e6
New translations reverse.md (Persian)
VictoriaRaymond May 13, 2019
03065cd
New translations websocket.md (Persian)
VictoriaRaymond May 13, 2019
e5a8764
New translations dns.md (Persian)
VictoriaRaymond May 13, 2019
0f727cf
New translations tcp.md (Persian)
VictoriaRaymond May 13, 2019
f0c4250
New translations mkcp.md (Persian)
VictoriaRaymond May 13, 2019
a1ee859
New translations quic.md (Persian)
VictoriaRaymond May 13, 2019
7f2eed4
New translations README.md (Persian)
VictoriaRaymond May 13, 2019
502b40c
New translations routing.md (Persian)
VictoriaRaymond May 13, 2019
0f8228e
New translations transport.md (Persian)
VictoriaRaymond May 13, 2019
28b688d
New translations api.md (Persian)
VictoriaRaymond May 13, 2019
1961c30
New translations overview.md (Persian)
VictoriaRaymond May 13, 2019
363f0d3
New translations env.md (Persian)
VictoriaRaymond May 13, 2019
8656d97
New translations stats.md (Persian)
VictoriaRaymond May 13, 2019
8d4b8a0
New translations protocols.md (Persian)
VictoriaRaymond May 13, 2019
871219b
New translations freedom.md (Persian)
VictoriaRaymond May 13, 2019
695db70
New translations vmess.md (Persian)
VictoriaRaymond May 13, 2019
3fe7794
New translations blackhole.md (Persian)
VictoriaRaymond May 13, 2019
9e7c04a
New translations mtproto.md (Persian)
VictoriaRaymond May 13, 2019
9eed91b
New translations shadowsocks.md (Persian)
VictoriaRaymond May 13, 2019
b88618e
New translations http.md (Persian)
VictoriaRaymond May 13, 2019
a2b7787
New translations socks.md (Persian)
VictoriaRaymond May 13, 2019
aca075c
New translations dns.md (Persian)
VictoriaRaymond May 13, 2019
d3e21c9
New translations policy.md (Persian)
VictoriaRaymond May 13, 2019
683c78c
New translations mux.md (Persian)
VictoriaRaymond May 13, 2019
d92a1f0
New translations tools.md (Vietnamese)
VictoriaRaymond May 13, 2019
46def26
Merge pull request #256 from v2ray/l10n_master
May 23, 2019
e36a278
Proposed fix for rtl in Farsi
mmsaffari May 26, 2019
2ad60e0
Merge pull request #267 from mmsaffari/master
kslr May 26, 2019
4b28abd
v2fly group
kslr May 31, 2019
e56064f
New translations help.md (Persian)
VictoriaRaymond May 31, 2019
3ca7e05
New translations help.md (Korean)
VictoriaRaymond May 31, 2019
b8a9b40
New translations help.md (Vietnamese)
VictoriaRaymond May 31, 2019
0519ae7
New translations help.md (Russian)
VictoriaRaymond May 31, 2019
2b133a6
New translations help.md (Spanish)
VictoriaRaymond May 31, 2019
8799e74
Update tools.md
yanue Jun 9, 2019
9490b5d
Update tools.md
yanue Jun 9, 2019
bb5df07
Improve Linux Install Script
pi0 Jul 9, 2019
2a9bae7
changes for 4.20
vcptr Jul 13, 2019
a73853a
Merge pull request #273 from vcptr/raymaster
kslr Jul 13, 2019
ddfe6db
[Add] 添加 Qv2ray Linux 图形客户端
lhy0403 Jul 14, 2019
35b07fd
add detailed compile instruction
vcptr Jul 15, 2019
0b16d2c
Merge pull request #276 from vcptr/raymaster
kslr Jul 15, 2019
a553862
version logs
kslr Jul 15, 2019
fb86445
Update 01_versions.md
kslr Aug 10, 2019
f342be3
Update tools.md
lhy0403 Aug 18, 2019
3189274
Update tools.md
lhy0403 Aug 18, 2019
ae5138e
New translations vmess.md (Persian)
VictoriaRaymond Sep 10, 2019
de658f3
New translations README.md (Russian)
VictoriaRaymond Sep 12, 2019
a80ac3e
New translations SUMMARY.md (Russian)
VictoriaRaymond Sep 12, 2019
5529da2
New translations install.md (Russian)
VictoriaRaymond Sep 12, 2019
3921c68
New translations faq.md (Russian)
VictoriaRaymond Sep 12, 2019
150ae5a
New translations faq.md (Russian)
VictoriaRaymond Sep 12, 2019
3a0401a
New translations faq.md (Russian)
VictoriaRaymond Sep 12, 2019
f563ebe
New translations stats.md (Russian)
VictoriaRaymond Sep 12, 2019
6281015
New translations tools.md (Russian)
VictoriaRaymond Sep 12, 2019
19dc506
New translations donate.md (Russian)
VictoriaRaymond Sep 12, 2019
ade015b
New translations env.md (Russian)
VictoriaRaymond Sep 12, 2019
b970c0f
New translations mux.md (Russian)
VictoriaRaymond Sep 12, 2019
612f2b3
New translations donate.md (Russian)
VictoriaRaymond Sep 12, 2019
212b322
New translations donate.md (Russian)
VictoriaRaymond Sep 12, 2019
b222a41
New translations help.md (Russian)
VictoriaRaymond Sep 12, 2019
92000de
New translations help.md (Russian)
VictoriaRaymond Sep 12, 2019
b6c99c6
New translations command.md (Russian)
VictoriaRaymond Sep 12, 2019
794a285
New translations command.md (Russian)
VictoriaRaymond Sep 12, 2019
ed9eaf9
New translations command.md (Russian)
VictoriaRaymond Sep 12, 2019
9fdf093
添加 Qv2ray 官网地址
lhy0403 Sep 12, 2019
cb1f486
Mistypes, incorrect link
AHOHNMYC Sep 12, 2019
0bdccfb
Merge pull request #279 from AHOHNMYC/master
kslr Sep 12, 2019
97831f4
New translations faq.md (Russian)
VictoriaRaymond Sep 12, 2019
f75610e
New translations donate.md (Russian)
VictoriaRaymond Sep 12, 2019
0d14403
New translations command.md (Russian)
VictoriaRaymond Sep 12, 2019
1c4ef9c
New translations donate.md (Korean)
VictoriaRaymond Sep 12, 2019
41cfca8
New translations command.md (Korean)
VictoriaRaymond Sep 12, 2019
d9904ff
New translations faq.md (Korean)
VictoriaRaymond Sep 12, 2019
d365d1d
New translations donate.md (Persian)
VictoriaRaymond Sep 12, 2019
e8d2065
New translations command.md (Persian)
VictoriaRaymond Sep 12, 2019
8bb3629
New translations faq.md (Persian)
VictoriaRaymond Sep 12, 2019
62f390a
New translations donate.md (Spanish)
VictoriaRaymond Sep 12, 2019
198f503
New translations command.md (Spanish)
VictoriaRaymond Sep 12, 2019
1ee46d7
New translations faq.md (Spanish)
VictoriaRaymond Sep 12, 2019
bd3b9c7
New translations donate.md (Vietnamese)
VictoriaRaymond Sep 12, 2019
2d2da5e
New translations command.md (Vietnamese)
VictoriaRaymond Sep 12, 2019
8b855ed
New translations faq.md (Vietnamese)
VictoriaRaymond Sep 12, 2019
6f98dc9
Merge pull request #269 from yanue/master
kslr Sep 14, 2019
dc58ec3
Merge branch 'master' into l10n_master
kslr Sep 14, 2019
fa8f893
Merge pull request #268 from v2ray/l10n_master
kslr Sep 14, 2019
572fc91
New translations help.md (Russian)
VictoriaRaymond Sep 14, 2019
58859dd
New translations command.md (Russian)
VictoriaRaymond Sep 14, 2019
5eccb71
New translations faq.md (Russian)
VictoriaRaymond Sep 14, 2019
6fe5880
New translations donate.md (Russian)
VictoriaRaymond Sep 14, 2019
0570e76
New translations help.md (Russian)
VictoriaRaymond Sep 14, 2019
b8b047b
New translations command.md (Russian)
VictoriaRaymond Sep 14, 2019
7931d57
Merge pull request #280 from v2ray/l10n_master
kslr Sep 15, 2019
94f10ef
Merge pull request #272 from pi0/patch-1
kslr Sep 15, 2019
af1adc3
New translations install.md (Russian)
VictoriaRaymond Sep 15, 2019
6d81128
New translations install.md (Korean)
VictoriaRaymond Sep 15, 2019
519b80c
New translations install.md (Persian)
VictoriaRaymond Sep 15, 2019
fe19f6f
New translations install.md (Spanish)
VictoriaRaymond Sep 15, 2019
69fd4a2
New translations install.md (Vietnamese)
VictoriaRaymond Sep 15, 2019
06cc76e
Merge pull request #281 from v2ray/l10n_master
kslr Sep 15, 2019
703d7c6
Added more details and an English version.
lhy0403 Sep 18, 2019
9c5c045
Merge pull request #274 from lhy0403/master
kslr Sep 24, 2019
4213840
New translations tools.md (Korean)
VictoriaRaymond Sep 24, 2019
a6ba8d3
New translations tools.md (Persian)
VictoriaRaymond Sep 24, 2019
f034a64
New translations tools.md (Russian)
VictoriaRaymond Sep 24, 2019
c6c0922
New translations tools.md (Spanish)
VictoriaRaymond Sep 24, 2019
f1f5d3c
New translations tools.md (Vietnamese)
VictoriaRaymond Sep 24, 2019
7167062
Merge pull request #284 from v2ray/l10n_master
kslr Sep 24, 2019
a7a6ade
New translations dns.md (Russian)
VictoriaRaymond Sep 24, 2019
a577ced
New translations dns.md (Russian)
VictoriaRaymond Sep 24, 2019
d6cdcfb
Merge pull request #285 from v2ray/l10n_master
kslr Sep 25, 2019
39d32cf
Update help.md
kslr Sep 29, 2019
3e50a82
very minor update
s5unty Oct 12, 2019
b939c33
Update tools.md
neatgz Oct 12, 2019
22042a3
Merge pull request #288 from s5unty/master
kslr Oct 12, 2019
9b27e96
Merge pull request #289 from neatgz/patch-6
kslr Oct 12, 2019
06cc075
Update 04_dns.md
ToutyRater Oct 26, 2019
ba6f21b
Update 04_dns.md
ToutyRater Oct 26, 2019
05b29e8
add http proxy outboud doc
vcptr Oct 26, 2019
0a313c0
Merge pull request #292 from vcptr/http
kslr Oct 26, 2019
66204a3
Merge pull request #291 from ToutyRater/master
kslr Oct 26, 2019
96bc7f2
fix hint block error
vcptr Oct 26, 2019
e98f618
Merge pull request #293 from vcptr/dev
kslr Oct 26, 2019
780575c
Update http.md
kslr Nov 1, 2019
7f6641e
clearer desc on http forward usage
vcptr Nov 18, 2019
3fba535
Merge pull request #295 from v2fly/raymaster
kslr Nov 18, 2019
2332757
add dns expectIPs config and flowchart
weaving118 Nov 20, 2019
dc97e49
add V2Ray 4.22.0+
weaving118 Nov 20, 2019
575e7e3
add space around english word
weaving118 Nov 20, 2019
aed4370
add doh doc
vcptr Nov 28, 2019
db1e5a1
mux desc
vcptr Nov 28, 2019
641be3a
Merge pull request #299 from vcptr/doh
kslr Nov 28, 2019
dbbdb57
Merge pull request #296 from weaving118/master
kslr Nov 28, 2019
dc121bc
dns desc mod
vcptr Nov 28, 2019
ce520c5
Merge pull request #300 from v2fly/fixdoc
kslr Nov 28, 2019
370262a
remove v2rayS
kslr Nov 28, 2019
6b7d4d9
New translations tools.md (Korean)
VictoriaRaymond Nov 28, 2019
1441627
New translations tools.md (Persian)
VictoriaRaymond Nov 28, 2019
eacee18
New translations tools.md (Russian)
VictoriaRaymond Nov 28, 2019
5f6cf20
New translations tools.md (Spanish)
VictoriaRaymond Nov 28, 2019
3638618
New translations tools.md (Vietnamese)
VictoriaRaymond Nov 28, 2019
d1ffcc5
Merge pull request #302 from v2ray/l10n_master
kslr Nov 28, 2019
2f27778
clear ads
kslr Nov 28, 2019
b8d2419
Merge branch 'master' of github.com:v2ray/manual
kslr Nov 28, 2019
44ea738
New translations ads.md (Korean)
VictoriaRaymond Nov 28, 2019
0e03e00
New translations ads.md (Persian)
VictoriaRaymond Nov 28, 2019
8f12fe3
New translations ads.md (Russian)
VictoriaRaymond Nov 28, 2019
2aaa25c
New translations ads.md (Spanish)
VictoriaRaymond Nov 28, 2019
5588f10
New translations ads.md (Vietnamese)
VictoriaRaymond Nov 28, 2019
d0ac309
Merge pull request #303 from v2ray/l10n_master
kslr Nov 28, 2019
86b90e4
add Mellow
Nov 30, 2019
53db0e9
Merge pull request #304 from mellow-io/add-mellow
kslr Nov 30, 2019
f18c2b2
New translations tools.md (Korean)
VictoriaRaymond Nov 30, 2019
9d29b84
New translations tools.md (Persian)
VictoriaRaymond Nov 30, 2019
50f44ab
New translations tools.md (Russian)
VictoriaRaymond Nov 30, 2019
84d87ef
New translations tools.md (Spanish)
VictoriaRaymond Nov 30, 2019
8f3f48e
New translations tools.md (Vietnamese)
VictoriaRaymond Nov 30, 2019
394f0b5
Merge pull request #305 from v2ray/l10n_master
kslr Nov 30, 2019
ea32791
doh use rfc8484 style url
vcptr Dec 6, 2019
8e88af3
fix example
vcptr Dec 6, 2019
7b1e4d2
Merge pull request #306 from v2fly/rfc8484
kslr Dec 6, 2019
4018fe1
doh desc fix
vcptr Dec 9, 2019
8656ae3
Merge pull request #307 from v2fly/rfc8484
kslr Dec 9, 2019
b906315
Update 04_dns.md
rhjdvsgsgks Jan 1, 2020
872f405
Merge pull request #308 from rhjdvsgsgks/patch-1
kslr Jan 1, 2020
1a7d87a
update Qv2ray info
Jan 19, 2020
36a3ebd
Update tools.md
Jan 22, 2020
2837223
Update tools.md
Jan 22, 2020
31b6645
Update tools.md
Jan 22, 2020
5e4701b
Merge pull request #310 from Qv2ray-Bot/master
kslr Feb 3, 2020
8111023
update 05_transport.md 启入 -> 启用
xiangwan Feb 9, 2020
e0f8aba
Merge pull request #314 from xiangwan/patch-1
kslr Feb 9, 2020
eb06fa8
remove sponsors
kslr Feb 11, 2020
1f8f465
remove V2RayC
kslr Feb 11, 2020
1e5f702
typo
ToutyRater Mar 2, 2020
d13f6fd
Merge pull request #316 from ToutyRater/patch-2
kslr Mar 2, 2020
63eeb4a
merge fly
vcptr Jan 6, 2020
05dfb92
add env/example
vcptr Jan 6, 2020
a124534
seperate multi config
vcptr Jan 6, 2020
5a91e06
fix env link
vcptr Jan 6, 2020
bdab548
multi config add info hint
vcptr Mar 22, 2020
b1d683c
update multiconfig upstart info
vcptr Mar 22, 2020
080fd8b
add workflow badge
vcptr Mar 22, 2020
c5ad4d1
fix misleading filenames
vcptr Mar 22, 2020
6ee79ad
proper wording
vcptr Mar 22, 2020
9c9b0e3
example detail updated
vcptr Mar 22, 2020
29b0e1c
multiconfig, env priority wording
vcptr Mar 23, 2020
d0fdd73
For migration of installation scripts
dctxmei Mar 27, 2020
6653091
Update compile.md
netroby Apr 4, 2020
a0f928e
Update compile.md
kslr Apr 4, 2020
50f04ea
Merge pull request #321 from netroby/patch-1
kslr Apr 4, 2020
c872b72
delete speedtest
MamaShip Apr 24, 2020
7b59846
delete speedtest -- sync to other language
MamaShip Apr 24, 2020
4769dd0
Merge pull request #322 from MamaShip/master
kslr Apr 24, 2020
803f872
English Translation Improvements
May 4, 2020
04a4f20
Update tools.md
ChungZH May 31, 2020
729afca
Update tools.md
ChungZH May 31, 2020
6d274ce
Update tools.md
ChungZH May 31, 2020
95f0498
Update tools.md
ChungZH May 31, 2020
e1c6ead
Update tools.md
ChungZH May 31, 2020
c615eab
Merge pull request #326 from ChungZH/master
kslr May 31, 2020
afd9dfd
update
kslr Jun 1, 2020
1430a16
Create deploy.yml
kslr Jun 3, 2020
43cd9de
fix written error
h2ws Jun 12, 2020
d3caec8
Update README.md
kslr Jul 8, 2020
be8e4b4
Update README.md
kslr Jul 8, 2020
56362ce
Update deploy.sh
kslr Jul 10, 2020
04c643d
Merge pull request #328 from oyydd/master
Jul 21, 2020
011a2f4
pass GITHUB_TOKEN
Jul 21, 2020
d125369
Merge pull request #331 from iochen/master
Jul 21, 2020
4770a39
remove schedule on PR
Jul 22, 2020
4e64dd2
Merge pull request #333 from iochen/iochen-patch-1
Jul 22, 2020
22c8ed5
Update README.md
kslr Aug 8, 2020
0a970a9
Update vmess.md
adhamrait Nov 2, 2020
e1bb6d8
Merge pull request #339 from adhamrait/patch-1
kslr Nov 2, 2020
5c1a784
Update deploy.sh
kslr Nov 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Scheduled deployment

on:
push:
branches: [ master ]
schedule:
- cron: '0 0 * * *'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Deploy
run: ./deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.DS_Store
*.config
.idea
.vscode
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
# V2Ray.com

This is the source code for building [v2ray.com](https://www.v2ray.com/).

The code is written as [Gitbook](https://www.gitbook.com/) format, and deployed by project admin.

## License

This work is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
# Move to https://github.com/v2fly/v2fly-github-io
8 changes: 7 additions & 1 deletion _layouts/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
}
function isValidDomain() {
var host = window.location.hostname;
return host.indexOf('v2ray.com') >= 0 || host.indexOf('github') >= 0;
var domains = ['v2ray.com', 'github.io', 'mux.cool', 'v2ray.cool', 'archive.org'];
for (var dx in domains) {
if (host.indexOf(domains[dx]) >= 0) {
return true;
}
}
return false;
}
if (inIframe() || !isValidDomain()) {
window.top.location.href = 'https://www.v2ray.com/';
Expand Down
31 changes: 31 additions & 0 deletions _layouts/website/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% block book_header %}
<div class="book-header" role="navigation">
{% if glossary.path %}
<a href="{{ ('/' + glossary.path)|resolveFile }}" class="btn pull-left" aria-label="{{ "GLOSSARY_OPEN"|t }}"><i class="fa fa-sort-alpha-asc"></i></a>
{% endif %}

{% if page.refcn and page.refen %}
<a class="btn pull-left" href="/{{ page.refcn }}.html" target="_blank">
<img src="/resources/flag_cn.svg" alt="Chinese" height="16">
</a>
<a class="btn pull-left" href="/en/{{ page.refen }}.html" target="_blank">
<img src="/resources/flag_en.svg" alt="English" height="16">
</a>
<a class="btn pull-left" href="/ru/{{ page.refen }}.html" target="_blank">
<img src="/resources/flag_ru.svg" alt="Russian" height="16">
</a>
<a class="btn pull-left" href="/ko/{{ page.refen }}.html" target="_blank">
<img src="/resources/flag_ko.svg" alt="Korean" height="16">
</a>
<a class="btn pull-left" href="/fa/{{ page.refen }}.html" target="_blank">
<img src="/resources/flag_fa.svg" alt="Persian" height="16">
</a>
<a class="btn pull-left" href="/vi/{{ page.refen }}.html" target="_blank">
<img src="/resources/flag_vi.svg" alt="Vietnamese" height="16">
</a>
<a class="btn pull-left" href="https://crowdin.com/project/v2ray" target="_blank">
<img src="/resources/translate.png" alt="Translate" height="16">
</a>
{% endif %}
</div>
{% endblock %}
5 changes: 5 additions & 0 deletions _layouts/website/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<link rel="apple-touch-icon-precomposed" sizes="180x180" type="image/png" href="/resources/favicon-180.png">
<link rel="icon" type="image/png" href="/resources/favicon-192.png">
<link rel="shortcut icon" href="/resources/favicon.ico" type="image/x-icon">
{% if config.language == "zh" %}
<link href="https://fonts.loli.net/css?family=Source+Code+Pro:400|Open+Sans:400,700&amp;subset=cyrillic" rel="stylesheet">
{% else %}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400|Open+Sans:400,700&amp;subset=cyrillic" rel="stylesheet">
{% endif %}
{% endblock %}

{% block style %}
Expand Down
15 changes: 3 additions & 12 deletions _layouts/website/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<script src="{{ resource.path|resolveAsset }}"></script>
{% endif %}
{% endfor %}
{% if config.pluginsConfig['mermaid-gb3'] %}
<script src="{{ "gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"|resolveAsset }}"></script>
{% endif %}
{% endblock %}

{% block body %}
Expand Down Expand Up @@ -59,18 +62,6 @@
{% endblock %}
</div>

{% block book_navigation %}
{% if page.previous and page.previous.path %}
<a href="{{ page.previous.path|resolveFile }}{{ page.previous.anchor }}" class="navigation navigation-prev {% if not (page.next and page.next.path) %}navigation-unique{% endif %}" aria-label="Previous page: {{ page.previous.title }}">
<i class="fa fa-angle-left"></i>
</a>
{% endif %}
{% if page.next and page.next.path %}
<a href="{{ page.next.path|resolveFile }}{{ page.next.anchor }}" class="navigation navigation-next {% if not (page.previous and page.previous.path) %}navigation-unique{% endif %}" aria-label="Next page: {{ page.next.title }}">
<i class="fa fa-angle-right"></i>
</a>
{% endif %}
{% endblock %}
{% endblock %}
</div>

Expand Down
19 changes: 19 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
jobs:
- job: build_upload
timeoutInMinutes: 30

pool:
vmImage: 'ubuntu-16.04'

steps:
- checkout: self
clean: true
fetchDepth: 5
- script: |
ls -al
./deploy.sh
env:
GITHUB_TOKEN: '$(github.token)'
workingDirectory: '$(Build.SourcesDirectory)'
displayName: 'Build'

10 changes: 10 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

PROJECT=$1

echo "Removing previous machines."
gcloud compute instances list --project ${PROJECT} | grep TERMINATED \
| awk '{printf "%s --zone %s\n", $1, $2}' \
| while read LINE; do
gcloud --quiet compute instances delete ${LINE} --project ${PROJECT}
done
3 changes: 3 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
files:
- source: /en/**/*.md
translation: /%two_letters_code%/**/%original_file_name%
43 changes: 16 additions & 27 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,27 @@
#!/bin/bash

set -x

curl -sL https://deb.nodesource.com/setup_7.x | bash -
apt-get update
apt-get -y install jq git file nodejs build-essential
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt -y install jq git file nodejs build-essential

function build_dir {
DIR="$1"
pushd $DIR
rsync -rv ../_layouts/ ./_layouts/
rsync -rv ../resources/ ./resources/
cp ../donor.md ./donor.md
gitbook init
gitbook install
gitbook build
popd
}

function getattr() {
curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/$2/attributes/$1
}

GITHUB_TOKEN=$(getattr "github_token" "project")

git clone https://github.com/v2ray/manual.git
cd manual

curl -o "./resources/github-release.svg" "https://img.shields.io/github/release/v2ray/v2ray-core.svg"

npm install gitbook-cli -g
sudo npm install -g gitbook-cli

build_dir zh_cn
build_dir en
build_dir eng_zh_cn
build_dir eng_en
build_dir ru
build_dir ko
build_dir fa
build_dir vi

TARGET_DIR=_v2ray_com

Expand All @@ -44,22 +31,24 @@ rm -rf ${TARGET_DIR}/*
cp -r ./zh_cn/_book/* ${TARGET_DIR}/
mkdir ${TARGET_DIR}/en/
cp -r ./en/_book/* ${TARGET_DIR}/en/
mkdir ${TARGET_DIR}/eng/
cp -r ./eng_zh_cn/_book/* ${TARGET_DIR}/eng/
mkdir ${TARGET_DIR}/eng_en/
cp -r ./eng_en/_book/* ${TARGET_DIR}/eng_en/
mkdir ${TARGET_DIR}/ru/
cp -r ./ru/_book/* ${TARGET_DIR}/ru/
mkdir ${TARGET_DIR}/ko/
cp -r ./ko/_book/* ${TARGET_DIR}/ko/
mkdir ${TARGET_DIR}/fa/
cp -r ./fa/_book/* ${TARGET_DIR}/fa/
mkdir ${TARGET_DIR}/vi/
cp -r ./vi/_book/* ${TARGET_DIR}/vi/
cp -r ./_dev/* ${TARGET_DIR}/
cp CNAME ${TARGET_DIR}/
cp robots.txt ${TARGET_DIR}/
cp -r ./resources/* ${TARGET_DIR}/resources/

pushd ${TARGET_DIR}
git config user.name "V2Ray Auto Build"
git config user.email "admin@v2ray.com"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"

git add -A
git commit -m 'update'
git push "https://${GITHUB_TOKEN}@github.com/v2ray/v2ray.github.io.git" master
popd

shutdown -h now
152 changes: 0 additions & 152 deletions donor.md

This file was deleted.

Loading
Loading