Skip to main content

OKtools package

Project description

OKtools

Tools to work with OKpy exercises and solutions.

Requires:

See the rmdex README for documentation of the markup for the exercises.

The tools need a configuration file in YaML format. Here is an example:

# Configuration for cfd2021 exercise builds
# Save as _course.yml in home directory.

# Top-level URL for built book.
url : "https://uob-ds.github.io"
# The subpath of built book under URL.
# Full book URL will then be {url}{base_url}
baseurl : "/cfd2021"
# Local output path for exercise dirs.
# Built exercise directories / repositories will appear here.
org_path : "~/dev_trees/uob-cfd"
# Github organization name to house built repositories.
org_name : "uob-cfd"
# Git base URL for exercise dirs.
git_root : "https://github.com"
# If using JupyterHub, URL of JupyterHub instance.
# Uncomment and edit if using a JupyterHub.
# jh_root : "https://uobhub.org"

Save this file as _course.yml in the directory with the exercise templates, or in some directory higher up the file hierarchy (nearer the root directory) — for example, your home directory (if that is on the same filesystem as your exercise templates).

Example command to check exercise build and test, run from the directory containing the exercise template files:

# You can omit site-config if _course.yml is in a suitable location.
okt-dir2exercise --site-config=$HOME/my_dir/_course.yml .

Then, when satisfied, use the --push flag to push up the built exercise to a matching repository:

# You can omit site-config if _course.yml is in a suitable location.
okt-dir2exercise --site-config=$HOME/my_dir/_course.yml . --push

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oktools-0.0.1a3.tar.gz (22.1 kB view hashes)

Uploaded Source

Built Distribution

oktools-0.0.1a3-py3-none-any.whl (38.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page