Commit Graph

982 Commits

Author SHA1 Message Date
Matthew Flatt
24f358a5d7 scribble latex: work around `\href{...#...}{...}' as a macro argument
The `math' document build was failing because `\marginpar' does not
like `\href{...#...}{...}' as an argument.
2012-11-25 06:24:51 -07:00
Matthew Flatt
9888fac99e raco setup: move doc dependency and duplicate checking to database
This change makes document building --- and specially incremental
document building --- more scalable. The global duplicate-definition
check is handled by a database query, for example.
2012-11-23 20:07:49 -07:00
Matthew Flatt
a73dc50224 break cross-reference info for document into pieces
For example, the cross-reference information for the
Reference is now broken into about 16 pieces, so that
resolving a cross-reference into the Reference doesn't
require loading all cross-reference information for
the Reference.

Every document is split into two pieces, so that the title
of a document is roughly in its own piece. That way,
re-building the page of all installed documentation can be more
scalable (after some further changes).
2012-11-23 18:44:51 -07:00
Matthew Flatt
693ff33bfc serialize bluebox tables
Typically, the bluebox table includes keys that have interned parts,
so serialization can save space both on disk and in memory when the
bluebox information is reloaded.
2012-11-23 18:44:51 -07:00
Matthew Flatt
8c1b5db815 raco setup: build database mapping doc tags to "out.sxref"s
The `xref' produced by `setup/xref' uses the database to delay
loading "out.sxref"s, which cuts 64-bit DrRacket's initial
footprint by around 50MB (i.e., about 20%).
2012-11-23 18:44:50 -07:00
Matthew Flatt
a830f77403 scribble: more control over version formatting
Add "Version" in front of a version name via `.version:before' or
`.versionNoNav:before' and `\SVersionBefore', so that they can
be configured through overriding CSS or Latex macro declarations.

Also, improve the documentation for how the `#:version' argument
of `title' is propagated to a `part' style property.

Closes PR 13227
2012-11-02 07:45:57 -06:00
Matthew Flatt
008f476210 Scribble PDF/Latex: Hangul support 2012-11-02 07:45:57 -06:00
Matthew Flatt
739aa11404 Scribble Latex/PDF: use tocstyle only if it's available 2012-11-01 09:29:26 -06:00
Robby Findler
54301ad5ed fix apparent type error in the definition of in-plt? 2012-10-27 18:37:59 -05:00
Matthew Flatt
c7d3de435f scribble Latex/PDF: use the `tocstyle' package
Fixes the spacing of section numbers for a section like N.M where
both N and M have two digits.
2012-10-27 09:24:02 -06:00
Samuel Bronson
a624d8de15 Misc improvements to the doc search JavaScript code
* Stamp "plt-index.js" with the path of its generator.

* Fix most of the "use strict" and js2-mode warnings in scribble's
  JavaScript.

* Some code improvements in the generating code too.

(With some edits by Eli.)
2012-10-10 11:05:25 -04:00
Matthew Flatt
6a82c8bb7c Scribble Latex: more complete and consistent handling of accented letters 2012-10-10 07:13:05 -06:00
Matthew Flatt
de9ccea7f1 Scribble: add some macron accents for Latex
Merge to v5.3.1
2012-10-10 06:49:01 -06:00
Manu
e7db0bdac4 Added CSS rules for printing. 2012-10-05 11:15:59 -04:00
Matthew Flatt
683e72e9e3 scribble: make `linebreak' work more for Latex/PDF rendering 2012-10-04 06:40:36 -06:00
Samuel Bronson
1dce7e587f scribble/private/manual-form: Implement racketgrammar in terms of racketgrammar*
This is just a refactoring for readability.
2012-10-02 15:06:27 -06:00
Matthew Flatt
44e55689a2 Scribble overview: mention tables comments, and pictures 2012-09-23 11:53:30 -05:00
Matthew Flatt
cb041850f4 scribble: decode a lone ` as a left "curly quote"
Also, add 'lsquo as allowed content.

Omitting the ` conversion in the first place was over-conservative.
There's a backward-compatibility issue with this addition (i.e., a
document might contain a backquote in a decoded context that is
meant to be rendered as a backquote), but the potential problems
seem minor.
2012-09-21 07:37:30 -06:00
Matthew Flatt
4cc475ad68 Scribble: fix problem with URL redirection 2012-09-13 11:05:52 -06:00
Matthew Flatt
3fb42cf3f1 scribble/html-properties: allow URLs in css-addition' and js-addition' 2012-09-11 18:52:59 -06:00
Matthew Flatt
9162fc2504 racket/html-properties: add `js-addition' 2012-09-11 17:39:12 -06:00
Matthew Flatt
dc925d2d8c scribble HTML: add head-extra' and support for attributes'
For a part that corresponds to an HTML page.
2012-09-11 17:18:14 -06:00
Matthew Flatt
7d2ce136fa scribble: another Latex/PDF section repair 2012-09-03 08:07:34 -06:00
Matthew Flatt
16621ad437 scribble: fix for Latex and `\Ssection' changes 2012-09-03 06:10:27 -06:00
Vincent St-Amour
a85438bc69 Add comment about the current state of the latex character table. 2012-08-31 19:31:20 -04:00
Matthew Flatt
7b2e18afc5 scribble: for Latex output, use `\Ssection', etc. for section
A style override might change `\section' to `\chapter', etc.
2012-08-31 16:07:10 -06:00
Matthew Flatt
d841ec1bd0 propagate prefix repair to to scribble/jfp' and scribble/lncs' 2012-08-31 07:33:08 -06:00
fbanados
0b19326ac6 include scribble/scribble-prefix.tex packages to scribble/sigplan 2012-08-31 07:33:08 -06:00
Matthew Flatt
5e5e503859 scribble/manual: add #:normalize?' option to deftech' et al. 2012-08-20 17:37:24 -06:00
Robby Findler
d96d920cf9 rename contract-blueboxes.rktd to blueboxes.rktd 2012-08-14 16:20:47 -05:00
Robby Findler
185de3b6eb remove unnecessary dependency from scribble on slideshow 2012-08-14 10:39:03 -05:00
Robby Findler
0c6734f782 Add the contents of the "blue boxes" in the docs to the upper-right
corner of the definitions window, based on the information that check
syntax computes

