Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Commit

Permalink
update: update doc to load project from cdn (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY authored Sep 26, 2018
1 parent b345125 commit d2c9d10
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="https://cdn.cryptape.com/styles/docs.css">

</head>

<body>
Expand All @@ -22,20 +20,8 @@
<nav class="app-nav no-badge">
<ul>
<li>
<a href="https://docs.nervos.org/" target="_about" class="app-nav-1">Nervos</a>
<ul>
<li>
<a href="https://cryptape.github.io/nervos-appchain-Docs/" target="_about">AppChain</a>
</li>
<li>
<a href="https://cryptape.github.io/cita/" target="_about">CITA</a>
</li>
<li>
<a href="https://cryptape.github.io/neuron-android/#/" target="_about">Neuron</a>
</li>
<li>
<a href="https://cryptape.github.io/microscope/">Microscope</a>
</li>
<a href="https://docs.nervos.org/" target="_blank" class="app-nav-1">Nervos</a>
<ul id="project-list">
</ul>
</li>
</ul>
Expand Down Expand Up @@ -73,8 +59,18 @@

gtag('config', 'UA-122001869-5');

// external script
const external = document.createElement("script")
const timeStamp = new Date().getTime()
external.src = "https://cdn.cryptape.com/scripts/external.js?" + timeStamp
document.body.appendChild(external)
// custom style
const docStyle = document.createElement('link')
docStyle.rel = 'stylesheet'
docStyle.href = "https://cdn.cryptape.com/styles/docs.css?" + timeStamp
document.head.appendChild(docStyle)

</script>
<script src="https://cdn.cryptape.com/scripts/external.js"></script>

</body>

Expand Down

0 comments on commit d2c9d10

Please sign in to comment.