Skip to content

kiboschool/course-pm-and-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Management and Design

What's here?

$ tree .
.
├── README.md
├── book.toml
├── theme/
└── src
    ├── SUMMARY.md
    └── chapter_1.md

README.md

This describes how to set up and edit the site.

book.toml

Config file for the course. Authors, title, other mdbook settings.

https://rust-lang.github.io/mdBook/format/configuration/index.html

theme/

Any overrides of the default mdbook theme. Right now, just some custom CSS on top of the standard mdbook CSS.

https://rust-lang.github.io/mdBook/format/theme/index.html

src

Holds all the course files.

The static site output will be built to output, but that's git ignored.

src/SUMMARY.md

This gets turned into the sidebar on the site.

It's the text that should show, plus links to other md files in src/.

https://rust-lang.github.io/mdBook/format/summary.html

Anything that is not linked in the sidebar will not be included in the output site.

src/*

These are the pages that actually make up the course. It's nice to put things in folders to organize the different pages. Each week can get a 'cover page' and a page per lesson, in a folder with that name, like

working-with-data.md
working-with-data/
    programs-and-comments.md
    variables-and-assignment.md
    data-types-operators-and-expressions.md
    input-and-output.md

etc.

output

To generate the static site, run:

mdbook build

Output lives in the output folder.

You can usually ignore these files, they aren't tracked in git.

Getting Started

Install mdbook: https://rust-lang.github.io/mdBook/guide/installation.html

Use your package manager:

brew install mdbook

or

scoop install mdbook

Or download a release from Github.

Or if you use rust: cargo install mdbook

Run the book locally

mdbook serve --open

Deployment

We use vercel to handle deploys. It takes some setup to connect a repo to vercel, assign a production domain, and set up auto-deploys.

  • Github actions will run mdbook build on pushed changes
  • All pushes will automatically deploy to vercel
  • Vercel will notify the #tech-status channel on Slack with the deploy preview
  • If you pushed to main, it will also deploy to the live site. Watch out!

Previews and Drafts

If you'd like to preview changes, push to draft branch, which will have a separate preview version of the site.

Remember - commits to main get built and deployed to the production site; commits to draft get pushed to the preview version, others get nothing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages