diff --git a/docs/index.html b/docs/index.html index 9eaa1e7a3284d5d3ccfc83e1b19b4a735c196425..2a552ba3f2ed65f518b18b856506d2839a2b5379 100644 --- a/docs/index.html +++ b/docs/index.html @@ -307,7 +307,7 @@ if(hash) { iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ]; - subtitle = ' - ' + titles[ splitHash[ 0 ] ] + splitHash[ 1 ]; + subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' - '; } else { @@ -317,7 +317,7 @@ } document.body.replaceChild( iframe, oldIframe ); - document.title = 'three.js docs' + subtitle; + document.title = subtitle + 'three.js docs'; } diff --git a/docs/page.js b/docs/page.js index 95c8f1864212572ec9001ae6a49852dcac5a3811..323a52fdd5fc2217bcfe5d839ca9028f50b26163 100644 --- a/docs/page.js +++ b/docs/page.js @@ -24,7 +24,7 @@ if ( !window.frameElement && window.location.protocol !== 'file:' ) { } -var onDocumentLoad = function ( event ) { +function onDocumentLoad( event ) { var path; var pathname = window.location.pathname; @@ -69,7 +69,7 @@ var onDocumentLoad = function ( event ) { text = text.replace( /\[example:([\w\_]+)\]/gi, "[example:$1 $1]" ); // [example:name] to [example:name title] text = text.replace( /\[example:([\w\_]+) ([\w\:\/\.\-\_ \s]+)\]/gi, "$2" ); // [example:name title] - + document.body.innerHTML = text; // handle code snippets formatting