Browse Source

Added some custom styling to docs

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
5e78f6489f
6 changed files with 110 additions and 81 deletions
  1. +6
    -6
      docs/.gitignore
  2. +75
    -75
      docs/docfx.json
  3. BIN
      docs/templates/bsipa_custom/favicon.ico
  4. BIN
      docs/templates/bsipa_custom/icon_white.png
  5. +22
    -0
      docs/templates/bsipa_custom/partials/head.tmpl.partial
  6. +7
    -0
      docs/templates/bsipa_custom/styles/fix.css

+ 6
- 6
docs/.gitignore View File

@ -1,7 +1,7 @@
/_site
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/obj
/_*
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/obj
/nuget /nuget

+ 75
- 75
docs/docfx.json View File

@ -1,76 +1,76 @@
{
"metadata": [{
"src": [{
"src": "..",
"files": [
"**.csproj"
],
"exclude": [
"**/BSIPA-Meta.csproj",
"**/IPA.csproj",
"**/IPA.Tests.csproj",
"TMP Exporter/**.csproj",
"BuildTools/**.csproj",
"Doorstop/**.csproj",
"Net3-Proxy/**.csproj"
]
}],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false
}],
"build": {
"content": [{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"other_api/**.md",
"other_api/**/toc.yml",
"other_api/**.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [{
"files": [
"images/**"
]
}],
"overwrite": [{
"files": [
"override/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}],
"dest": "_site",
"xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ],
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default", "templates/material/material", "templates/fix_urls"
],
"globalMetadata": {
"_enableSearch": true,
"_enableNewTab": true,
"_gitContribute": {
"apiSpecFolder": "docs/override"
}
},
"postProcessors": [],
"markdownEngineName": "dfm",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
{
"metadata": [{
"src": [{
"src": "..",
"files": [
"**.csproj"
],
"exclude": [
"**/BSIPA-Meta.csproj",
"**/IPA.csproj",
"**/IPA.Tests.csproj",
"TMP Exporter/**.csproj",
"BuildTools/**.csproj",
"Doorstop/**.csproj",
"Net3-Proxy/**.csproj"
]
}],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false
}],
"build": {
"content": [{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"other_api/**.md",
"other_api/**/toc.yml",
"other_api/**.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [{
"files": [
"images/**"
]
}],
"overwrite": [{
"files": [
"override/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}],
"dest": "_site",
"xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ],
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default", "templates/material/material", "templates/fix_urls", "templates/bsipa_custom"
],
"globalMetadata": {
"_enableSearch": true,
"_enableNewTab": true,
"_gitContribute": {
"apiSpecFolder": "docs/override"
}
},
"postProcessors": [],
"markdownEngineName": "dfm",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
} }

BIN
docs/templates/bsipa_custom/favicon.ico View File

Before After

BIN
docs/templates/bsipa_custom/icon_white.png View File

Before After
Width: 2048  |  Height: 2048  |  Size: 116 KiB

+ 22
- 0
docs/templates/bsipa_custom/partials/head.tmpl.partial View File

@ -0,0 +1,22 @@
{{!Copyright (c) Oscar Vasquez. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
<meta name="generator" content="docfx {{_docfxVersion}}">
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
<link rel="stylesheet" href="{{_rel}}styles/docfx.css">
<link rel="stylesheet" href="{{_rel}}styles/main.css">
<link rel="stylesheet" href="{{_rel}}styles/fix.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<meta property="docfx:navrel" content="{{_navRel}}">
<meta property="docfx:tocrel" content="{{_tocRel}}">
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
{{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
</head>

+ 7
- 0
docs/templates/bsipa_custom/styles/fix.css View File

@ -0,0 +1,7 @@
table p {
margin-bottom: .5em;
}
table p:last-child {
margin-bottom: 0px;
}

Loading…
Cancel
Save