Skip to content

Commit ae24b00

Browse files
committed
Deploy manual to gh-pages
1 parent 6791e5a commit ae24b00

File tree

3 files changed

+85
-18
lines changed

3 files changed

+85
-18
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ jobs:
132132
- name: Run spec_usermanual tests
133133
run: docker-compose run web bin/spec_usermanual
134134
- name: Update manual to testmycode-usermanual
135-
env:
136-
DEPLOY_TOKEN: ${{ secrets.USERMANUAL_DEPLOY_TOKEN }}
137-
run: ./.update-usermanual.sh
135+
uses: JamesIves/github-pages-deploy-action@4.1.3
136+
with:
137+
branch: gh-pages
138+
folder: doc/usermanual

.update-usermanual.sh

-15
This file was deleted.

doc/usermanual/index.html

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Test My Code Usermanual</title>
6+
7+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
8+
9+
<meta name="description" content="Usermanual for TestMyCode">
10+
<style>
11+
.container {
12+
display: -webkit-flex;
13+
display: flex;
14+
flex-flow: row wrap;
15+
16+
/* Then we define how is distributed the remaining space */
17+
justify-content: space-around;
18+
}
19+
body {
20+
font-family: "Open Sans", sans-serif;
21+
background-color: #fafafa;
22+
}
23+
header {
24+
height: 300px;
25+
}
26+
.item {
27+
background: white;
28+
width: 30%;
29+
min-width: 200px;
30+
text-align: center;
31+
display: flex;
32+
flex-direction: column;
33+
margin-bottom: 5px;
34+
padding: 10px;
35+
box-sizing: border-box;
36+
}
37+
section .item {
38+
-webkit-box-shadow: 4px 5px 7px 3px rgba(153,153,153,1);
39+
-moz-box-shadow: 4px 5px 7px 3px rgba(153,153,153,1);
40+
box-shadow: 4px 5px 7px 3px rgba(153,153,153,1);
41+
}
42+
@media screen and (max-width: 550px) {
43+
.item {
44+
width: 100%;
45+
}
46+
47+
}
48+
</style>
49+
50+
<!--[if lt IE 9]>
51+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
52+
<![endif]-->
53+
</head>
54+
55+
<body>
56+
<style scoped contenteditable>
57+
</style>
58+
<header class="container">
59+
<div class="">
60+
<h1>Usermanual for the TestMyCode server and the TestMyCode Workflow</h1>
61+
<p>Below we have linked usermanuals for different roles available in the TestMyCode server.</p>
62+
</div>
63+
</header>
64+
<section class="container">
65+
<article class="item">
66+
<h2><a href="teachers.html">Teachers and Teaching assistants</a></h2>
67+
<p>This usermanual cover how to request a new organization, how to create a course, provided by others, for your students to use,
68+
how to manage deadlines, what are soft deadlines and unlock conditions, how to add teaching assistants for your course, etc.
69+
</p>
70+
</article>
71+
<article class="item">
72+
<h2><a href="customcourse.html">For creating a course template for others to use (closed beta)</a></h2>
73+
<p>Usermanual for creating and providing a coustom course for others to use in the TestMyCode system.</p>
74+
<p>This behaviours is currently in invite only beta. Please contact your TMC instance provider to join the beta.</p>
75+
</article>
76+
<article class="item"><h2><a href="admins.html">Admin</a></h2>
77+
<p>Usermanual for admins</p>
78+
</article>
79+
</section>
80+
</body>
81+
</html>

0 commit comments

Comments
 (0)