Skip to content

Commit 83d05c9

Browse files
committed
Set website back for fr.vuejs.org :
+ Remove `<base>` + transform all `from relative` path into `from root` path + Change place of `Exemple` word in title for examples pages. Signed-off-by: Bruno Lesieur <[email protected]>
1 parent c1ecff2 commit 83d05c9

File tree

11 files changed

+38
-39
lines changed

11 files changed

+38
-39
lines changed

src/v2/examples/hackernews.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ order: 10
99
{% raw %}
1010
<div style="max-width:600px">
1111
<a href="https://github.com/vuejs/vue-hackernews-2.0" target="_blank">
12-
<img style="width:100%" src="./images/hn.png">
12+
<img style="width:100%" src="/images/hn.png">
1313
</a>
1414
</div>
1515
{% endraw %}
@@ -32,4 +32,4 @@ order: 10
3232

3333
## Présentation d'architecture
3434

35-
<img width="973" alt="Présentation d'architecture clone Hackernew" src="./images/hn-architecture.png">
35+
<img width="973" alt="Présentation d'architecture clone Hackernew" src="/images/hn-architecture.png">

src/v2/guide/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ro_gz_size: "17.67"
1111

1212
### Compatibility Note
1313

14-
Vue does **not** support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all [ECMAScript 5 compliant browsers](http://caniuse.com/#feat=es5).
14+
<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p>Vue does **not** support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all [ECMAScript 5 compliant browsers](http://caniuse.com/#feat=es5).
1515

1616
### Release Notes
1717

@@ -93,7 +93,7 @@ $ npm install
9393
$ npm run dev
9494
```
9595

96-
<p class="tip">The CLI assumes prior knowledge of Node.js and the associated build tools. If you are new to Vue or front-end build tools, we strongly suggest going through <a href="./">the guide</a> without any build tools before using the CLI.</p>
96+
<p class="tip">The CLI assumes prior knowledge of Node.js and the associated build tools. If you are new to Vue or front-end build tools, we strongly suggest going through <a href="/">the guide</a> without any build tools before using the CLI.</p>
9797

9898
## Dev Build
9999

themes/vue/layout/index.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<div id="hero">
88
<div class="inner">
99
<div class="left">
10-
<img class="hero-logo" src="./images/logo.png">
10+
<img class="hero-logo" src="/images/logo.png">
1111
</div><div class="right">
1212
<h2 class="vue">Vue.js</h2>
1313
<h1>
1414
Le Framework<br>JavaScript Évolutif
1515
</h1>
1616
<p>
17-
<a class="button" href="./v2/guide/">COMMENCER</a>
17+
<a class="button" href="/v2/guide/">COMMENCER</a>
1818
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
1919
</p>
2020
</div>
@@ -49,7 +49,7 @@
4949
<h3>FIÈREMENT SPONSORISÉ PAR</h3>
5050
<%- partial('partials/sponsors') %>
5151
<br>
52-
<a class="become-sponsor button white" href="./support-vuejs/">Apporter son soutien</a>
52+
<a class="become-sponsor button white" href="/support-vuejs/">Apporter son soutien</a>
5353
</div>
5454
</div>
5555

themes/vue/layout/layout.ejs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<!DOCTYPE html>
33
<html lang="en">
44
<head>
5-
<base href="http://localhost:4000/">
65
<title><%- page.title ? page.title + ' - ' : '' %>vue.js</title>
76
<meta charset="utf-8">
87
<meta name="description" content="<%- theme.site_description %>">
@@ -18,22 +17,22 @@
1817
<meta name="twitter:description" content="<%- theme.site_description %>">
1918
<meta name="twitter:image" content="https://<%- theme.root_domain %>/images/logo.png">
2019

21-
<link rel="icon" href="./images/logo.png" type="image/x-icon">
20+
<link rel="icon" href="/images/logo.png" type="image/x-icon">
2221

2322
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'>
2423
<link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'>
2524

2625
<!-- main page styles -->
27-
<link rel="stylesheet" href="./<%- isIndex ? 'css/index' : 'css/page' %>.css">
26+
<link rel="stylesheet" href="/<%- isIndex ? 'css/index' : 'css/page' %>.css">
2827

2928
<!-- this needs to be loaded before guide's inline scripts -->
30-
<script src="./js/vue.js"></script>
29+
<script src="/js/vue.js"></script>
3130
<script>window.PAGE_TYPE = "<%- page.type %>"</script>
3231
</head>
3332
<body class="<%- isIndex ? '' : 'docs' -%>">
3433
<div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>>
3534
<a class="menu-button"></a>
36-
<a class="logo" href="./"></a>
35+
<a class="logo" href="/"></a>
3736
</div>
3837
<%- partial('partials/header') %>
3938
<% if (!isIndex) { %>
@@ -44,13 +43,13 @@
4443
<%- body %>
4544
<% } %>
4645
</div>
47-
<script src="./js/smooth-scroll.min.js"></script>
46+
<script src="/js/smooth-scroll.min.js"></script>
4847
<% } else { %>
4948
<%- body %>
5049
<% } %>
5150

5251
<!-- main custom script for sidebars, version selects etc. -->
53-
<script src="./js/common.js"></script>
52+
<script src="/js/common.js"></script>
5453

5554
<!-- ga -->
5655
<script>

themes/vue/layout/page.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<%- partial('partials/ad') %>
1313
<% } %>
1414
<% if (page.title.trim()) { %>
15-
<h1><%- page.title %><%- page.type === 'examples' ? ' Exemple' : '' %></h1>
15+
<h1><%- page.type === 'examples' ? 'Exemple ' : '' %><%- page.title %></h1>
1616
<% } %>
1717
<%- page.content %>
1818
<% if (page.type === 'guide') { %>

themes/vue/layout/partials/ad.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- <span>Sponsored By</span><br>
33
<a href="http://www.thedifferenceengine.io/" target="_blank"
44
style="background-color: rgba(0,0,0,.85); padding: 10px 0">
5-
<img src="./images/tde.png">
5+
<img src="/images/tde.png">
66
</a> -->
77
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
88
</div>

themes/vue/layout/partials/header.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="header">
2-
<a id="logo" href="./">
3-
<img src="./images/logo.png">
2+
<a id="logo" href="/">
3+
<img src="/images/logo.png">
44
<span>Vue.js</span>
55
</a>
66
<ul id="nav">

themes/vue/layout/partials/main_menu.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<input type="text" id="search-query-<%- context %>" class="search-query st-default-search-input">
44
</form>
55
</li>
6-
<li><a href="./v2/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
7-
<li><a href="./v2/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API</a></li>
8-
<li><a href="./v2/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Exemples</a></li>
6+
<li><a href="/v2/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
7+
<li><a href="/v2/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API</a></li>
8+
<li><a href="/v2/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Exemples</a></li>
99
<%- partial('partials/ecosystem_dropdown') %>
1010
<%- partial('partials/language_dropdown') %>

themes/vue/layout/partials/sidebar.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<span>Sponsorisé par</span><br>
88
<a href="http://www.thedifferenceengine.io/" target="_blank"
99
style="background-color: #f3f3f3; padding: 10px 0">
10-
<img src="./images/tde.png">
10+
<img src="/images/tde.png">
1111
</a>
1212
</div>
13-
<a class="become-backer" href="./support-vuejs">
13+
<a class="become-backer" href="/support-vuejs">
1414
Apporter son soutien
1515
</a>
1616
<h2>
@@ -49,7 +49,7 @@
4949
<!-- at least one recipe -->
5050
<% } %>
5151
<li>
52-
<a href="./<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
52+
<a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
5353
</li>
5454
<% }) %>
5555
<% if (type === 'cookbook') { %>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
<a class="vip" href="http://www.thedifferenceengine.io/" target="_blank">
2-
<img src="./images/tde.png">
2+
<img src="/images/tde.png">
33
</a>
44
<a href="https://jsfiddle.net/" target="_blank">
5-
<img src="./images/jsfiddle.png">
5+
<img src="/images/jsfiddle.png">
66
</a>
77
<a href="https://laravel.com/" target="_blank">
8-
<img src="./images/laravel.png">
8+
<img src="/images/laravel.png">
99
</a>
1010
<a href="https://chaitin.cn" target="_blank" style="top:-1px">
11-
<img src="./images/chaitin.png">
11+
<img src="/images/chaitin.png">
1212
</a>
1313
<a href="https://htmlburger.com" target="_blank">
14-
<img src="./images/htmlburger.png">
14+
<img src="/images/htmlburger.png">
1515
</a>
1616
<a href="https://starter.someline.com/" target="_blank" style="top:-2px">
17-
<img src="./images/someline.png">
17+
<img src="/images/someline.png">
1818
</a>
1919
<a href="http://gold.xitu.io/?utm_source=vuejs&utm_medium=image&utm_content=juejin&utm_campaign=q3_website" target="_blank" style="width:75px">
20-
<img src="./images/juejin.png" style="width:75px">
20+
<img src="/images/juejin.png" style="width:75px">
2121
</a>
2222
<a href="http://monterail.com/" target="_blank">
23-
<img src="./images/monterail.png">
23+
<img src="/images/monterail.png">
2424
</a>
2525
<a href="https://www.trisoft.ro/" target="_blank" style="width:80px;top:-2px">
26-
<img src="./images/trisoft.png" style="width:80px">
26+
<img src="/images/trisoft.png" style="width:80px">
2727
</a>
2828
<a href="http://actualize.co/" target="_blank" style="width:144px;">
29-
<img src="./images/actualize.png" style="width:144px">
29+
<img src="/images/actualize.png" style="width:144px">
3030
</a>
3131
<a href="https://www.2mhost.com/" target="_blank" style="width:90px">
32-
<img src="./images/2mhost.png" style="width:90px">
32+
<img src="/images/2mhost.png" style="width:90px">
3333
</a>
3434
<a href="https://vuejobs.com/?ref=vuejs" target="_blank" style="width:90px;top:5px">
35-
<img src="./images/vuejobs.png" style="width:90px">
35+
<img src="/images/vuejobs.png" style="width:90px">
3636
</a>

themes/vue/layout/post.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<div class="list">
66
<h2>
77
Recent Posts
8-
<a href="./atom.xml" target="_blank" style="vertical-align: middle; margin-left: 5px">
9-
<img src="./images/feed.png" style="width:15px;height:15px">
8+
<a href="/atom.xml" target="_blank" style="vertical-align: middle; margin-left: 5px">
9+
<img src="/images/feed.png" style="width:15px;height:15px">
1010
</a>
1111
</h2>
1212
<ul style="padding:0">
1313
<% site.posts.sort('date', -1).limit(10).each(function (post) { %>
1414
<li>
15-
<a href="./<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- post.title %></a>
15+
<a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- post.title %></a>
1616
</li>
1717
<% }) %>
1818
</ul>

0 commit comments

Comments
 (0)