in scripts/versions.js [21:88]
function Versions(props) {
const {config: siteConfig} = props;
const baseUrl = siteConfig.baseUrl;
const latestVersion = versions[0];
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer versionsContainer">
<div className="post">
<header className="postHeader">
<h1>{siteConfig.title} Versions</h1>
</header>
<table className="versions">
<tbody>
<tr>
<th>Version</th>
<th>Install with</th>
<th>Documentation</th>
</tr>
<tr>
<td>{`stable (${latestVersion})`}</td>
<td>
<code>conda install -c pytorch captum</code>
</td>
<td>
<a href={`${baseUrl}index.html`}>stable</a>
</td>
</tr>
<tr>
<td>
{'latest'}
{' (master)'}
</td>
<td>
<code>
pip install git+ssh://git@github.com/pytorch/captum.git
</code>
</td>
<td>
<a href={`${baseUrl}versions/latest/index.html`}>latest</a>
</td>
</tr>
</tbody>
</table>
<h3 id="archive">Past Versions</h3>
<table className="versions">
<tbody>
{versions.map(
version =>
version !== latestVersion && (
<tr key={version}>
<th>{version}</th>
<td>
<a href={`${baseUrl}versions/${version}/index.html`}>
Documentation
</a>
</td>
</tr>
),
)}
</tbody>
</table>
</div>
</Container>
</div>
);
}