This repository houses the Dr. Everitt's Neighborhood wiki and is powered by Mkdocs + material theme.
- Make sure you've installed Python and pip
- Install pipenv:
pip install --user pipenv
orbrew install pipenv
(for mac) - Clone the repository into a folder of your choise
- In the wiki folder, run
pipenv install; pipenv shell
. This will install dependencies and activate a python virtual environment. - Run
mkdocs serve
. You can see a preview of the docs site athttp://localhost:8000
in your browser. - Make changes. The website in your browser will update automatically.
- You should make your changes on a separate branch and follow the same pull request flow outlined on the website.
The title of a markdown file is defined to be the first level-1 heading it contains (that is, the text after a single #
).
The navigation menu of a folder is defined to be the top navigation bar for the docs
folder, and otherwise:
- if folder is a direct child of
docs
, the left sidebar - otherwise, within a dropdown under its parent folder
Content rules:
Consider an arbitrary folder f
. The file f/index.md
must exist and is the first file users will see when they navigate to that folder. Any other files f/xyz.md
will be displayed on the navigation menu corresponding to this folder. The navigation menu places the title of index.md
first, followed by the titles of any other files, sorted by alphabetical order of file name (so, you should name all your other files using the format 1.thing.md
, 2.thing.md
, ... to enforce ordering). The folder f
will be placed into the navigation menu for its parent folder under name f
. Thus, your folder names should be descriptive.
This is pretty formal so it's probably easier to just see what's in the docs
folder and learn by example.
For cross-listed courses with sections that differ by department (i.e. CS374/ECE374), create a wiki page for both courses. For all other cross-listed courses, only create an ECE course page, and configure a redirect in mkdocs.yml
:
- redirects:
redirect_maps:
"Course Wiki/CS Course Offerings/CS123.md": "Course Wiki/ECE Course Offerings/ECE456.md"
The very top of each wiki page should contain relevant tags, in the format below:
tags:
- Signal Processing
- Another Tag
You should only use tags specified in the allowed_tags
section in mkdocs.yml
. If the tag you want to add is missing from mkdocs.yml
, add it. Please make sure to only have one spelling of each tag in the mkdocs.yml
file.
Anyone is welcome to submit a PR. PRs must be reviewed by a member of the HKN website team before being merged.
Each semester, you should regenerate the following files:
cs_graph.js
ece_graph.js
ce_graph.js
ee_graph.js
following the instructions from the course graph repository.