-
Notifications
You must be signed in to change notification settings - Fork 3
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 #3 from robocup-junior/documentation-sites
Merge Sphinx site with OnStage resources into main
- Loading branch information
Showing
87 changed files
with
2,865 additions
and
53 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,35 @@ | ||
name: Deploy Sphinx Docs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: build OnStage resources website | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx | ||
- name: Build documentation | ||
run: | | ||
sphinx-build -b html source docs/_build | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build |
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,3 @@ | ||
docs/_build/* | ||
docs/source/_ext/__pycache__ | ||
/.vscode |
File renamed without changes.
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,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RoboCupJunior OnStage</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
line-height: 1.6; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f7f7f7; | ||
color: #333; | ||
} | ||
.container { | ||
max-width: 800px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
background-color: #fff; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
border-radius: 5px; | ||
} | ||
h1, h2 { | ||
color: #133076; | ||
} | ||
h1 { | ||
text-align: center; | ||
margin-top: 0; | ||
} | ||
p { | ||
text-align: justify; | ||
margin-bottom: 15px; | ||
} | ||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
li { | ||
margin-bottom: 0px; | ||
} | ||
a { | ||
color: #007bff; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
text-decoration: underline; | ||
} | ||
table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
margin: 20px 0; | ||
font-family: Arial, sans-serif; | ||
} | ||
th, td { | ||
border: 1px solid #dddddd; | ||
text-align: left; | ||
padding: 8px; | ||
} | ||
th { | ||
background-color: #d0d0d0; | ||
} | ||
tr:nth-child(even) { | ||
background-color: #f9f9f9; | ||
} | ||
.headline { | ||
background-color: #a0a0a0; | ||
font-weight: bold; | ||
text-align: center; | ||
font-size: 1.2em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>RoboCupJunior 2024 - Eindhoven</h1> | ||
|
||
<h2>Teams</h2> | ||
<table id="data-table"> | ||
<tr class="headline"> | ||
<th style="width: 50%;">Name</th> | ||
<th style="width: 50%;">Region</th> | ||
</tr> | ||
</table> | ||
|
||
<h2>Rankings</h2> | ||
<p>Rankings (only those that get published during the award ceremony)</p> | ||
|
||
<h2>Performances and documentation</h2> | ||
<p>Table with recordings and documentation...</p> | ||
</div> | ||
|
||
<script src="https://hypothes.is/embed.js" async></script> | ||
<script> | ||
// Fetch the JSON data | ||
fetch('team-data.json') | ||
.then(response => response.json()) | ||
.then(data => { | ||
// Get the table element | ||
const table = document.getElementById('data-table'); | ||
|
||
// Iterate over the JSON data and create table rows | ||
data.forEach(item => { | ||
const row = document.createElement('tr'); | ||
|
||
const nameCell = document.createElement('td'); | ||
nameCell.textContent = item.Name; | ||
row.appendChild(nameCell); | ||
|
||
const regionCell = document.createElement('td'); | ||
regionCell.textContent = item.Region; | ||
row.appendChild(regionCell); | ||
|
||
table.appendChild(row); | ||
}); | ||
}) | ||
.catch(error => console.error('Error fetching JSON data:', error)); | ||
</script> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.