From ce6778f1d52165c6a1a5e5b7978e20d4bb9bccf0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 21 Sep 2014 21:23:16 +0200 Subject: [PATCH] doc: Fix settings anchors --- doc/help/settings.asciidoc | 274 ++++++++++++++++++------------------- scripts/src2asciidoc.py | 2 +- 2 files changed, 138 insertions(+), 138 deletions(-) diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 8401a16bc..fd6313843 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -4,203 +4,203 @@ [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Whether to find text on a page case-insensitively. -|<>|Whether to wrap finding text to the top when arriving at the end. -|<>|The default page(s) to open at the start, separated by commas. -|<>|Whether to start a search when something else than a URL is entered. -|<>|Whether to save the config automatically on quit. -|<>|The editor (and arguments) to use for the `open-editor` command. -|<>|Encoding to use for editor. -|<>|Do not record visited pages in the history or store web page icons. -|<>|Enable extra tools for Web developers. -|<>|Whether the background color and images are also drawn when the page is printed. -|<>|Whether load requests should be monitored for cross-site scripting attempts. -|<>|Enable workarounds for broken sites. -|<>|Default encoding to use for websites. +|<>|Whether to find text on a page case-insensitively. +|<>|Whether to wrap finding text to the top when arriving at the end. +|<>|The default page(s) to open at the start, separated by commas. +|<>|Whether to start a search when something else than a URL is entered. +|<>|Whether to save the config automatically on quit. +|<>|The editor (and arguments) to use for the `open-editor` command. +|<>|Encoding to use for editor. +|<>|Do not record visited pages in the history or store web page icons. +|<>|Enable extra tools for Web developers. +|<>|Whether the background color and images are also drawn when the page is printed. +|<>|Whether load requests should be monitored for cross-site scripting attempts. +|<>|Enable workarounds for broken sites. +|<>|Default encoding to use for websites. |============== .Quick reference for section ``ui'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|The available zoom levels, separated by commas. -|<>|The default zoom level. -|<>|Time (in ms) to show messages in the statusbar for. -|<>|Whether to confirm quitting the application. -|<>|Whether to display javascript statusbar messages. -|<>|Whether the zoom factor on a frame applies only to the text or to all content. -|<>|Whether to expand each subframe to its contents. -|<>|User stylesheet to use. -|<>|Set the CSS media type. +|<>|The available zoom levels, separated by commas. +|<>|The default zoom level. +|<>|Time (in ms) to show messages in the statusbar for. +|<>|Whether to confirm quitting the application. +|<>|Whether to display javascript statusbar messages. +|<>|Whether the zoom factor on a frame applies only to the text or to all content. +|<>|Whether to expand each subframe to its contents. +|<>|User stylesheet to use. +|<>|Set the CSS media type. |============== .Quick reference for section ``network'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Value to send in the `DNT` header. -|<>|Value to send in the `accept-language` header. -|<>|User agent to send. Empty to send the default. -|<>|The proxy to use. -|<>|Whether to validate SSL handshakes. -|<>|Whether to try to pre-fetch DNS entries to speed up browsing. +|<>|Value to send in the `DNT` header. +|<>|Value to send in the `accept-language` header. +|<>|User agent to send. Empty to send the default. +|<>|The proxy to use. +|<>|Whether to validate SSL handshakes. +|<>|Whether to try to pre-fetch DNS entries to speed up browsing. |============== .Quick reference for section ``completion'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Whether to show the autocompletion window. -|<>|The height of the completion, in px or as percentage of the window. -|<>|How many commands to save in the history. -|<>|Whether to move on to the next part when there's only one possible completion left. -|<>|Whether to shrink the completion to be smaller than the configured size if there are no scrollbars. +|<>|Whether to show the autocompletion window. +|<>|The height of the completion, in px or as percentage of the window. +|<>|How many commands to save in the history. +|<>|Whether to move on to the next part when there's only one possible completion left. +|<>|Whether to shrink the completion to be smaller than the configured size if there are no scrollbars. |============== .Quick reference for section ``input'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Timeout for ambiguous keybindings. -|<>|Whether to switch to insert mode when clicking flash and other plugins. -|<>|Whether to leave insert mode if a non-editable element is clicked. -|<>|Whether to automatically enter insert mode if an editable element is focused after page load. -|<>|Whether to forward unbound keys to the webview in normal mode. -|<>|Enables or disables the Spatial Navigation feature -|<>|Whether hyperlinks should be included in the keyboard focus chain. +|<>|Timeout for ambiguous keybindings. +|<>|Whether to switch to insert mode when clicking flash and other plugins. +|<>|Whether to leave insert mode if a non-editable element is clicked. +|<>|Whether to automatically enter insert mode if an editable element is focused after page load. +|<>|Whether to forward unbound keys to the webview in normal mode. +|<>|Enables or disables the Spatial Navigation feature +|<>|Whether hyperlinks should be included in the keyboard focus chain. |============== .Quick reference for section ``tabs'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Whether to open new tabs (middleclick/ctrl+click) in background. -|<>|Which tab to select when the focused tab is removed. -|<>|How new tabs are positioned. -|<>|How new tabs opened explicitely are positioned. -|<>|Behaviour when the last tab is closed. -|<>|Whether to wrap when changing tabs. -|<>|Whether tabs should be movable. -|<>|On which mouse button to close tabs. -|<>|The position of the tab bar. -|<>|Whether to show favicons in the tab bar. -|<>|The width of the tab bar if it's vertical, in px or as percentage of the window. -|<>|Width of the progress indicator (0 to disable). -|<>|Spacing between tab edge and indicator. +|<>|Whether to open new tabs (middleclick/ctrl+click) in background. +|<>|Which tab to select when the focused tab is removed. +|<>|How new tabs are positioned. +|<>|How new tabs opened explicitely are positioned. +|<>|Behaviour when the last tab is closed. +|<>|Whether to wrap when changing tabs. +|<>|Whether tabs should be movable. +|<>|On which mouse button to close tabs. +|<>|The position of the tab bar. +|<>|Whether to show favicons in the tab bar. +|<>|The width of the tab bar if it's vertical, in px or as percentage of the window. +|<>|Width of the progress indicator (0 to disable). +|<>|Spacing between tab edge and indicator. |============== .Quick reference for section ``storage'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|The directory to save downloads to. An empty value selects a sensible os-specific default. -|<>|The maximum number of pages to hold in the memory page cache. -|<>|The capacities for the memory cache for dead objects such as stylesheets or scripts. Syntax: cacheMinDeadCapacity, cacheMaxDead, totalCapacity. -|<>|Default quota for new offline storage databases. -|<>|Quota for the offline web application cache. -|<>|Whether support for the HTML 5 offline storage feature is enabled. -|<>|Whether support for the HTML 5 web application cache feature is enabled. -|<>|Whether support for the HTML 5 local storage feature is enabled. -|<>|Size of the HTTP network cache. +|<>|The directory to save downloads to. An empty value selects a sensible os-specific default. +|<>|The maximum number of pages to hold in the memory page cache. +|<>|The capacities for the memory cache for dead objects such as stylesheets or scripts. Syntax: cacheMinDeadCapacity, cacheMaxDead, totalCapacity. +|<>|Default quota for new offline storage databases. +|<>|Quota for the offline web application cache. +|<>|Whether support for the HTML 5 offline storage feature is enabled. +|<>|Whether support for the HTML 5 web application cache feature is enabled. +|<>|Whether support for the HTML 5 local storage feature is enabled. +|<>|Size of the HTTP network cache. |============== .Quick reference for section ``permissions'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Whether images are automatically loaded in web pages. -|<>|Enables or disables the running of JavaScript programs. -|<>|Enables or disables plugins in Web pages. -|<>|Whether JavaScript programs can open new windows. -|<>|Whether JavaScript programs can close windows. -|<>|Whether JavaScript programs can read or write to the clipboard. -|<>|Whether locally loaded documents are allowed to access remote urls. -|<>|Whether locally loaded documents are allowed to access other local urls. -|<>|Whether to accept cookies. -|<>|Whether to store cookies. +|<>|Whether images are automatically loaded in web pages. +|<>|Enables or disables the running of JavaScript programs. +|<>|Enables or disables plugins in Web pages. +|<>|Whether JavaScript programs can open new windows. +|<>|Whether JavaScript programs can close windows. +|<>|Whether JavaScript programs can read or write to the clipboard. +|<>|Whether locally loaded documents are allowed to access remote urls. +|<>|Whether locally loaded documents are allowed to access other local urls. +|<>|Whether to accept cookies. +|<>|Whether to store cookies. |============== .Quick reference for section ``hints'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|CSS border value for hints. -|<>|Opacity for hints. -|<>|Mode to use for hints. -|<>|Chars used for hint strings. -|<>|Whether to auto-follow a hint if there's only one left. -|<>|A comma-separated list of regexes to use for 'next' links. -|<>|A comma-separated list of regexes to use for 'prev' links. +|<>|CSS border value for hints. +|<>|Opacity for hints. +|<>|Mode to use for hints. +|<>|Chars used for hint strings. +|<>|Whether to auto-follow a hint if there's only one left. +|<>|A comma-separated list of regexes to use for 'next' links. +|<>|A comma-separated list of regexes to use for 'prev' links. |============== .Quick reference for section ``colors'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Text color of the completion widget. -|<>|Background color of the completion widget. -|<>|Background color of completion widget items. -|<>|Foreground color of completion widget category headers. -|<>|Background color of the completion widget category headers. -|<>|Top border color of the completion widget category headers. -|<>|Bottom border color of the completion widget category headers. -|<>|Foreground color of the selected completion item. -|<>|Background color of the selected completion item. -|<>|Top border color of the completion widget category headers. -|<>|Bottom border color of the selected completion item. -|<>|Foreground color of the matched text in the completion. -|<>|Foreground color of the statusbar. -|<>|Foreground color of the statusbar. -|<>|Background color of the statusbar if there was an error. -|<>|Background color of the statusbar if there is a prompt. -|<>|Background color of the statusbar in insert mode. -|<>|Background color of the progress bar. -|<>|Default foreground color of the URL in the statusbar. -|<>|Foreground color of the URL in the statusbar on successful load. -|<>|Foreground color of the URL in the statusbar on error. -|<>|Foreground color of the URL in the statusbar when there's a warning. -|<>|Foreground color of the URL in the statusbar for hovered links. -|<>|Foreground color of tabs. -|<>|Background color of unselected odd tabs. -|<>|Background color of unselected even tabs. -|<>|Background color of selected tabs. -|<>|Background color of the tabbar. -|<>|Color gradient start for the tab indicator. -|<>|Color gradient end for the tab indicator. -|<>|Color for the tab indicator on errors.. -|<>|Color gradient interpolation system for the tab indicator. -|<>|Color for the tab seperator. -|<>|Font color for hints. -|<>|Font color for the matched part of hints. -|<>|Background color for hints. -|<>|Foreground color for downloads. -|<>|Background color for the download bar. -|<>|Color gradient start for downloads. -|<>|Color gradient end for downloads. -|<>|Color gradient interpolation system for downloads. +|<>|Text color of the completion widget. +|<>|Background color of the completion widget. +|<>|Background color of completion widget items. +|<>|Foreground color of completion widget category headers. +|<>|Background color of the completion widget category headers. +|<>|Top border color of the completion widget category headers. +|<>|Bottom border color of the completion widget category headers. +|<>|Foreground color of the selected completion item. +|<>|Background color of the selected completion item. +|<>|Top border color of the completion widget category headers. +|<>|Bottom border color of the selected completion item. +|<>|Foreground color of the matched text in the completion. +|<>|Foreground color of the statusbar. +|<>|Foreground color of the statusbar. +|<>|Background color of the statusbar if there was an error. +|<>|Background color of the statusbar if there is a prompt. +|<>|Background color of the statusbar in insert mode. +|<>|Background color of the progress bar. +|<>|Default foreground color of the URL in the statusbar. +|<>|Foreground color of the URL in the statusbar on successful load. +|<>|Foreground color of the URL in the statusbar on error. +|<>|Foreground color of the URL in the statusbar when there's a warning. +|<>|Foreground color of the URL in the statusbar for hovered links. +|<>|Foreground color of tabs. +|<>|Background color of unselected odd tabs. +|<>|Background color of unselected even tabs. +|<>|Background color of selected tabs. +|<>|Background color of the tabbar. +|<>|Color gradient start for the tab indicator. +|<>|Color gradient end for the tab indicator. +|<>|Color for the tab indicator on errors.. +|<>|Color gradient interpolation system for the tab indicator. +|<>|Color for the tab seperator. +|<>|Font color for hints. +|<>|Font color for the matched part of hints. +|<>|Background color for hints. +|<>|Foreground color for downloads. +|<>|Background color for the download bar. +|<>|Color gradient start for downloads. +|<>|Color gradient end for downloads. +|<>|Color gradient interpolation system for downloads. |============== .Quick reference for section ``fonts'' [options="header",width="75%",cols="25%,75%"] |============== |Setting|Description -|<>|Default monospace fonts. -|<>|Font used in the completion widget. -|<>|Font used in the tabbar. -|<>|Font used in the statusbar. -|<>|Font used for the downloadbar. -|<>|Font used for the hints. -|<>|Font used for the debugging console. -|<>|Font family for standard fonts. -|<>|Font family for fixed fonts. -|<>|Font family for serif fonts. -|<>|Font family for sans-serif fonts. -|<>|Font family for cursive fonts. -|<>|Font family for fantasy fonts. -|<>|The hard minimum font size. -|<>|The minimum logical font size that is applied when zooming out. -|<>|The default font size for regular text. -|<>|The default font size for fixed-pitch text. +|<>|Default monospace fonts. +|<>|Font used in the completion widget. +|<>|Font used in the tabbar. +|<>|Font used in the statusbar. +|<>|Font used for the downloadbar. +|<>|Font used for the hints. +|<>|Font used for the debugging console. +|<>|Font family for standard fonts. +|<>|Font family for fixed fonts. +|<>|Font family for serif fonts. +|<>|Font family for sans-serif fonts. +|<>|Font family for cursive fonts. +|<>|Font family for fantasy fonts. +|<>|The hard minimum font size. +|<>|The minimum logical font size that is applied when zooming out. +|<>|The default font size for regular text. +|<>|The default font size for fixed-pitch text. |============== == general diff --git a/scripts/src2asciidoc.py b/scripts/src2asciidoc.py index 8d32b136c..13e0741b1 100755 --- a/scripts/src2asciidoc.py +++ b/scripts/src2asciidoc.py @@ -139,7 +139,7 @@ def _get_setting_quickref(): out.append('|Setting|Description') for optname, _option in sect.items(): desc = sect.descriptions[optname].splitlines()[0] - out.append('|<>|{}'.format( + out.append('|<<{}-{},{}>>|{}'.format( sectname, optname, optname, desc)) out.append('|==============') return '\n'.join(out)