mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
number sections and add header
This commit is contained in:
parent
2a77994d15
commit
19861ca163
11
doc/header.md
Normal file
11
doc/header.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
JSweet Language Specifications
|
||||||
|
==============================
|
||||||
|
|
||||||
|
Version: 1.0.0
|
||||||
|
|
||||||
|
Author: Renaud Pawlak
|
||||||
|
|
||||||
|
JSweet JavaDoc API: http://www.jsweet.org/core-api-javadoc/
|
||||||
|
|
||||||
|
Content
|
||||||
|
-------
|
||||||
@ -5,6 +5,8 @@ Version: 1.0.0
|
|||||||
|
|
||||||
Author: Renaud Pawlak
|
Author: Renaud Pawlak
|
||||||
|
|
||||||
|
JSweet JavaDoc API: http://www.jsweet.org/core-api-javadoc/
|
||||||
|
|
||||||
Content
|
Content
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@ -520,7 +522,7 @@ String m(String s) { return s; }
|
|||||||
|
|
||||||
### Ambient declarations
|
### Ambient declarations
|
||||||
|
|
||||||
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (<http://www.jsweet.org/candies-releases/>, which are automatically generated from TypeScript’s DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the `@jsweet.lang.Ambient` annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
|
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (<http://www.jsweet.org/candies-releases/>), which are automatically generated from TypeScript’s DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the `@jsweet.lang.Ambient` annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
|
||||||
|
|
||||||
``` java
|
``` java
|
||||||
@Ambient
|
@Ambient
|
||||||
|
|||||||
@ -550,7 +550,7 @@ String m(String s) { return s; }
|
|||||||
|
|
||||||
\section{Ambient declarations}
|
\section{Ambient declarations}
|
||||||
|
|
||||||
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (\url{http://www.jsweet.org/candies-releases/}, which are automatically generated from TypeScript's DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the \texttt{@jsweet.lang.Ambient} annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
|
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (\url{http://www.jsweet.org/candies-releases/}), which are automatically generated from TypeScript's DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the \texttt{@jsweet.lang.Ambient} annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
|
||||||
|
|
||||||
\begin{lstlisting}[language=Java]
|
\begin{lstlisting}[language=Java]
|
||||||
@Ambient
|
@Ambient
|
||||||
|
|||||||
1
pom.xml
1
pom.xml
@ -136,6 +136,7 @@
|
|||||||
<argument>--base-header-level=2</argument>
|
<argument>--base-header-level=2</argument>
|
||||||
<argument>-s</argument>
|
<argument>-s</argument>
|
||||||
<argument>--toc</argument>
|
<argument>--toc</argument>
|
||||||
|
<argument>--number-sections</argument>
|
||||||
<argument>-B</argument>
|
<argument>-B</argument>
|
||||||
<argument>header.md</argument>
|
<argument>header.md</argument>
|
||||||
<argument>-o</argument>
|
<argument>-o</argument>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user