-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
80 lines (79 loc) · 2.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Free resources to get started with software development practices">
<meta name="keywords" content="software,development,developer,get started,howto,tutorials,videos,doc,docs,documentation">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>First Steps for Developers</title>
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="First Steps for Developers">
<meta property="og:type" content="website">
<meta property="og:description" content="Free resources to get started with software development practices" />
<meta property="og:url" content="https://first-steps.dev" />
<meta property="og:image" content="https://first-steps.dev/banner.jpg" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="//unpkg.com/docsify-themeable/dist/css/theme-simple.css">
<style>
:root {
--sidebar-width: 20rem;
--heading-h2-color: #667;
--heading-h2-font-size: var(--font-size-l);
}
.sidebar > h1 .app-name-link {
color: transparent;
background: url(./logo.png) no-repeat;
background-size: cover;
display: inline-block;
height: 80px;
}
</style>
</head>
<body>
<noscript>This page requires JavaScript to work, please enable it or just read it on <a href="https://github.com/ldoppea/first-steps-dev">Here</a>.</noscript>
<div id="app">Loading...</div>
<script>
window.$docsify = {
name: 'First Steps for Developers',
repo: 'ldoppea/first-steps-dev',
search: {
paths: [
'/',
'contributing',
'/fr/'
],
placeholder: {
'/fr/': 'Rechercher',
'/': 'Type to search'
},
noData: {
'/fr/': 'Pas de résultats',
'/': 'No Results'
},
pathNamespaces: ['/fr'],
},
loadNavbar: true,
plugins: [insertTOC]
}
// Small TOC plugin
function insertTOC (hook, vm) {
hook.doneEach(() => {
const toc = document.querySelector('.toc');
if (toc) {
const headings = Array.from(document.querySelectorAll(`#main h1, #main h2`)).slice(2);
let list = '';
headings.forEach(h => {
const level = parseFloat(h.tagName[1]);
list += `${Array(level).join(' ')}- [${h.children[0].innerHTML}](#${h.getAttribute('id')})\n`;
});
toc.innerHTML = vm.compiler.compile(list).trim();
}
});
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify-themeable"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
</body>
</html>