forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coding-guide.js
35 lines (28 loc) · 959 Bytes
/
coding-guide.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const React = require('react');
const CompLibrary = require('../../core/CompLibrary');
const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
const CWD = process.cwd();
const siteConfig = require(`${CWD}/siteConfig.js`);
const codingGuide = require('fs').readFileSync(`${CWD}/coding-guide.md`, 'utf8')
class Coding extends React.Component {
render() {
return (
<div className="pageContainer">
<Container className="mainContainer documentContainer postContainer">
<div className="post">
<header className="postHeader">
<h1>Coding guide</h1>
<hr />
</header>
<MarkdownBlock>
{codingGuide}
</MarkdownBlock>
</div>
</Container>
</div>
);
}
}
module.exports = Coding;