Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored Jan 31, 2024
0 parents commit a67fad8
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CS184/284A Homework Webpage Repo

The goal of this repo is to provide a template from which students can host CS184/284A homework writeups.

## Enabling Github Pages

To enable Github pages, go to the 'Settings' tab then click on 'Pages'. Under 'Build and Deployment' -> 'Branch', make sure that the branch is set to 'master' and the folder is set to 'root'. If these settings are correct, you should see a message saying "Your site is live at [website url]" at the top of the 'Pages' page, and navigating to the github page link should render index.html.

## Adding Homework Webpages

There are 4 folders, one for each homework. Each contains an index.html file. When the links from the mainpage are clicked, these files will be loaded, so edit these to add your homework webpages.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
7 changes: 7 additions & 0 deletions hw1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
Homework 1 index.html here
</body>
</html>
7 changes: 7 additions & 0 deletions hw2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
Homework 2 index.html here
</body>
</html>
7 changes: 7 additions & 0 deletions hw3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
Homework 3 index.html here
</body>
</html>
7 changes: 7 additions & 0 deletions hw4/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head>
</head>
<body>
Homework 4 index.html here
</body>
</html>
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<html>
<head>
</head>
<body>
<h3>CS184/284A Homework Webpages</h3>
<br><br>
<a href="/hw1/index.html">Homework 1</a>
<br><br>
<a href="/hw2/index.html">Homework 2</a>
<br><br>
<a href="/hw3/index.html">Homework 3</a>
<br><br>
<a href="/hw4/index.html">Homework 4</a>
</body>
<script>
var links = document.body.getElementsByTagName("a")
var a = window.location.href.indexOf(".io")
var repo_name = window.location.href.substring(a+3)
for(var i = 0; i < links.length; i++){
var link = links[i]
var actual_name = link.href.substring(link.href.indexOf(".io")+4)
link.href = repo_name + actual_name
}
</script>
</html>

0 comments on commit a67fad8

Please sign in to comment.