Skip to content

Commit 0be67e9

Browse files
authored
Merge pull request #100 from grapoza/fix-doc-references
Fixes for github pages publishing
2 parents 0ee3885 + c8b441e commit 0be67e9

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

docs/generateDocs.ps1

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ Foreach-Object {
1212
# Get the target file name
1313
$outfile = Join-Path -Path $outdir -ChildPath ($_.BaseName + ".html")
1414

15+
# If building from AppVeyor, the version will be populated. In that case,
16+
# resource paths need to be prefixed with "/appveyor/<version>"
17+
$siteRoot = $env:package_version
18+
if (-not [System.String]::IsNullOrEmpty($siteRoot)) {
19+
$siteRoot = -Join ("/vue-tree/", $siteRoot);
20+
}
21+
1522
# Invoke (&) the pandoc command
16-
if($outfile.Contains("\demo\")) {
17-
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -o $outfile metadata.demo.yaml $_.FullName
23+
if ($outfile.Contains("\demo\")) {
24+
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -V site-root=$siteRoot -o $outfile metadata.demo.yaml $_.FullName
1825
}
1926
else {
20-
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -o $outfile $_.FullName
27+
& pandoc -s --template=templates/base.html5 --metadata-file=metadata.yaml -V site-root=$siteRoot -o $outfile $_.FullName
2128
}
2229
}
2330
else {

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ To see it in action, try out the [demos](demos.html).
103103

104104
| Prop | Type | Description | Default value | Required |
105105
|:-----------------|:---------|:-------------------------------------------------------------------------------------|:----------------------------------|:---------|
106-
| initialModel | Array | The data model containing [tree data](#tree-data) | - | Yes |
106+
| initialModel | Array | The data model containing [model data](#model-data) | - | Yes |
107107
| modelDefaults | Object | An object containing defaults for all nodes that do not specify the given properties | `{}` | |
108108
| radioGroupValues | Object | An object, the properties of which correspond to radio button group selections | `{}` | |
109109
| customAriaKeyMap | Object | An object, the properties of which are arrays to keyCodes for various actions | See [Aria](#setting-key-bindings) | |
@@ -176,7 +176,7 @@ The properties below can be specified for each node.
176176
| state.input.value | Boolean | Contains the value of the input | `false` for checkbox, otherwise - | |
177177
| state.input.disabled | Boolean | True if the node's input field is disabled | `false` | |
178178
| children | Array\<Object\> | The child nodes of this node | `[]` | |
179-
| customizations | Object | A [customizations](#customizing-treeviewnode-markup) object | `{}` | |
179+
| customizations | Object | A [customizations](#customizing-the-treeview) object | `{}` | |
180180
| addChildCallback | Function | An async function that resolves to a new node model | `null` | |
181181

182182
\* Selection props are unused; see [#5](https://github.com/grapoza/vue-tree/issues/5).

docs/templates/base.html5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $highlighting-css$
2020
</style>
2121
$endif$
2222
$for(css)$
23-
<link rel="stylesheet" href="$css$" />
23+
<link rel="stylesheet" href="$if(site-root)$$site-root$$endif$$css$" />
2424
$endfor$
2525
$if(math)$
2626
$math$

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 <[email protected]>",
55
"license": "MIT",
6-
"version": "0.10.2",
6+
"version": "0.10.3",
77
"browser": "index.js",
88
"repository": {
99
"url": "https://github.com/grapoza/vue-tree",

0 commit comments

Comments
 (0)