From 2360c406bfa9af1cf14737320c55e74d09502d49 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 3 Nov 2019 18:35:06 +0000 Subject: [PATCH] Add JS code to generate a table of contents --- docs/extra.css | 4 +++ docs/options.md | 77 +++++++++++++++---------------------------------- 2 files changed, 28 insertions(+), 53 deletions(-) diff --git a/docs/extra.css b/docs/extra.css index 42095298..ddebc211 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -24,6 +24,10 @@ code, pre, tt { background-color: #f6f8fa; } +h1, h2, h3, h4, h5, h6 { + margin-top: 2em; +} + /* Code block filename style diff --git a/docs/options.md b/docs/options.md index ea3e8f01..48973e4e 100644 --- a/docs/options.md +++ b/docs/options.md @@ -106,6 +106,7 @@ Default: `auto` For `linux` you need Docker running, on Mac or Linux. For `macos`, you need a Mac machine, and note that this script is going to automatically install MacPython on your system, so don't run on your development machine. For `windows`, you need to run in Windows, and it will build and test for all versions of Python at `C:\PythonXX[-x64]`. ### CIBW_BUILD, CIBW_SKIP {: #build-skip} + > Choose the Python versions to build Space-separated list of builds to build and skip. Each build has an identifier like `cp27-manylinux1_x86_64` or `cp34-macosx_10_6_intel` - you can list specific ones to build and `cibuildwheel` will only build those, and/or list ones to skip and `cibuildwheel` won't try to build them. @@ -285,8 +286,8 @@ optional arguments: .options-toc { display: grid; grid-auto-columns: fit-content(20%) 1fr; - grid-gap: 10px; - gap: 10px; + grid-gap: 16px 32px; + gap: 16px 32px; font-size: 90%; margin-bottom: 24px; } @@ -298,44 +299,15 @@ optional arguments: .options-toc .header:first-child { margin-top: 0; } + .options-toc a.option { + display: block; + margin-bottom: 5px; + }