diff --git a/docs/index.html b/docs/index.html index 83d9b0e..a26b7d4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -120,21 +120,21 @@ window.$docsify = { loadNavbar: true, search: { - placeholder: '搜索...', + placeholder: "搜索...", }, - name: 'Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio', + name: "Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio", loadSidebar: true, auto2top: true, - logo: './arch.svg', + logo: "./arch.svg", topMargin: 90, notFoundPage: true, subMaxLevel: 4, - themeColor: 'rgb(23,147,209)', - repo: 'https://github.com/ArchLinuxStudio/ArchLinuxTutorial', - formatUpdated: '{YYYY}-{MM}-{DD}', + themeColor: "rgb(23,147,209)", + repo: "https://github.com/ArchLinuxStudio/ArchLinuxTutorial", + formatUpdated: "{YYYY}-{MM}-{DD}", pagination: { - previousText: 'Previous', - nextText: 'Next', + previousText: "Previous", + nextText: "Next", crossChapter: true, crossChapterText: true, }, @@ -142,15 +142,15 @@ function (hook, vm) { hook.beforeEach(function (html) { let edit_url = - 'https://github.com/ArchLinuxStudio/ArchLinuxTutorial/blob/master/docs/' + + "https://github.com/ArchLinuxStudio/ArchLinuxTutorial/blob/master/docs/" + vm.route.file; - let editHtml = '[📝 Edit This Page](' + edit_url + ')\n'; + let editHtml = "[📝 Edit This Page](" + edit_url + ")\n"; - let client_id = '296c581fc4b2a837a1e3'; - let client_secret = '7e7f0ad1809fa4a1915430ade04835f6849ab56a'; + let client_id = "296c581fc4b2a837a1e3"; + let client_secret = "7e7f0ad1809fa4a1915430ade04835f6849ab56a"; let date_url = - 'https://api.github.com/repos/ArchLinuxStudio/ArchLinuxTutorial/commits?per_page=1&path=docs/' + + "https://api.github.com/repos/ArchLinuxStudio/ArchLinuxTutorial/commits?per_page=1&path=docs/" + vm.config.basePath + encodeURIComponent(vm.route.file); @@ -163,18 +163,18 @@ return response.json(); }) .then((commits) => { - let modified = commits[0]['commit']['committer'][ - 'date' + let modified = commits[0]["commit"]["committer"][ + "date" ].slice(0, 10); - document.getElementById('last-modified').textContent = - 'Update date: ' + modified; + document.getElementById("last-modified").textContent = + "Update date: " + modified; }); return ( 'Update date: Fetching...' + - '\n' + + "\n" + html + - '\n----\n' + + "\n----\n" + editHtml ); }); @@ -182,11 +182,11 @@ hook.mounted(function () { // 添加网站运行时间 let dom = Docsify.dom; - let runTimeNode = dom.create('div'); - runTimeNode.className = 'runtime'; + let runTimeNode = dom.create("div"); + runTimeNode.className = "runtime"; runTimeNode.style = - 'color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;'; - dom.appendTo(dom.find('.content'), runTimeNode); + "color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;"; + dom.appendTo(dom.find(".content"), runTimeNode); }); }, ], @@ -209,37 +209,37 @@