Skip to content

Commit

Permalink
Merge pull request #724 from lepoco/development
Browse files Browse the repository at this point in the history
Fix docs scripts
  • Loading branch information
pomianowski committed Aug 5, 2023
2 parents eccec5d + eb5688a commit 4dba295
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/build.ps1

This file was deleted.

4 changes: 1 addition & 3 deletions docs/templates/wpfui/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
<link rel="icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link rel="stylesheet" href="{{_rel}}public/docfx.min.css">
<link rel="stylesheet" href="{{_rel}}public/main.css">
<meta name="docfx:navrel" content="{{_navRel}}">
<meta name="docfx:tocrel" content="{{_tocRel}}">
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
Expand All @@ -35,9 +34,8 @@

{{^redirect_url}}
<script type="module">
import options from './{{_rel}}public/main.js'
import { init } from './{{_rel}}public/docfx.min.js'
init(options)
init()
</script>

<script>
Expand Down
6 changes: 5 additions & 1 deletion docs/templates/wpfui/src/docfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ declare global {
}
}

export async function init(options: DocfxOptions) {
export async function init() {
const options = {
defaultTheme: 'dark'
} as DocfxOptions

window.docfx = Object.assign({}, options)

initTheme()
Expand Down

0 comments on commit 4dba295

Please sign in to comment.