summaryrefslogtreecommitdiffstats
path: root/genman.txr
Commit message (Collapse)AuthorAgeFilesLines
* doc: Fix issue of missing collapse UI on Awk section.Kaz Kylheku2016-09-111-0/+3
| | | | | * genman.txr: Recognize the form of the table-of-contents line with the extra blank line generated by the .coSS macro.
* doc html: TOC indentation issue on Chrome.Kaz Kylheku2016-09-091-1/+1
| | | | | | | | * genman.txr: Hack: put <dd> before nested <dl> element in table of contents. Without this, the nested lists are rendered flush left by Google Chrome. With this, they are indented. Chrome adds ugly whitespace around the embedded definition lists, but it's better than no identation.
* Drop between TXR and Lisp syms in HTML Doc.Kaz Kylheku2016-06-031-20/+9
| | | | | | | | | | | | | | | Dropping the document feature that hyperlinks in the TXR section resolve to TXR topics, and TXR Lisp hyperlinks go to TXR Lisp topics. All multiple uses of symbols are handled through the new mechanism of disambiguating topic navigators. * genman.txr (txrhash, txlhash, tgthash): Variables removed. (symhash): One variable, replacing those three. BODY collecting loop no longer collects LOOKUP variable, since body lines are not associated with a particular hash.
* Topic disambiguation "sub-pages" in HTML doc.Kaz Kylheku2016-06-031-3/+33
| | | | | | | | | | | | | | | | | | | | The purpose of this change is to handle situations where a symbol has multiple meanings, resulting in different topic areas of the document where we might want to navigate. For instance, there is an equal function in the TXR Lisp library, and an equal method that users can define. * genman.txr (tochash, disamb, dist-counter): New variables. (process-ambiguities): New Lisp function. When collecting symbol/jump-tag associations, collect the lists of jump tags rather than just the first jump tag. Then process the hash using process-ambiguities to handle the cases with multiple entries, which are prepared in the disamb hash. The contents of the disamb hash turn into HTML material at the end of the page. An in-line style sheet is now added; it adds vertical space between the navigation menus so they appear as if they were separate web pages.
* Replace new hash limit constants with variables.Kaz Kylheku2016-05-281-0/+2
| | | | | | | | | | | | | | | | | | | * genman.txr: Call set-hash-str-limit to set a generous limit for string hashing, which restores the old hash values in the HTML document, preserving the validity of existing URLs. * hash.c (hash_str_limit, hash_rec_limit): New static variables. (HASH_STR_LIMIT, HASH_REC_LIMIT): Preprocessor symbols removed. (hash_c_str, equal_hash): Use hash_str_limit. (gethash_c, gethash, gethash_f, gethash_n, remhash, hash_equal): Use hash_rec_limit. (set_hash_str_limit, set_hash_rec_limit): New static functions. (hash_init): Register sys:set-hash-str-limit and sys:set-hash-rec-limit intrinsics.
* HTML doc: markup in lower case.Kaz Kylheku2015-12-151-45/+45
| | | | | | | | Requires updated man2html which puts out lower case. * genman.txr: All matched and generated HTML is lower case. * txr.1 (NP*): Use lower case h4 tag in M2SS macro.
* HTML doc: fix back jumping flaw.Kaz Kylheku2015-12-141-5/+13
| | | | | | | | | | | | | Issue: wrong [+] changes to [-], leading to inconsistent state. * genman.txr: In TOC extraction and transformation, we fix the stupid broken <DT>....<DD> that man2html puts out and turn it into <DT>...</DT>. This way a DL now has a DT element as its previous sibling. (tocjump): When we see a DL now, we get the correct element which has the expand/collapse: the previous sibling which is a DT containing the anchor.
* Handle browsers with JS disabled.Kaz Kylheku2015-12-131-0/+3
| | | | | * genvim.txr: Below Contents, place a note for users who have disabled Javascript.
* Remove redundant title tag.Kaz Kylheku2015-12-131-1/+1
| | | | | * genvim.txr: For some reason, we were generating a second <title> tag, with different contents.
* HTML doc: expand TOC section on jumpback.Kaz Kylheku2015-12-121-2/+21
| | | | | | | | | | | | When a section number is clicked, if the table of contents section which contains it is collapsed, open it, and its parents. * genman.txr: (tocjump): New JS function. add onclick action to jump-back links, which calls tocjump JS function which does the expansion. The name anchor entries in the TOC are tagged with a "tocanchor: class so they can be more specifically selected by the tocjump function.
* HTML doc: jump back to TOC feature.Kaz Kylheku2015-12-121-2/+5
| | | | | | | | | Section numbers are now hyperlinks which jump back to their respective table of contents entry. * genman.txr (toc-tag): New function. Generate link anchors into section titles. Generate name anchors in TOC.
* HTML doc: add doctype header and content-type.Kaz Kylheku2015-12-071-0/+2
|
* HTML doc: table of contents improvements.Kaz Kylheku2015-12-071-2/+54
| | | | | | * genman.txr: TOC extraction code renames Index to Contents, and adds expand/collapse links. Javascript added to handle expand/collapse.
* Fix wrong HTML references caused by identical section names.Kaz Kylheku2015-08-251-2/+7
| | | | | | | | | | For instance, both entries in the TOC titled "Overview" navigate to the the same section when we click on them. * genman.txr (tagnum): New hash for counting duplicate occurrences of section title. (enumerate): New function for adding numeric suffix to titles which are the same as previously seen titles.
* * genman.txr: Simplify double plass over BODY into single pass.Kaz Kylheku2015-07-031-30/+28
|
* * genman.txr: Take advantage of \@ escape in quasilit.Kaz Kylheku2015-07-011-1/+1
| | | | | | | * genvim.txr (txr_escat): New match category containing \@. Colorized a String. (txr_quasilit): Contains txr_escat. Thus, \@ looks like any other escape inside a quasilit.
* * genman.txr: Bugfix: reproduce the correct opening bracketKaz Kylheku2015-07-011-1/+2
| | | | before a function link.
* * genman.txr: New filter to add hyperlinks within code inKaz Kylheku2015-06-261-0/+26
| | | | more places such as examples and summary lists.
* * genman.txr: indentation.Kaz Kylheku2015-06-261-10/+10
|
* * genman.txr: Point to hacked manutils.Kaz Kylheku2015-06-221-4/+2
|
* * genman.txr: Rewrite the man2html-generated inner name links with hashKaz Kylheku2015-06-201-24/+54
| | | | | | values derived from the title text, so that when sections are inserted or deleted, the URL's remain stable. The PREAMBLE is gone, and VERSION is collected when processsing the body.
* * genman.txr (month-name): Filter removed.Kaz Kylheku2015-06-201-5/+3
| | | | Page date is converted to a time value, and later formatted.
* * genman.txr: Add PayPal donation button.Kaz Kylheku2014-09-301-0/+9
| | | | | * txr.1: Avoid escapes at the end of a line; man2html doesn't handle this properly.
* * genman.txr: TXR is now bolded in the title.Kaz Kylheku2014-09-301-2/+2
| | | | * txr.1: More formatting and wording fixes.
* * txr.1: Substantially revised with rich troff markup,Kaz Kylheku2014-09-261-5/+37
| | | | | | | and restructured in some places. * genman.txr: No longer generate the whole document in monospaced font. Add hyperlinks.
* Capitalization of TXR.Kaz Kylheku2014-02-271-2/+2
|
* * genman.txr: Updated.txr-56Kaz Kylheku2012-02-051-2/+2
| | | | | | * txr.vim: Fixed mistakes in a few regex character classes, causing upper case letters not to be recognized as part of a variable name, and character hex constant.
* * genman.txr: Updated for recent man page changes.Kaz Kylheku2011-12-281-1/+1
|
* * genman.txr: Fix empty NAME section.Kaz Kylheku2011-12-141-4/+7
|
* * genman.txr: Use filter for mapping month digits to names.Kaz Kylheku2011-11-011-38/+9
| | | | Added comment about where to find the right man2html.
* Fix month name.txr-035Kaz Kylheku2010-10-051-1/+1
|
* Show "git head" version in bleeding-edge document.Kaz Kylheku2010-01-171-2/+2
|
* Fix man page date.txr-028Kaz Kylheku2010-01-161-9/+9
|
* * genman.txr, txr.1: Encode version differently; extractKaz Kylheku2010-01-151-2/+2
| | | | from text during HTML conversion.
* Automate the maintenance of the HTML-ized man page.Kaz Kylheku2010-01-151-0/+79