Skip to content

Commit 5580985

Browse files
author
hayley
committed
new customizing
2 parents 46ee869 + 3ce4fd3 commit 5580985

File tree

1 file changed

+77
-6
lines changed

1 file changed

+77
-6
lines changed

docs/index.md

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project is under active development and there are possibilities of changes.
1313

1414
## What To Expect
1515

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.
1717

1818
You will be working with different file types including `.md` (and potentially `.rmd`), `.json`, `.py` and `.txt`.
1919
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:
101101
v10.13.0
102102
```
103103

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.
105105

106106
### Install Gatsby
107107

@@ -112,14 +112,25 @@ npm install -g gatsby-cli
112112
```
113113
***NOTE: you will not need to update your dependencies here.
114114

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+
115126
## Running on local Server
116127

117128
Next, we must install all relevant dependencies by running the following:
118129
```
119130
npm install
120131
```
121132

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.***
123134
the output below will still build your course:
124135
```
125136
found 572 vulnerabilities (4 low, 4 moderate, 564 high)
@@ -130,12 +141,17 @@ and finally to build the site on your local:
130141
```
131142
npm run dev
132143
```
144+
133145
Delivering this as an output (copy and paste this address into any browser) :
134146
```
135-
You can now view DSCI-571 in the browser.
147+
You can now view course-starter-python in the browser.
136148
137149
http://localhost:8000/
138150
```
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.
139155

140156

141157
## Customization
@@ -146,8 +162,15 @@ There is a lot of different areas to make your site unique but below we are goin
146162

147163
_It's important to attribute Naome Ross and Julia Silge's courses for this section as they are responsible for the code pasted below_
148164

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_
150172

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.
151174

152175
They introduced their courses with a brief summary
153176

@@ -203,13 +226,61 @@ you will need to paste the new classes as follows below into the document.
203226

204227
If you want to play with the measurements this is a welcomed opportunity to customize your course further.
205228

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+
206277
### Course Homepage Information
207278

208279
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
209280

210281
| Setting | Additional Notes: |
211282
| -------------------- | ----------------- |
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.` |
213284
| `slogan` | This will show up once you deploy your site and it will be show in the image of the link that you send. |
214285
| `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|
215286

0 commit comments

Comments
 (0)