File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,12 @@ The `template` object is used by the site template.
134134```
135135
136136* ` template.alias ` : Dictionary of template files you want to alias. Depending on the template you use, you can override specific
137- template/components (like header/footer).
137+ template/components (like header/footer). @webdoc/default-template provides the following aliases:
138+ * "bottom-banner"
139+ * "explorer"
140+ * "footer"
141+ * "header"
142+ * "tutorial"
138143* ` template.applicationName ` : The name of the documented software. This is usually used to fill the app bar and tab title.
139144* ` template.appBar.items ` : This key-value object can be used to configure the items in the app bar. The key is an identifier
140145 and to override a built-in item, you'll need to use its specific key (if you're adding more items, the key's specific value
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ exports.publish = async function publish(options /*: PublishOptions */) {
8686 "explorer" : path . join ( __dirname , "tmpl/components/explorer/index.tmpl" ) ,
8787 "footer" : path . join ( __dirname , "tmpl/components/footer/index.tmpl" ) ,
8888 "header" : path . join ( __dirname , "tmpl/components/header/index.tmpl" ) ,
89+ "tutorial" : path . join ( __dirname , "tmpl/tutorial.tmpl" ) ,
8990 } ,
9091 config . template . alias ,
9192 ) ;
@@ -489,7 +490,7 @@ async function outTutorials(
489490 return function renderRecursive ( tutorial /*: TutorialDoc */ , i /*: number */ ) {
490491 const uri = linker . getURI ( tutorial , true ) ;
491492
492- pipeline . render ( "tutorial.tmpl " , {
493+ pipeline . render ( "tutorial" , {
493494 appBar : { current : "tutorials" } ,
494495 document : tutorial ,
495496 explorerData,
You can’t perform that action at this time.
0 commit comments