Skip to content

Commit

Permalink
change folder from build to docs for output files
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharlton02 committed Sep 7, 2018
1 parent 0a1d26a commit f6f47e5
Show file tree
Hide file tree
Showing 47 changed files with 109 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ function fromDir(startPath, filter) {
}

// Delete out the previous build
del.sync(["build/*"])
del.sync(["docs/*"])

// Copy all of the files from the src directory to the build directory
ncp("./src", "./build", () => {
const htmlFiles = fromDir("./build", ".html")
// Copy all of the files from the src directory to the docs directory
ncp("./src", "./docs", () => {
const htmlFiles = fromDir("./docs", ".html")
htmlFiles.forEach(file => {
injectTemplates(file)
})
Expand Down
Empty file removed build/404.html
Empty file.
Empty file removed build/about_us.html
Empty file.
Binary file removed build/assets/cannon-stuff.jpg
Binary file not shown.
Binary file removed build/assets/first/FIRST_Logo256.png
Binary file not shown.
Binary file removed build/assets/first/relic recovery.png
Binary file not shown.
Binary file removed build/assets/social_media/facebook.png
Binary file not shown.
Binary file removed build/assets/social_media/instagram.png
Binary file not shown.
Binary file removed build/assets/social_media/mail.png
Binary file not shown.
Binary file removed build/assets/social_media/youtube.png
Binary file not shown.
Binary file removed build/assets/team_logos/inspirelogo.jpg
Binary file not shown.
Binary file removed build/assets/team_logos/missingpartslogo.jpg
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/Capture06.PNG
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/IMG_1.JPG
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/IMG_2.JPG
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/IMG_3.JPG
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/bright.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/cannonbot.jpg
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/game1.png
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/game2.png
Binary file not shown.
Binary file removed build/assets/team_pictures/cannonbot/game3.png
Binary file not shown.
Binary file removed build/assets/team_pictures/frc 2018/frcweight.jpeg
Binary file not shown.
Binary file removed build/assets/team_pictures/ftc 2017/Capture03.PNG
Binary file not shown.
Binary file removed build/assets/team_pictures/ftc 2017/Capture05.PNG
Binary file not shown.
Diff not rendered.
Binary file removed build/assets/team_pictures/ftc 2017/gyro code.png
Diff not rendered.
Diff not rendered.
Binary file removed build/assets/team_pictures/outreach/Capture01.PNG
Diff not rendered.
Binary file removed build/assets/team_pictures/outreach/Capture02.PNG
Diff not rendered.
Diff not rendered.
43 changes: 43 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!doctype html>

<html>

<head>
<title>Inspire Robotics #4283</title>
<link rel="stylesheet" href="css/styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/main.js"></script>
</head>

<body class="webpage-body">
<center>
<div class="topnav" id="navbar">
<div class="mobile-hamburger-container">
<div class="mobile-hamburger" id="menu-button">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div>
<div class="links" id="links">
<a class="active" href="index.html">Home</a>
<a href="about_us.html">About Us</a>
<a href="contact_us.html">Contact Us</a>
<a href="tshirt_cannon.html">CannonBot</a>
<a href="frc.html">FRC</a>
<a href="ftc.html">FTC</a>
<a href="fundraising.html">Fundraising</a>
<a href="calendar.html">Calendar</a>
<a href="gallery.html">Pictures</a>
</div>
</div>
<h1>Error 404. Page Not Found</h1>
<h3>There appear to be some "Missing Parts" on the site.
<a href="index.html">Click here to return to the homepage.</a>
</h3>
<img src="assets/team_logos/missingpartslogo.jpg" height="300">
<img src="assets/team_logos/inspirelogo.jpg" height="300">
</center>
</body>

</html>
60 changes: 60 additions & 0 deletions docs/about_us.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!doctype html>

<html>

<head>
<title>Inspire Robotics #4283</title>
<link rel="stylesheet" href="css/styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/main.js"></script>
</head>

<body class="webpage-body">
<center>
<div class="topnav" id="navbar">
<div class="mobile-hamburger-container">
<div class="mobile-hamburger" id="menu-button">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div>
<div class="links" id="links">
<a class="active" href="index.html">Home</a>
<a href="about_us.html">About Us</a>
<a href="contact_us.html">Contact Us</a>
<a href="tshirt_cannon.html">CannonBot</a>
<a href="frc.html">FRC</a>
<a href="ftc.html">FTC</a>
<a href="fundraising.html">Fundraising</a>
<a href="calendar.html">Calendar</a>
<a href="gallery.html">Pictures</a>
</div>
</div>

<div class="page-box">
<h1>About Us</h1>

<p>We are a team that was founded in 2012 and have been operating ever since. Eastern Ohio Robotics is our boosters organization,
whose goals are to support robotics teams throughout eastern Ohio. We compete in the First Robotics Challenge, or FRC.
Every January we are given six weeks to Design, Prototype, Build and Program a 120-pound robot. In the past, we have
won two first Awards In 2013, We were awarded the Industrial Design Award By General Motors. The team had to design a
robot that could shoot frisbees or climb a pyramid. During that competition, we designed frisbee shooting that could
shoot frisbee across the field ( about the same size as a basketball court ). In 2016 we had to build a robot to breach
our opponent’s fortifications, weaken their tower with boulders and capture their tower. Our robot was designed to go
through the fortifications to gain points and carry boulders across the field and score them in the lower of the two
goals for points. At our competition two years ago, we placed 13th out of 52 teams there in Qualifiers, which made us
qualify for the Ohio State Championship. We placed 14th in Qualifiers and were selected for an alliance that came in
2nd in finals. In 2017 we had to build a robot to shoot whiffle balls into a 9-foot tall goal, place gears onto a rod,
a climb a 5-foot rope. Our robot was designed to both climb the rope and shoot the whiffle balls into the tower. We automated
our shooter to automatically aim the robot using a camera, distance sensor, and angle adjusting system. Our team's goals
are: To Promote students to the fields of Science, Technology, engineering, and mathematics To student in the engineering
process Inspire future engineers and programmers
</p>
<img src="assets/team_pictures/cannonbot/cannon-stuff.jpg" height="400">
<h6>Copyright Eastern Ohio Robotics 2018</h6>
</div>
</center>
</body>

</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ watch("templates", {recursive: true}, rebuildProject)
// Build the express server to allow for static file serving
const app = express()

// Mark the public folder as the build directory
const publicDir = path.join(__dirname, "build")
// Mark the public folder as the docs directory
const publicDir = path.join(__dirname, "docs")

// The server should run on port 3000
const PORT = process.env.PORT || 3000
Expand Down

0 comments on commit f6f47e5

Please sign in to comment.