Commit Graph

11 Commits

Author SHA1 Message Date
Matthew Flatt
5c7c8a3bd0 HTML output: fix relative-path computation for Windows drives
The relative-path computation assumed that a relative path was
always possible, but a relative path can't go from one drive
to another.

Also, the relative-path computation didn't take into account
case-insensitivity, so it failed in a different-drive way
when the drive case was different between two paths.

Closes racket/racket#1625
2017-03-24 20:05:32 -06:00
Matthew Butterick
37019a1eb6 Add meta to Scribble template for mobile
Forces the narrow (one-column) layout on mobile devices.
2016-12-28 10:41:09 -08:00
Matthew Flatt
30ae71202d fix references lifted to table of contents
Certain lifted reference forms carried the prefix of the original
section, but in general the section needs to be similarly carried for
rendering elements that may contain references.

Also, fix the contract on `elemref` and `elemtag` to use
`taglet?` instead of `tag?`.

Thanks to Dupéron Georges.
2016-10-01 10:51:18 -06:00
Matthew Flatt
4d62fba7f2 fix scribble --redirect-main with indirect links 2016-02-25 08:53:42 -07:00
Matthew Flatt
17acde5a1f fix default external-URL redirection
Use an installation's current configuration and get a corrected
default by using `setup/dirs`.
2016-02-25 08:49:22 -07:00
Matthew Flatt
798155c4f9 add make-numberer to generalize section numbering 2016-01-09 20:21:18 -07:00
Matthew Flatt
668e3799bd HTML output: refine handling of a table in a bullet
Avoid a blank bullet line when an item start with a "boxed"
table for `defform` and similar.
2015-12-21 15:35:34 -07:00
Matthew Flatt
b812869d3e drop 'aux elements from left-margin contents
Removing aux elements for the left-margin contexts makes link
rendering consistent with other hyperlinks.
2015-06-09 07:09:38 -06:00
Matthew Flatt
6556e9f92a add x-source-pkg to HTML output 2015-02-15 10:26:43 -07:00
Matthew Flatt
d5e244a068 Fix #:redirect-main/--redirect-main for only main installation
The intent was for the redirection to apply only to links to
documentation in the main installation, but it also affected
other paths.
2015-02-02 21:28:45 +01:00
Sam Tobin-Hochstadt
a316fc12c0 Remove extra directories. 2014-12-02 00:54:52 -05:00