Browse Source

Minor optimization for doc rendering

pull/1161/head
Still Hsu 7 years ago
parent
commit
af8c289997
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
4 changed files with 19 additions and 7 deletions
  1. +2
    -1
      docs/Discord.Net.Docs.code-workspace
  2. +2
    -1
      docs/_template/light-dark-theme/partials/head.tmpl.partial
  3. +3
    -4
      docs/_template/light-dark-theme/partials/scripts.tmpl.partial
  4. +12
    -1
      docs/_template/light-dark-theme/styles/master.css

+ 2
- 1
docs/Discord.Net.Docs.code-workspace View File

@@ -14,7 +14,8 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"obj/": true
"obj/": true,
"_site/": true,
}
}
}

+ 2
- 1
docs/_template/light-dark-theme/partials/head.tmpl.partial View File

@@ -14,7 +14,8 @@
<link rel="stylesheet" href="{{_rel}}styles/master.css">
<link rel="stylesheet" href="{{_rel}}styles/main.css">
<link rel="stylesheet" href="{{_rel}}styles/theme-switcher.css">
<link href="//cdn.rawgit.com/noelboss/featherlight/1.7.6/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<link href="https://cdn.rawgit.com/noelboss/featherlight/1.7.6/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<meta name="theme-color" content="#101010"/>
<meta property="docfx:navrel" content="{{_navRel}}">
<meta property="docfx:tocrel" content="{{_tocRel}}">
<meta id="docfx-style:rel" content="{{_rel}}">


+ 3
- 4
docs/_template/light-dark-theme/partials/scripts.tmpl.partial View File

@@ -3,9 +3,8 @@
<script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
<script src="//cdn.rawgit.com/noelboss/featherlight/1.7.6/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/noelboss/featherlight/master/release/featherlight.min.js" charset="utf-8"></script>
<script type="text/javascript" src="{{_rel}}styles/plugin-featherlight.js"></script>
<script type="text/javascript" src="{{_rel}}styles/styleswitcher.js"></script>
<script type="text/javascript" src="//malsup.github.io/jquery.corner.js"></script>
<script type="text/javascript" src="{{_rel}}styles/cornerify.js"></script>
<script type="text/javascript" src="{{_rel}}styles/styleswitcher.js"></script>
<script type="text/javascript" src="https://malsup.github.io/jquery.corner.js"></script>
<script type="text/javascript" src="{{_rel}}styles/cornerify.js"></script>

+ 12
- 1
docs/_template/light-dark-theme/styles/master.css View File

@@ -1,4 +1,15 @@
@import url('https://fonts.googleapis.com/css?family=Titillium+Web|Noto+Sans');
@font-face{
font-family: 'Titillium Web';
font-display: optional;
src: local('Titillium Web'), url('https://fonts.googleapis.com/css?family=Titillium+Web')
}

@font-face{
font-family: 'Noto Sans';
font-display: optional;
src: local('Noto Sans'), url('https://fonts.googleapis.com/css?family=Noto+Sans')
}

html,
body {
font-family: 'Titillium Web', 'Segoe UI', Tahoma, Helvetica, sans-serif;


Loading…
Cancel
Save