Chapter 2: Including JavaScript
Lets’s use chapter to add some JavaScript code here:
With .. code-block:: js
we can add JavaScript snippets:
function foo() {
console.log('hello sphinx!')
}
Source Code Documentation
- class Foo(value)
Foo is super important for this sphinx project
Create a Foo instance.
- Arguments:
value (number) – The initial value for member.
- Foo.member
type: number
- Foo.doSomeWork(bar)
Perform some work using the private member.
- Arguments:
bar (number) – this parameter is mandatory.
- Returns:
number – The work results