Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/generateDocs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ Foreach-Object {
$outfile = Join-Path -Path $outdir -ChildPath ($_.BaseName + ".html")

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

Write-Host " .md outfile" $outfile

# Invoke (&) the pandoc command
if ($outfile.Contains("\demo\")) {
# Invoke (&) the pandoc command; check here for either Windows or *nix separator
if ($outfile.Contains("\demo\") -or $outfile.Contains("/demo/")) {
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -V site-root=$siteRoot -o $outfile metadata.demo.yaml $_.FullName
}
else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Yet another Vue treeview component.",
"author": "Gregg Rapoza <grapoza@gmail.com>",
"license": "MIT",
"version": "0.10.4",
"version": "0.10.5",
"browser": "index.js",
"repository": {
"url": "https://github.com/grapoza/vue-tree",
Expand Down