mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 11:15:46 +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;
|
list = null;
|
||||||
if (level == 0 && /^.*:\n$/.test(match.par))
|
if (level == 0 && /^.*:\n$/.test(match.par)) {
|
||||||
res += <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
let text = par.slice(0, -1);
|
||||||
|
res += <h2 tag={"news-" + text}>{template.linkifyHelp(text, true)}</h2>;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
||||||
res += <p highlight={group + " HelpNews"}>{
|
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)) {
|
for (let [file, ] in Iterator(services["dactyl:"].FILE_MAP)) {
|
||||||
dactyl.open("dactyl://help/" + file);
|
dactyl.open("dactyl://help/" + file);
|
||||||
dactyl.modules.events.waitForPageLoad();
|
dactyl.modules.events.waitForPageLoad();
|
||||||
let data = [
|
var data = [
|
||||||
'<?xml version="1.0" encoding="UTF-8"?>\n',
|
'<?xml version="1.0" encoding="UTF-8"?>\n',
|
||||||
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n',
|
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n',
|
||||||
' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'
|
' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
Disabled color: red;
|
Disabled color: red;
|
||||||
|
|
||||||
FontFixed font-family: monospace !important;
|
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;
|
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
|
// Hack to give these groups slightly higher precedence
|
||||||
|
|||||||
@@ -157,10 +157,10 @@
|
|||||||
a boolean. [b2]
|
a boolean. [b2]
|
||||||
- 'mapleader' is now an option rather than a :let
|
- 'mapleader' is now an option rather than a :let
|
||||||
variable. [b4]
|
variable. [b4]
|
||||||
- 'passkeys' is now a sitemap with key chain support rather
|
- 'passkeys' is now a [sitemap] with key chain support rather
|
||||||
than a regexpmap. [b6]
|
than a [regexpmap]. [b6]
|
||||||
- 'showmode' is now a regexplist. [b6]
|
- 'showmode' is now a [regexplist]. [b6]
|
||||||
- 'showstatuslinks' and 'showtabline' are now string options. [b4]
|
- 'showstatuslinks' and 'showtabline' are now [string] options. [b4]
|
||||||
• IMPORTANT: Command script files now use the *.penta file extension. [b2]
|
• IMPORTANT: Command script files now use the *.penta file extension. [b2]
|
||||||
• IMPORTANT: Plugins are now loaded from the 'plugins/'
|
• IMPORTANT: Plugins are now loaded from the 'plugins/'
|
||||||
directory in 'runtimepath' rather than 'plugin/'. [b1]
|
directory in 'runtimepath' rather than 'plugin/'. [b1]
|
||||||
|
|||||||
Reference in New Issue
Block a user