mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-28 17:10:56 +02:00
Feature: Add language navigation
This commit is contained in:
committed by
Sara Gibbons
parent
6cbe6aa8b9
commit
0a6ff000d2
10
index.html
10
index.html
@@ -8,6 +8,7 @@
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="icon" type="image/png" href="images/favicon.png">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"></head>
|
||||
<link rel="stylesheet" href="/index.css"></head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript">
|
||||
@@ -18,10 +19,19 @@
|
||||
})(window, document, "clarity", "script", "ekxr1n6fgy");
|
||||
|
||||
window.$docsify = {
|
||||
loadNavbar: 'docs/_navbar.md',
|
||||
name: 'Web Development for Beginners: A Curriculum',
|
||||
repo: 'https://github.com/microsoft/Web-Dev-For-Beginners',
|
||||
relativePath: true,
|
||||
auto2top: false,
|
||||
alias: {
|
||||
'/(README.*)': '/translations/$1',
|
||||
'/((?!README).*)/README.(.*)': '$1/translations/README.$2',
|
||||
|
||||
// handle english file, since English files isn't in translation folders
|
||||
'/(README$)': '/$1',
|
||||
'/((?!README).*)/(README$)': '$1/$2'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
|
||||
|
Reference in New Issue
Block a user