A curated list to help you become a great student developer.
git clone
this repo down andcd
into the folder from a terminal.- Run
npm install
. - Run
roots watch
. - Make changes.
- To stop the local web server, just hit ctrl + c.
- Install Ship
npm install ship -g
- Manually add a CNAME file in the /public folder - it should contain one line:
studentdev.io
cd
to the project directoryship public -to gh-pages
- Enter your credentials - the file these are stored in is already included in .gitignore
Views describe the pages which users see and interact with. Here's the noteworthy top-level points:
- These are written in a preprocessor called Jade (soon to be called Pug).
- This uses indentation to describe nested tags.
- Currently there is only one template in this site - index.jade.
- These are written in a preprocessor called Stylus.
- The main file is master.styl, which in turn imports the rest of the files.
- To change the blue accent color, change
$color
on line 2. - To change the breakpoint to swap to mobile view, change
$breakpoint
on line 1. - If you want to change the site-wide font, change the font-family name in line 10 of _base.styl (remember to include a reference to it in views/layout.jade).
- Just drop the images in this directory for them to be accessible from /img/FILENAME in the views.
/views/index.jade is fairly self-explanatory. It's written in Markdown.
- Start the local server with
roots watch
- Add your content using Markdown indented inside of the
:marked
section - If you want to add new sections, add a new
h1
element and a new Markdown section below it