- SuperNOVA is the name for the First Robotics Competition team 4472.
- This is the online documentation website for SuperNOVA. This website will include
- everything documented by the SuperNOVA team, including parts of WPILib, methods of
- programming certain things, and more!
-
+
+
About SuperNOVA
+
+ SuperNOVA is a team that has participated in the
+ First Robotics Competition
+ every year since 2013 and has been given the team number 4472.
+ SuperNOVA has members from around most of Prince William County, including
+ the following schools:
+
+ Since 2018, SuperNOVA has qualified for the FRC world championships every year.
+
+
-
Something
+
About the Docs
- Put something here. I don't care what.
+ In the programming division of SuperNOVA, there is a group that is tasked with
+ writing the documentation for the active project and everything about it. For
+ several years, while SuperNOVA was using GitLab to host their codebase,
+ SuperNOVA used the built-in wiki to help design their documentation. However in
+ 2023, SuperNOVA switched from using GitLab to GitHub, and unlike GitLab, GitHub
+ prohibits making wikis on private repositories without paying premium. As a
+ solution, this website was made. This website serves as a public wikipedia on
+ SuperNOVA's current ideas and innovations, as well as anything else worth
+ documenting. This website will be updated as the season progresses.
@@ -35,5 +72,5 @@
-
+
diff --git a/js/global.js b/js/global.js
index ca3e8c1..c451115 100644
--- a/js/global.js
+++ b/js/global.js
@@ -3,11 +3,13 @@ const internet = new XMLHttpRequest();
var htmlStr = document.documentElement.innerHTML;
// Insert site parts
-insertHeader();
-insertFooter();
+//insertHeader();
+insertContents();
+//insertFooter();
// Update page
document.documentElement.innerHTML = htmlStr;
+alert("test");
// ----- Begin function declarations
@@ -24,6 +26,38 @@ function insertHeader()
while (htmlStr.includes(headerReplace)) htmlStr = htmlStr.replace(headerReplace, header);
}
}
+function insertContents()
+{
+ const tableReplace = "";
+
+ var table = document.createElement("div");
+ table.setAttribute("id", "table-of-contents");
+
+ var title = document.createElement("h2");
+ title.textContent = "Table of Contents";
+
+ table.appendChild(title);
+
+ var list = document.createElement("ul");
+
+ var titleObjects = document.getElementsByClassName("para-title");
+ for (var i = 0; i < titleObjects.length; i++)
+ {
+ var appendLink = document.createElement("a");
+ appendLink.setAttribute("class", "nounderline");
+ appendLink.setAttribute("href", "#" + titleObjects[i].id);
+ appendLink.textContent = titleObjects[i].textContent;
+
+ var append = document.createElement("li");
+ append.appendChild(appendLink);
+
+ list.appendChild(append);
+ }
+
+ table.appendChild(list);
+
+ while (htmlStr.includes(tableReplace)) htmlStr = htmlStr.replace(tableReplace, table.outerHTML);
+}
function insertFooter()
{
const footerUrl = "/partial/footer.html"
diff --git a/partial/header.html b/partial/header.html
index c5fdcf3..10d238a 100644
--- a/partial/header.html
+++ b/partial/header.html
@@ -1,9 +1,11 @@
-
-