Skip to content

Commit

Permalink
Merge pull request #96 from shehan360/remove-unnecessary-code
Browse files Browse the repository at this point in the history
Remove old code
  • Loading branch information
Shehan Avishka Panditharatne authored May 4, 2021
2 parents 3ba7c8e + 38ab933 commit f1e2215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 131 deletions.
42 changes: 4 additions & 38 deletions docerina-ui/src/component/moduleindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const ModuleIndex = (props) => {
}
});


return (
<section>
<Layout {...props} title={"API Docs"} pageType="moduleIndex">
{props.releaseVersion != null && <h1 className="capitalize">Distribution: {props.releaseVersion}</h1>}
{props.releaseVersion != "" && <h1 className="capitalize">Distribution: {props.releaseVersion}</h1>}
<Markdown text={props.releaseDescription} />
<h2 className="capitalize">Language Libraries</h2>
{props.langLibs.length > 0 &&
<><h2 className="capitalize">Language Libraries</h2>
<table className="ui very basic table" id="langlibs">
<tbody>
{props.langLibs.map((item) => (
Expand All @@ -50,7 +50,7 @@ const ModuleIndex = (props) => {
</tr>
))}
</tbody>
</table>
</table></>}
<h2 className="capitalize">Modules</h2>
<table className="ui very basic table" id="modules">
<tbody>
Expand All @@ -63,40 +63,6 @@ const ModuleIndex = (props) => {
))}
</tbody>
</table>
{props.builtinTypes != null && props.builtinTypes.length > 0 && <><h2 className="capitalize">Builtin Types</h2>
<table className="ui very basic table" id="builtin">
<tbody>
{props.builtinTypes.map(item => (
<tr key={item.name}>
<td title={item.name} width="30%" className="truncate">
<Link className="functions" to={`/builtin/${props.ballerinaShortVersion}/${item.name}`}>{item.name}</Link>
</td>
<td width="70%">
<div className="module-desc">
<p>{getFirstLine(item.description)}</p>
</div>
</td>
</tr>
))}
</tbody>
</table></>}
{props.keywords != null && props.keywords.length > 0 && <><h2 className="capitalize">Keywords</h2>
<table className="ui very basic table" id="keywords">
<tbody>
{props.keywords.map(item => (
<tr key={item.name}>
<td title={item.name} width="30%" className="truncate">
<Link className="functions" to={`/keywords/${props.ballerinaShortVersion}/${item.name}`}>{item.name}</Link>
</td>
<td width="70%">
<div className="module-desc">
<p>{getFirstLine(item.description)}</p>
</div>
</td>
</tr>
))}
</tbody>
</table></>}
</Layout>
</section>
);
Expand Down
93 changes: 0 additions & 93 deletions docerina-ui/src/component/packageindex.js

This file was deleted.

0 comments on commit f1e2215

Please sign in to comment.