mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-11 02:54:13 +01:00
Add tags for individual versions in :help news. Fix dactyl.exportHelp.
This commit is contained in:
@@ -751,8 +751,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
}
|
||||
|
||||
list = null;
|
||||
if (level == 0 && /^.*:\n$/.test(match.par))
|
||||
res += <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
||||
if (level == 0 && /^.*:\n$/.test(match.par)) {
|
||||
let text = par.slice(0, -1);
|
||||
res += <h2 tag={"news-" + text}>{template.linkifyHelp(text, true)}</h2>;
|
||||
}
|
||||
else {
|
||||
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
||||
res += <p highlight={group + " HelpNews"}>{
|
||||
@@ -907,7 +909,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
for (let [file, ] in Iterator(services["dactyl:"].FILE_MAP)) {
|
||||
dactyl.open("dactyl://help/" + file);
|
||||
dactyl.modules.events.waitForPageLoad();
|
||||
let data = [
|
||||
var data = [
|
||||
'<?xml version="1.0" encoding="UTF-8"?>\n',
|
||||
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n',
|
||||
' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'
|
||||
|
||||
@@ -386,7 +386,7 @@ var ConfigBase = Class("ConfigBase", {
|
||||
Disabled color: red;
|
||||
|
||||
FontFixed font-family: monospace !important;
|
||||
FontCode font-size: 9pt; font-family: -mox-fixed, monospace !important;
|
||||
FontCode font-size: 9pt; font-family: monospace !important;
|
||||
FontProportional font-size: 10pt; font-family: "Droid Sans", "Helvetica LT Std", Helvetica, "DejaVu Sans", Verdana, sans-serif !important;
|
||||
|
||||
// Hack to give these groups slightly higher precedence
|
||||
|
||||
@@ -157,10 +157,10 @@
|
||||
a boolean. [b2]
|
||||
- 'mapleader' is now an option rather than a :let
|
||||
variable. [b4]
|
||||
- 'passkeys' is now a sitemap with key chain support rather
|
||||
than a regexpmap. [b6]
|
||||
- 'showmode' is now a regexplist. [b6]
|
||||
- 'showstatuslinks' and 'showtabline' are now string options. [b4]
|
||||
- 'passkeys' is now a [sitemap] with key chain support rather
|
||||
than a [regexpmap]. [b6]
|
||||
- 'showmode' is now a [regexplist]. [b6]
|
||||
- 'showstatuslinks' and 'showtabline' are now [string] options. [b4]
|
||||
• IMPORTANT: Command script files now use the *.penta file extension. [b2]
|
||||
• IMPORTANT: Plugins are now loaded from the 'plugins/'
|
||||
directory in 'runtimepath' rather than 'plugin/'. [b1]
|
||||
|
||||
Reference in New Issue
Block a user