Skip to content

smucclaw/internal_docs

Repository files navigation

README

pre-commit.ci status

Timeline

We're aiming to get most of the substantive material up by June 1.

How to install / set up locally

  1. Install poetry, the dependency manager we're using, by following the instructions here.

  2. Use poetry shell to activate the virtual environment (see the poetry docs for more info)

  3. Once you have done poetry shell, install dependencies with poetry install --no-root.

  4. To publish the site: After making whatever changes you want to make, you can get it to show up on the GH pages site by pushing to main / making a PR and merging it in. For substantive docs, you are encouraged to tag at least one of the rest for 'code' review.

PLEASE DO NOT PUSH TO THE gh-pages branch.

To see what it'll look like, locally: Build the docs site with mkdocs build; serve it (with live-reloading) via mkdocs serve.

If you are using VSCode

I recommend using this extension for Markdown linting.

Using pre-commit locally

Using pre-commit locally is usually faster than waiting for the GH workflow.

To install locally

If you are on a mac:

brew install pre-commit

# navigate to this repo
cd internal_docs
 # install the git hook scripts. pre-commit will now run on every commit.
pre-commit install
pre-commit autoupdate # bring the hooks to the latest tag on the default branch

Every time you clone a project using pre-commit, running pre-commit install should always be the first thing you do.

See docs at https://pre-commit.com/ for more info.

To manually run all pre-commit hooks against the files locally

pre-commit run --all-files

Why pre commit and markdown linting

Yongming noticed that parts of the site weren't rendering properly because the markdown was not valid. Using precommit and markdown linting should help with that.

For more info on mkdocs

See https://squidfunk.github.io/mkdocs-material and https://www.mkdocs.org/.

Releases

No releases published

Packages

No packages published