Skip to content

Commit d007020

Browse files
committed
Add mkdocs configuration
1 parent 4282163 commit d007020

14 files changed

Lines changed: 1487 additions & 214 deletions

File tree

.github/workflows/docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Docs
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout branch
14+
uses: actions/checkout@v4
15+
- name: Set up pixi
16+
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
17+
with:
18+
environments: docs
19+
- name: Build docs
20+
run: pixi run -e docs docs-build
21+
- name: Deploy docs
22+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
23+
run: pixi run -e docs mkdocs gh-deploy --force

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# multiregex
22

33
[![CI](https://img.shields.io/github/actions/workflow/status/quantco/multiregex/ci.yml?style=flat-square&branch=main)](https://github.com/quantco/multiregex/actions/workflows/ci.yml)
4+
[![Documentation](https://img.shields.io/badge/docs-7E56C2?style=flat-square)](https://quantco.github.io/multiregex)
45
[![conda-forge](https://img.shields.io/conda/vn/conda-forge/multiregex?logoColor=white&logo=conda-forge&style=flat-square)](https://prefix.dev/channels/conda-forge/packages/multiregex)
56
[![pypi-version](https://img.shields.io/pypi/v/multiregex.svg?logo=pypi&logoColor=white&style=flat-square)](https://pypi.org/project/multiregex)
67
[![python-version](https://img.shields.io/pypi/pyversions/multiregex?logoColor=white&logo=python&style=flat-square)](https://pypi.org/project/multiregex)

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/api-documentation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API Documentation
2+
3+
::: multiregex

docs/changelog.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/conf.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# multiregex
2+
3+
Quickly match many regexes against a string. Provides 2-10x speedups over naïve regex matching.
4+
5+
[API Documentation](api-documentation.md)

docs/index.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

mkdocs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
site_name: multiregex
2+
site_description: Quickly match many regexes against a string. Provides 2-10x speedups over naïve regex matching.
3+
site_url: https://quantco.github.io/multiregex
4+
theme:
5+
name: material
6+
palette:
7+
# Palette toggle for automatic mode
8+
- media: "(prefers-color-scheme)"
9+
toggle:
10+
icon: material/brightness-auto
11+
name: Switch to light mode
12+
# Palette toggle for light mode
13+
- media: "(prefers-color-scheme: light)"
14+
scheme: default
15+
toggle:
16+
icon: material/brightness-7
17+
name: Switch to dark mode
18+
primary: deep purple
19+
# Palette toggle for dark mode
20+
- media: "(prefers-color-scheme: dark)"
21+
scheme: slate
22+
toggle:
23+
icon: material/brightness-4
24+
name: Switch to system preference
25+
primary: deep purple
26+
features:
27+
- content.action.edit
28+
- search.suggest
29+
- search.highlight
30+
- content.code.annotate
31+
- content.code.copy
32+
icon:
33+
repo: fontawesome/brands/github-alt
34+
edit: material/pencil
35+
repo_name: quantco/multiregex
36+
repo_url: https://github.com/quantco/multiregex
37+
edit_uri: edit/main/docs/
38+
plugins:
39+
- search
40+
- mkdocstrings:
41+
handlers:
42+
python:
43+
options:
44+
unwrap_annotated: true
45+
show_symbol_type_heading: true
46+
docstring_style: numpy
47+
docstring_section_style: spacy
48+
separate_signature: true
49+
merge_init_into_class: true
50+
51+
nav:
52+
- index.md
53+
- api-documentation.md
54+
markdown_extensions:
55+
- admonition
56+
- pymdownx.highlight
57+
- pymdownx.superfences
58+
- pymdownx.inlinehilite

0 commit comments

Comments
 (0)