X Tutup
Skip to content

Commit b3ad7ba

Browse files
committed
Update README - minor fixes
1 parent 14342b3 commit b3ad7ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ Table of contents:
66
* [Examples](#examples)
77
* [Support](#support)
88
* [Releases](#releases)
9-
* [Latest release](#latest-release)
10-
* [v31 release](#v31-release)
119
* [Support development](#support-development)
1210
* [Thanks](#thanks)
1311
* [Quick links](#quick-links)
14-
* [Docs](#docs)
15-
* [API categories](#api-categories)
16-
* [API index](#api-index)
1712

1813

1914
## Introduction
@@ -73,7 +68,7 @@ Information on supported platforms, python versions, architectures
7368
and requirements. If you want to support old operating systems then
7469
choose the v31 release.
7570

76-
### Latest release
71+
**Latest release**
7772

7873
OS | Py2 | Py3 | 32bit | 64bit | Requirements
7974
--- | --- | --- | --- | --- | ---
@@ -85,7 +80,7 @@ These platforms are not supported yet:
8580
- ARM - see [Issue #267](../../issues/267)
8681
- Android - see [Issue #307](../../issues/307)
8782

88-
### v31 release
83+
**v31 release**
8984

9085
OS | Py2 | Py3 | 32bit | 64bit | Requirements
9186
--- | --- | --- | --- | --- | ---

tools/toc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ def create_toc(contents, file_):
113113
contents += os.linesep + toc + os.linesep + os.linesep
114114
toc_inserted = True
115115
contents += line + os.linesep
116+
# Special case for README.md - remove Quick Links toc for subheadings
117+
re_find = (r" \* \[Docs\]\(#docs\)[\r\n]+"
118+
r" \* \[API categories\]\(#api-categories\)[\r\n]+"
119+
r" \* \[API index\]\(#api-index\)\r?\n?")
120+
contents = re.sub(re_find, "", contents)
116121
return tocsize, contents, warnings
117122

118123

0 commit comments

Comments
 (0)
X Tutup