You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+77-6Lines changed: 77 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This project is under active development and there are possibilities of changes.
13
13
14
14
## What To Expect
15
15
16
-
I hope that this thorough documentation will help you deploy, customize and troubleshoot your Starter course. Ines provides some wonderful instructions in her `README.md` file, but I noticed there were a few notes I wanted to add to it for my colleagues and others attempting to make their course so that they can save time on troubleshooting.
16
+
I hope that this thorough documentation will help you deploy, customize and troubleshoot your starter course. Ines provides some wonderful instructions in her `README.md` file, but I noticed there were a few notes I wanted to add to it for my colleagues and others attempting to make their course so that they can save time on troubleshooting.
17
17
18
18
You will be working with different file types including `.md` (and potentially `.rmd`), `.json`, `.py` and `.txt`.
19
19
You may need to know _some_ Html for additional customization, however by no means in-depth.
@@ -101,7 +101,7 @@ this should output the following:
101
101
v10.13.0
102
102
```
103
103
104
-
Now that we have this done, Gatsby's installation and building the page should be must easier.
104
+
Now that we have this done, Gatsby's installation and building process should be much easier.
105
105
106
106
### Install Gatsby
107
107
@@ -112,14 +112,25 @@ npm install -g gatsby-cli
112
112
```
113
113
***NOTE: you will not need to update your dependencies here.
114
114
115
+
### Clone or Install the Repository
116
+
117
+
There are 2 methods in which this step can be done.
118
+
119
+
a) Simply clone the [starter course repo](https://github.com/ines/course-starter-python)
120
+
b) [Import](https://github.com/new/import) and install this repo
121
+
122
+
Make sure that you ***merge all the changes on the other branches to the master one** if you do not create a pull request for `electron` and `feature/deep-links` branches your course will not successfully deploy.*
123
+
124
+
One you have done this you will need to locate yourself to the root of the repo.
125
+
115
126
## Running on local Server
116
127
117
128
Next, we must install all relevant dependencies by running the following:
118
129
```
119
130
npm install
120
131
```
121
132
122
-
***NOTE: you will be prompted to `run "npm audit fix" to fix them`. I do not recommend doing this as it will burn your site down.
133
+
***NOTE: you will be prompted to `run "npm audit fix" to fix them`. I do not recommend doing this as it will burn your site down.***
123
134
the output below will still build your course:
124
135
```
125
136
found 572 vulnerabilities (4 low, 4 moderate, 564 high)
@@ -130,12 +141,17 @@ and finally to build the site on your local:
130
141
```
131
142
npm run dev
132
143
```
144
+
133
145
Delivering this as an output (copy and paste this address into any browser) :
134
146
```
135
-
You can now view DSCI-571 in the browser.
147
+
You can now view course-starter-python in the browser.
136
148
137
149
http://localhost:8000/
138
150
```
151
+
This should be the begining of a functioning starter-course!
152
+
153
+
154
+
Now that you have a website that is deploying on your local server we can now begin the steps to customize it to your own taste.
139
155
140
156
141
157
## Customization
@@ -146,8 +162,15 @@ There is a lot of different areas to make your site unique but below we are goin
146
162
147
163
_It's important to attribute Naome Ross and Julia Silge's courses for this section as they are responsible for the code pasted below_
148
164
149
-
Unlike Ines's [Spacy Course](https://course.spacy.io/), you may want an introduction similar to what [Julia Silge](https://supervised-ml-course.netlify.com/) and [Naome Ross](https://noamross.github.io/gams-in-r-course/) did for their courses.
165
+
## Customization
166
+
167
+
There is a lot of different areas to make your site unique but below we are going to edit the files systematically.
168
+
169
+
### Introduction on Homepage
170
+
171
+
_It's important to attribute Naome Ross and Julia Silge's courses for this section as they are responsible for the code pasted below_
150
172
173
+
Unlike Ines's [Spacy Course](https://course.spacy.io/), you may want an introduction similar to what [Julia Silge](https://supervised-ml-course.netlify.com/) and [Naome Ross](https://noamross.github.io/gams-in-r-course/) did for their courses.
151
174
152
175
They introduced their courses with a brief summary
153
176
@@ -203,13 +226,61 @@ you will need to paste the new classes as follows below into the document.
203
226
204
227
If you want to play with the measurements this is a welcomed opportunity to customize your course further.
205
228
229
+
This can be done by doing the following:
230
+
231
+
- Navigate into the `src/pages/` and open `index.js`
232
+
233
+
You will be adding a new `<section>` (Html code) under `<Layout isHome>` and inbetween the following two lines shown below : between
234
+
```
235
+
<Layout isHome>
236
+
<Logo className={classes.logo} aria-label={siteMetadata.title} /> # HERE
237
+
{chapters.map(({ slug, title, description }) => (
238
+
```
239
+
Here is an example of the code you can add.
240
+
241
+
```
242
+
<section>
243
+
<h1 className={classes.subtitle}> INSERT CATCHY TAG LINE HERE </h1>
244
+
<div className={classes.introduction}>
245
+
<p>
246
+
FILLER WORDS HERE. WHAT IS YOUR COURSE ABOUT? DINOSAURS? NEURAL NETS? HOW TO SURVIVE EVENTS WITH THE INLAWS? WRITE IT HERE!
247
+
</p>
248
+
</div>
249
+
</section>
250
+
```
251
+
252
+
Since we are adding new class names will are going to need to edit the document that formats the class name. This can be found in `src/styles/` in the doc `index.module.sass`.
253
+
254
+
you will need to paste the new classes as follows below into the document.
255
+
256
+
```
257
+
.subtitle
258
+
font-family: var(--font-display)
259
+
width: 600px
260
+
height: auto
261
+
max-width: 100%
262
+
margin: 0 auto 1rem
263
+
display: block
264
+
text-align: center
265
+
266
+
.introduction
267
+
width: var(--width-container)
268
+
max-width: 100%
269
+
padding: 1rem
270
+
margin: 0 auto
271
+
display: block
272
+
text-align: left
273
+
```
274
+
275
+
If you want to play with the measurements this is a welcomed opportunity to customize your course further.
276
+
206
277
### Course Homepage Information
207
278
208
279
Here is where we will be changing all the homepage information including Course Name, "About This Course", "About Me", Website and Source. All of these factors are edited in the `meta.json` file located at the root of the repo. Ines has provided [a detailed discription](https://github.com/ines/course-starter-python#metajson) of what each component is responsible for. I am simply going to add some points that could be considered helpful when navigating in this documents
209
280
210
281
| Setting | Additional Notes: |
211
282
| -------------------- | ----------------- |
212
-
|`courseId`| Ines does not have this parameter in her spacy course, however deleting this will not let the course function properly so not having this setting is not an option unless you want to explore what makes her spacy course repo different than her course-starter repo. |
283
+
|`courseId`| Ines does not have this parameter in her spacy course, however deleting this will not let the course function properly so not having this setting is not an option unless you want to explore what makes her spacy course repo different than her course-starter repo. This `courseId` is reflected once you compile your site and it reads `You can now view "courseId" in the browser.`|
213
284
|`slogan`| This will show up once you deploy your site and it will be show in the image of the link that you send. |
214
285
|`juniper.branch`| We will address this further when building a binder but note that the branch here specified is called binder. That means that we will need to edit the `requirements.txt` file and push it to the binder branch|
0 commit comments