forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 5553] [website] Add coding-guide page (apache#5594)
* Add coding-guide page * update config * update contributing file
- Loading branch information
1 parent
96a9418
commit 2fbe5f5
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |