From d227640a767d1fd3e550d53f5a8ef7fa462d9674 Mon Sep 17 00:00:00 2001 From: Mark Gillard Date: Sun, 2 May 2021 15:32:13 +0300 Subject: [PATCH] fixed z-index of fixed title bar being higher than the search overlay also: - fixed documents autolinking to themselves --- poxy/data/poxy.css | 2 +- poxy/fixers.py | 2 ++ setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/poxy/data/poxy.css b/poxy/data/poxy.css index 8e3cc21..5306766 100644 --- a/poxy/data/poxy.css +++ b/poxy/data/poxy.css @@ -17,7 +17,7 @@ body > header top: 0; left: 0; right: 0; - z-index: 100; + z-index: 5; } body > main diff --git a/poxy/fixers.py b/poxy/fixers.py index 208677c..f5f179a 100644 --- a/poxy/fixers.py +++ b/poxy/fixers.py @@ -605,6 +605,8 @@ def __call__(self, doc, context): for tag in tags: strings = strings + soup.string_descendants(tag, lambda t: soup.find_parent(t, 'a', tag) is None) for expr, uri in context.autolinks: + if uri == doc.path.name: # don't create unnecessary self-links + continue i = 0 while i < len(strings): string = strings[i] diff --git a/setup.py b/setup.py index 6270940..fb7fea8 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def enum_subdirs(root): setup_args = dict( name=r'poxy', - version=r'0.1.1', + version=r'0.1.2', description=r'Documentation generator for C++.', long_description_content_type=r'text/markdown', long_description=f'{README}\n\n{HISTORY}'.strip(),