-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from brown-ccv/add-table-content
feat: add table of content on the home page, remove read docs link (r…
- Loading branch information
Showing
4 changed files
with
189 additions
and
48 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import React from "react"; | ||
import "../src/css/toc.css"; | ||
|
||
/** | ||
* A Table of Contents for the Honeycomb Docs page | ||
* | ||
* @param {*} param0 | ||
* @returns | ||
*/ | ||
export default function TableOfContents() { | ||
return ( | ||
<div className="TOC-container"> | ||
<h2>Table of Contents</h2> | ||
<div className="TOC-content"> | ||
<div className="TOC-col"> | ||
<ul> | ||
<li> | ||
<a href="../docs">Introduction</a> | ||
</li> | ||
<li> | ||
<a href="../docs/quick_start">Quick Start</a> | ||
</li> | ||
<li> | ||
<a href="../docs/prerequisites">Prerequisites</a> | ||
</li> | ||
<li> | ||
Project Organization | ||
<ul> | ||
<li> | ||
<a href="../docs/directory_structure">Directory Structure</a> | ||
</li> | ||
<li> | ||
<a href="../docs/npm_scripts">NPM Scripts</a> | ||
</li> | ||
<li> | ||
<a href="../docs/environment_variables"> | ||
Environment Variables | ||
</a> | ||
</li> | ||
<li> | ||
<a href="../docs/ci_cd"> | ||
Continuous Integration / Deployment | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<div className="TOC-col"> | ||
<ul> | ||
<li> | ||
Deployment | ||
<ul> | ||
<li> | ||
<a href="../docs/local_application">Local Application</a> | ||
</li> | ||
<li> | ||
<a href="../docs/firebase">Firebase</a> | ||
</li> | ||
<li> | ||
<a href="../docs/psiturk">PsiTurk</a> | ||
</li> | ||
<li> | ||
<a href="../docs/gh_pages">GitHub Pages</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
External Tools | ||
<ul> | ||
<li> | ||
<a href="../docs/event_triggers">Event Triggers</a> | ||
</li> | ||
<li> | ||
<a href="../docs/prolific">Prolific</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Further Reading | ||
<ul> | ||
<li> | ||
<a href="../docs/github_discussions">Github Discussions</a> | ||
</li> | ||
<li> | ||
<a href="../docs/version_control">Version Control</a> | ||
</li> | ||
<li> | ||
<a href="../docs/javascript">JavaScript</a> | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<a href="../docs/troubleshooting">Troubleshooting</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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,48 @@ | ||
/** | ||
* For table of contents items | ||
*/ | ||
.TOC-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
.TOC-content { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: top; | ||
justify-self: center; | ||
margin: 1.5vh 0; | ||
gap: 5.5vw; | ||
padding: 0; | ||
} | ||
|
||
.TOC-col { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-self: center; | ||
margin: 1.5vh 0; | ||
padding: 0; | ||
} | ||
|
||
.TOC-col > ul { | ||
display: inline-block; | ||
text-align: center; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.TOC-col > ul > li { | ||
margin-bottom: 1.5vh; | ||
font-size: large; | ||
} | ||
|
||
.TOC-col > ul > li > ul { | ||
text-align: center; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
font-size: smaller; | ||
} |
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