-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
96 lines (96 loc) · 2.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<title>Documentation</title>
<link rel="icon" type="image/png" href="images/dolibarr.png" />
<link rel="stylesheet" href="themes/vue.css">
<style>
.markdown-section > p:first-child > a {
display: block;
text-align: right;
}
</style>
</head>
<body>
<div id="app">Loading ...</div>
<script>
window.$docsify = {
name: '<img src="images/dolibarr.png" height="100px">',
repo: 'https://github.com/AXeL-dev/dolibarr-modules-docs',
loadNavbar: true,
loadSidebar: true,
// alias: {
// '/.*/_sidebar.md': '/_sidebar.md'
// },
//routerMode: 'history', // default: 'hash'
themeColor: '#0074d9',
subMaxLevel: 3,
auto2top: true,
search: {
maxAge: 86400000, // Expiration time, the default one day
//paths: [], // or 'auto'
placeholder: {
'/fr/': 'Rechercher',
'/': 'Search'
},
noData: {
'/fr/': 'Aucun résultat!',
'/': 'No results!'
},
},
pagination: {
previousText: '',
nextText: '',
//crossChapter: true
},
copyCode: {
buttonText : {
'/fr/': 'Copier dans le presse-papier',
'/': 'Copy to clipboard'
},
errorText : {
'/fr/': 'Erreur',
'/': 'Error'
},
successText: {
'/fr/': 'Copié',
'/': 'Copied'
}
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
if (/githubusercontent\.com/.test(vm.route.file)) {
url = vm.route.file
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/blob/master')
} else {
url = 'https://github.com/AXeL-dev/dolibarr-modules-docs/blob/master/' + vm.route.file
}
//console.log(vm)
var lang = '/' + vm.route.path.split('/')[1] + '/'
var editText = {
'/fr/': 'Modifier le document',
'/': 'Edit Document'
}
var editHtml = '[:memo: ' + editText[(editText[lang] ? lang : '/')] + '](' + url + ' \':id=edit\')\n'
return editHtml + html
})
}
]
}
</script>
<script src="lib/docsify.min.js"></script>
<script src="lib/search.min.js"></script>
<script src="lib/zoom-image.min.js"></script>
<script src="lib/docsify-pagination.min.js"></script>
<script src="lib/docsify-copy-code.min.js"></script>
<!-- <script src="lib/docsify-themeable.min.js"></script> -->
<script src="lib/emoji.min.js"></script>
<script src="lib/prism-php.min.js"></script>
</body>
</html>