mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 03:58:49 +02:00
chore: update docs examples
This commit is contained in:
parent
99cc83e88c
commit
d3e12c9455
7 changed files with 412 additions and 35 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
id: bar
|
||||
title: Bar
|
||||
title: My Title
|
||||
---
|
||||
|
||||
# Remarkable
|
||||
|
@ -21,6 +21,8 @@ Click the `clear` link to start with a clean slate, or get the `permalink` to sh
|
|||
|
||||
## Horizontal Rules
|
||||
|
||||
This is horizontal rule
|
||||
|
||||
___
|
||||
|
||||
***
|
||||
|
@ -28,23 +30,6 @@ ___
|
|||
***
|
||||
|
||||
|
||||
## Typographic replacements
|
||||
|
||||
Enable typographer option to see result.
|
||||
|
||||
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
|
||||
|
||||
test.. test... test..... test?..... test!....
|
||||
|
||||
!!!!!! ???? ,,
|
||||
|
||||
Remarkable -- awesome
|
||||
|
||||
"Smartypants, double quotes"
|
||||
|
||||
'Smartypants, single quotes'
|
||||
|
||||
|
||||
## Emphasis
|
||||
|
||||
**This is bold text**
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
---
|
||||
id: baz
|
||||
title: baz
|
||||
title: Test Markdown
|
||||
---
|
||||
|
||||
## Images
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Like links, Images also have a footnote style syntax
|
||||
|
||||
|
@ -14,8 +13,6 @@ Like links, Images also have a footnote style syntax
|
|||
|
||||
With a reference later in the document defining the URL location:
|
||||
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
|
||||
|
||||
## Links
|
||||
|
||||
[link text](http://dev.nodeca.com)
|
||||
|
|
|
@ -14,18 +14,31 @@ int main() {
|
|||
|
||||
```
|
||||
|
||||
```js
|
||||
class Example extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
|
||||
<Text>Docusaurus</Text>
|
||||
<Button
|
||||
title="Click me"
|
||||
onPress={() => this.props.navigation.push('Docusaurus')}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
```cpp
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int n, i;
|
||||
bool isPrime = true;
|
||||
|
||||
cout << "Enter a positive integer: ";
|
||||
cin >> n;
|
||||
|
||||
for(i = 2; i <= n / 2; ++i)
|
||||
{
|
||||
if(n % i == 0)
|
||||
{
|
||||
isPrime = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isPrime)
|
||||
cout << "This is a prime number";
|
||||
else
|
||||
cout << "This is not a prime number";
|
||||
|
||||
return 0;
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue