Skip to main content

An ONS MkDocs Theme based on Material for MkDocs for creating documentation websites

Project description

:red_car: Getting Started

Setting up your documentation site to use this theme couldn't be easier. The quickest and easiest way to get up and running is to install with pip.

To be able to use this theme, you need to be using at least Python v3.8.

:computer: Installation

with pip

ONS MkDocs Theme is published as a Python package and can be installed with pip, ideally by using a virtual environment. Open up a terminal and install ONS MkDocs Theme with:

pip install ons_mkdocs_theme

This will automatically install compatible versions of all dependencies: MkDocs, Markdown, Pygments and Python Markdown Extensions.

!!! tip

If you don't have prior experience with Python, we recommend reading
[Using Python's pip to Manage Your Projects' Dependencies], which is a
really good introduction on the mechanics of Python package management and
helps you troubleshoot if you run into errors.

with git

ONS MkDocs Theme can be directly used from GitHub by cloning the repository into a subfolder of your project root folder.

Simply create a folder called ons_mkdocs_theme. In the terminal, ensure you are in the root folder directory of your project and run the following command:

mkdir ons_mkdocs_theme

You then need to cd into the new directory with the following command:

cd ons_mkdocs_theme

To clone the theme files, run the following command:

git clone https://github.com/ONSdigital/ons_mkdocs_theme

Next, install the theme and its dependencies with:

pip install -e .

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

ons_mkdocs_theme-1.2.4.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ons_mkdocs_theme-1.2.4-py3-none-any.whl (8.4 MB view details)

Uploaded Python 3

File details

Details for the file ons_mkdocs_theme-1.2.4.tar.gz.

File metadata

  • Download URL: ons_mkdocs_theme-1.2.4.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ons_mkdocs_theme-1.2.4.tar.gz
Algorithm Hash digest
SHA256 6b30239dad6a7c37e7eccd627c0e7620d04cf5fc902b3a6e259f3b55944f0f98
MD5 85d44acdb2e2fcba5261fa7980ad8674
BLAKE2b-256 4145788f77015e8916648a134e38ea2dc627190aa64ebb44b200f4c79c077ac0

See more details on using hashes here.

File details

Details for the file ons_mkdocs_theme-1.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ons_mkdocs_theme-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc800853d626d08ffe1c6e9ffbf4fbd3f5191c392a9585e2bd1c4e3af9ae78d
MD5 6e4273e8acd0fcc2b271c267b1ad73c0
BLAKE2b-256 671cade23e4a55d7e0d2a0df1ae87b8281489047bb108d72ac323343e611b89d

See more details on using hashes here.

Supported by

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