提交 76a3c18d 编写于 作者: R Ricardo Cabello

Merge pull request #6623 from paulmasson/dev

Improvements to documentation
......@@ -2,6 +2,6 @@ Contributing to the documentation
=================================
- To link to the page for `ClassName`, use `[page:ClassName link title]` (or just `[page:ClassName]`). Use `[page:ClassName.memberName]` to link to a class member (a property or method) called `memberName` on the page for `ClassName`. You can write `[page:.memberName]` to link to a property or method called `memberName` on the same page.
- Use `[example:exampleName title]` (ot just `[example:exampleName]`) to link to the example `threejs.org/examples/#exampleName`.
- Use `[example:exampleName title]` (not just `[example:exampleName]`) to link to the example `threejs.org/examples/#exampleName`.
- Document a property by writing `<h3>[property:TypeName propertyName]</h3>`.
- Document a method using `<h3>[method:ReturnType methodName]</h3>`.
\ No newline at end of file
- Document a method using `<h3>[method:ReturnType methodName]</h3>`.
......@@ -66,7 +66,7 @@
<h3>[property:Vector3 up]</h3>
<div>
Up direction.
Up direction. Default is THREE.Vector3( 0, 1, 0 ).
</div>
<h3>[property:Matrix4 matrix]</h3>
......
......@@ -35,7 +35,7 @@ var onDocumentLoad = function ( event ) {
text = text.replace(/\*([\w|\d|\"|\-|\(][\w|\d|\ |\-|\/|\+|\-|\(|\)|\=|\,|\.\"]*[\w|\d|\"|\)]|\w)\*/gi, "<strong>$1</strong>" ); // *
text = text.replace(/\[example:([\w\_]+)\]/gi, "[example:$1 $1]" ); // [example:name] to [example:name title]
text = text.replace(/\[example:([\w\_]+) ([\w\:\/\.\-\_ \s]+)\]/gi, "<a href=\"../../../examples/#$1\" target=\"_blank\">$2</a>" ); // [example:name title]
text = text.replace(/\[example:([\w\_]+) ([\w\:\/\.\-\_ \s]+)\]/gi, "<a href=\"../../../../examples/#$1\" target=\"_blank\">$2</a>" ); // [example:name title]
document.body.innerHTML = text;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册