An open API service indexing awesome lists of open source software.

https://github.com/hunghg255/template-docusaurus

A template write documentation built docusaurus
https://github.com/hunghg255/template-docusaurus

docusaurus2 template

Last synced: 3 months ago
JSON representation

A template write documentation built docusaurus

Awesome Lists containing this project

README

          

# Website

### Installation

```
npm install
```

### Local Development

```
npm start
```

### Build

```
npm build
```

## How to write markdown

### Embed Expo

````
```SnackPlayer name=Hello%20World
import React from 'react';
import { Text, View } from 'react-native';

const YourApp = () => {
return (

Try editing me! 🎉

);
}

export default YourApp;```

````

### Embed StackBlitz

```

```

### Live code: Add block with keywork live

````
```tsx live
function Clock(props) {
const [date, setDate] = useState(new Date());
useEffect(() => {
var timerID = setInterval(() => tick(), 1000);

return function cleanup() {
clearInterval(timerID);
};
});

function tick() {
setDate(new Date());
}

return (


It is {date.toLocaleTimeString()}.



);
}```
````

### Live code with Mutil components

````
```jsx live noInline
const project = 'Docusaurus';

const Greeting = () =>

Hello {project}!

;

render();```
````

### Mermaid: add block with keyword mermaid

````
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;```
````