Skip to content

Commit 4550970

Browse files
authored
Add redirection in documentation
1 parent df15ffc commit 4550970

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta http-equiv="refresh" content="0; URL=https://api.akeneo.com/apps/apps-how-to-get-your-app-token.html" />
5+
<!-- Hotjar Tracking Code for https://api.akeneo.com/ -->
6+
<script>
7+
(function(h,o,t,j,a,r){
8+
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
9+
h._hjSettings={hjid:2599654,hjsv:6};
10+
a=o.getElementsByTagName('head')[0];
11+
r=o.createElement('script');r.async=1;
12+
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
13+
a.appendChild(r);
14+
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
15+
</script>
16+
</head>
17+
<body>
18+
<script>
19+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
20+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
21+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
22+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
23+
24+
ga('create', 'UA-35417741-5', 'auto');
25+
ga('send', 'pageview');
26+
</script>
27+
</body>
28+
</html>

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ gulp.task('create-dist', [
5050
'build-getting-started',
5151
'build-events-reference-page',
5252
'build-apps',
53+
'build-redirections',
5354
]);
5455

5556
// Main task that should be used for development purpose

tasks/build-doc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,16 @@ gulp.task('build-apps', ['clean-dist','less'], function () {
628628
}
629629
);
630630

631+
gulp.task('build-redirections',[
632+
'to-get-your-app-token-redirection',
633+
]);
634+
635+
gulp.task('to-get-your-app-token-redirection', ['clean-dist','less'], function () {
636+
return gulp.src('content/redirections/to-get-your-app-token.html')
637+
.pipe(rename('apps-getting-started.html'))
638+
.pipe(gulp.dest('./dist/apps'))
639+
});
640+
631641
gulp.task('build-concepts', ['clean-dist','less'], function () {
632642

633643
var pages = {

0 commit comments

Comments
 (0)