Skip to content

Commit 9066788

Browse files
authored
Merge pull request #102 from grapoza/test-demo-gen
Fix demo pages header-includes
2 parents 9421463 + 88fd727 commit 9066788

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/generateDocs.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ Foreach-Object {
1313
$outfile = Join-Path -Path $outdir -ChildPath ($_.BaseName + ".html")
1414

1515
# If building from AppVeyor, the version will be populated. In that case,
16-
# resource paths need to be prefixed with "/appveyor/<version>"
16+
# resource paths need to be prefixed with "/vue-tree/<version>"
1717
$siteRoot = $env:package_version
1818
if (-not [System.String]::IsNullOrEmpty($siteRoot)) {
1919
$siteRoot = -Join ("/vue-tree/", $siteRoot);
2020
}
2121

22-
Write-Host " .md outfile" $outfile
23-
24-
# Invoke (&) the pandoc command
25-
if ($outfile.Contains("\demo\")) {
22+
# Invoke (&) the pandoc command; check here for either Windows or *nix separator
23+
if ($outfile.Contains("\demo\") -or $outfile.Contains("/demo/")) {
2624
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -V site-root=$siteRoot -o $outfile metadata.demo.yaml $_.FullName
2725
}
2826
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Yet another Vue treeview component.",
44
"author": "Gregg Rapoza <grapoza@gmail.com>",
55
"license": "MIT",
6-
"version": "0.10.4",
6+
"version": "0.10.5",
77
"browser": "index.js",
88
"repository": {
99
"url": "https://github.com/grapoza/vue-tree",

0 commit comments

Comments
 (0)