This commit contains two separate changes to make this work:

  - adding a new renderer, based on the text renderer, that
    pulls out the contents of the blue boxes and saves them
    in the doc/ directories (specifically in the files named
    contract-blueboxes.rktd)

  - extend check syntax to use and display the information
    build by the new renderer
2012-08-12 08:41:46 -05:00
Robby Findler
5d81b80736 correct spelling error 2012-08-11 22:50:49 -05:00
Robby Findler
8ee76c9547 Add index entries for @defconstructor (and friends). Also add
code that skips over them when building the search indices.
Overall, this means that the only change most people would see
is that multiple constructors in the same class will get a warning
(and there was one of those, so fixed that too).

Also, Rackety. Specifically, transformed this surprising combination
of constructs (where all caps are placeholders for something specific):

((if PRED
     (λ (c mk) BODY2)
     (λ (c mk) BODY1))
 content
 (lambda (tag) BODY3))

into this one:

(define (mk tag) BODY3)
(if PRED
    BODY1{c:=content}
    BODY2{c:=content})
2012-08-11 21:52:48 -05:00
Matthew Flatt
f11450d601 scribble/base: generalize `itemlist' to splice/coerce some arguments
Also, add a `spliceof' contract constructor to `scribble/decode'.
2012-08-03 13:43:23 -06:00
Matthias Felleisen
bf8c30727d fixed small mistake in defform/none from conversion to syntax/parse
merge into v5.3 but ask Matthew for second opinion
2012-07-23 11:35:59 -04:00
Robby Findler
0ee8155527 use a more descriptive name in the identifier generated by define-on-demand
so when it shows up in an error message it doesn't take forever to figure
out which 'val' that is
2012-07-15 08:07:11 -05:00
Vincent St-Amour
f036b0bd12 Add scribble support for additional letters from the Czech alphabet. 2012-07-12 17:40:01 -04:00
Matthew Flatt
f9b4c6b226 scribble: add --dest-base flag
Also add the option to `render' from `racket/render', and
document the existing `render%' initialization argument.
2012-07-06 16:48:36 -06:00
Eli Barzilay
75f710dc62 Some styling. 2012-07-06 16:07:30 -04:00
Matthew Flatt
2b9f57b01d scribble/*-properties: allow literal bytes in *-additions
For example, a `tex-addition' structure can have literal bytes
to include in the generated Latex, instead of a path to a file that
holds the content.
2012-07-06 13:17:35 -06:00
Danny Yoo
0a5e92c299 Correcting type error in latex-match: target-url-addr can be a path, which can't be consumed by regexp-replace 2012-07-06 12:03:47 -04:00
Matthew Flatt
e8d9d4e9ca improve error handling for `defproc'
Closes PR 12780
2012-07-02 10:07:52 -06:00
Matthew Flatt
b5189c8232 scribble: adjust `subsubsub*section' font size
Closes PR 12868
2012-07-02 09:00:08 -06:00
Matthew Flatt
814c974d01 scribble Latex: add \SNumberOfAuthors{} in output 2012-07-01 10:00:58 -06:00
Matthew Flatt
612c4ff524 scribble HTML render: avoid intermediate XML structure
As pointed out by Danny Yoo to save time during the rendering phase
2012-06-28 09:15:57 -06:00
Matthew Flatt
130618e946 tweaks to Danny's Scribble changes 2012-06-28 08:57:58 -06:00
Danny Yoo
d926f89cbe Correcting content->string so that it does not concatenate strings in quadratic time 2012-06-28 08:39:14 -06:00
Danny Yoo
2f4671235c Changing decode-string so it avoids allocation and interns the individual string components. 2012-06-28 08:39:03 -06:00
Matthew Flatt
5f3f3e8c54 scribble/eval: remove bogus top-level `namespace-require' 2012-06-27 12:28:17 -06:00