Commit Graph

1566 Commits

Author SHA1 Message Date
Matthew Flatt
9650c4767b 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.

original commit: 2b9f57b01d55a39a70f0d0df22bc97b1874727ea
2012-07-06 13:17:35 -06:00
Danny Yoo
e48b814b17 Correcting type error in latex-match: target-url-addr can be a path, which can't be consumed by regexp-replace
original commit: 0a5e92c299c7f2edd8540d1d127f5c887ce750c7
2012-07-06 12:03:47 -04:00
Asumu Takikawa
793a83e339 Fix doc typos
original commit: 9f83ba1c6f450790d99f734779c07a775aefb104
2012-07-03 15:54:25 -04:00
Matthew Flatt
54e7b17c5e improve error handling for `defproc'
Closes PR 12780

original commit: e8d9d4e9ca5149398ead0a3a664405d8aa7a5b70
2012-07-02 10:07:52 -06:00
Matthew Flatt
d7bf77fba7 doc correction
Closes PR 12844

original commit: 4ed8a889695c59bfa9deba3fdce616d49e125938
2012-07-02 09:08:05 -06:00
Matthew Flatt
0190c2702d scribble: adjust `subsubsub*section' font size
Closes PR 12868

original commit: b5189c823216fda8ea68b7254a2a4df5cc4ee5f3
2012-07-02 09:00:08 -06:00
Matthew Flatt
3d84458aa7 scribble Latex: add \SNumberOfAuthors{} in output
original commit: 814c974d015b647e8482a46720f0728d3b318175
2012-07-01 10:00:58 -06:00
Matthew Flatt
607f02a331 scribble HTML render: avoid intermediate XML structure
As pointed out by Danny Yoo to save time during the rendering phase

original commit: 612c4ff5240594b8d884ce2d68701cd40ba50fc1
2012-06-28 09:15:57 -06:00
Matthew Flatt
2c7e58dd70 tweaks to Danny's Scribble changes
original commit: 130618e946640d749a81312fa951acd43ec1c66a
2012-06-28 08:57:58 -06:00
Danny Yoo
31c6e16944 Correcting content->string so that it does not concatenate strings in quadratic time
original commit: d926f89cbe316f9c5e481841a80f905a9da3228c
2012-06-28 08:39:14 -06:00
Danny Yoo
db64a47dd7 Changing decode-string so it avoids allocation and interns the individual string components.
original commit: 2f4671235c322f3450b0633cd866f18b95f58f13
2012-06-28 08:39:03 -06:00
Matthew Flatt
1efd01584e scribble/eval: remove bogus top-level `namespace-require'
original commit: 5f3f3e8c54f843338feb7a5fdf76eed0240f1aa9
2012-06-27 12:28:17 -06:00
Matthew Flatt
937d4f0e59 scribble/manual: add #:id' option to defproc'
Also, convert the implementation of `defproc', `defform', etc. to
use `syntax-parse'.

original commit: 6028a60f6588f11dfe1b466df24513256e1b84c4
2012-06-25 23:16:33 -06:00
Robby Findler
378f9c3bae adjust defproc* so that it only shows the white background label once, instead
of once per different identifier that it is documenting

original commit: 3afba2d833bbe2349621f4851f4f41569007ed53
2012-06-25 13:42:09 -05:00
Matthew Flatt
0ca77cb9f5 CSS tweak for whute label on blue boxes
This tweak avoids adding extra space when the white-label font is
taller than the line it's attached to. It also makes the label
disappear in IE 6, but I think we can live with that.

original commit: c2924ef926c3ed62e61e5deff72f15f3065bb0ab
2012-06-25 09:02:51 -06:00
Matthew Flatt
c836acca01 fix some error-message tests
original commit: 5433d2302a5c7a6aa588d3aa107bd72e19359862
2012-06-23 05:21:52 -07:00
Robby Findler
6137f803b2 strengthen contract on blockss field of table struct in scribble
original commit: f7185bec91d04a28289887947c5a394fd94914fe
2012-06-22 22:12:54 -05:00
Eli Barzilay
e4b6652f27 Random pickiness.
Spaces at EOFs, indentation, etc.

original commit: 7d6e79023cf9872e6f6af2f89961b742c6296f1d
2012-06-22 12:00:48 -04:00
Matthew Flatt
381505ade5 update docs related to definition-box labels
original commit: 303aaec2b45ff2e42b2353820572dc93c275d8a3
2012-06-21 07:15:09 +08:00
Robby Findler
ed8baf5d79 a bunch of fixes to the diagram:
- added some color (mostly to try to disambiguate the lines)

- several of the things named '*-element' actually belong under content, not element.

- element has 'content', not the substructs.

- convertible?s are content's.

- the 'content' field in an element is not a list, but simply a content.

- there are a bunch of things under target-element.

- image-element was missing fields

- collect-element was missing the collect field

original commit: 411aeb99b845823aa5f9bcaebe6b686ad478ab75
2012-06-20 08:22:58 -05:00
Robby Findler
87197b53ca remove uppercasing of the tag names
original commit: c13a88915a226d4cb67c19c1386841d2e549344b
2012-06-20 08:22:58 -05:00
Robby Findler
2fed399324 make scribble's part/document/element/etc structs all be #:transparent
original commit: 4d7f6d79353fc818d847de6bd99c224c50005689
2012-06-20 08:22:58 -05:00
Robby Findler
c77b67ea80 Fixed up and added in the struct hierarchy diagram from the Scribble paper
original commit: ac8a4f23e5df50d1e7cc579fd8cbcd6606b8dc6d
2012-06-18 11:26:27 -05:00
Matthew Flatt
4fc0b01398 scribble: adjust `def...' box to show a background label in HTML
For example, a syntactic form box is labeled with "SYNTAX". Forms
such as `defform' and `defthing' now support a `#:kind' option
for setting the label.

original commit: 5ff3087677ec98ea626cca25b085f3c32138d5ca
2012-06-17 09:19:58 +08:00
Matthew Flatt
f1aa676101 misc changes to speed up doc search generation
Cuts about 30% of the time on my machine.

original commit: 815fd1b49c7b7857aa08fd15c5ec77655ac84859
2012-06-08 16:08:55 +08:00
Matthew Flatt
3ac30a1f35 scribble: fix duplicate call to `render-element' callback
This change should cut the time to generate the search index
roughly in half.

original commit: 00e1ed9369d8401ef349f9c9fb9475d30ab2cda1
2012-06-08 16:08:55 +08:00
Matthew Flatt
8f6b31924c clarifications and additions to style guide
original commit: c5f821b6415a4ad0f073b66b9bbf6455d801ff01
2012-06-03 04:50:06 +08:00
Jay McCarthy
e690d99f57 Fixing PR12779
original commit: 8b035f3c736d92c5e8ae896b3044eb2e32f44c8a
2012-05-28 11:52:56 -06:00
Matthew Flatt
b5f09c0d39 more error-message conversions and repairs
original commit: a137459b65b54d65595e854101aae7440d9e65f6
2012-05-27 11:29:21 -06:00
Matthew Flatt
625ee5db99 fix misc tests for error-message change
original commit: b5ab6cec7e3038cfd917af16e082c8bc98384807
2012-05-26 08:18:19 -06:00
Matthew Flatt
45e9a0fd33 scribble/eval: fix error line wrapping
The `wrap-line' function from `scribble/text/wrap' wants a
string that's a single line, so break the initial string
based on explicit lines, first.

original commit: 9b7ef7bf699c7997ad2c254827ca6528491a6f10
2012-05-25 12:47:39 -06:00
Asumu Takikawa
aaad158068 Fix doc breakage.
`abstract` from racket/class conflicted with `abstract`
in scribble paper modules.

original commit: 94545a7cd7c108688c2299bb5f0e0f2e0a63c025
2012-05-22 19:55:44 -04:00
Matthew Flatt
e1f816952c fix Scribble module languages to allow submodules
That is, recognize `module' and `module*' as top-level forms.

original commit: ec85dd913d75250e5be244bc07789604dfe5fd34
2012-05-20 07:39:05 -06:00
Matthew Flatt
2cdcf15d24 fixes for `scribble/srcdoc'
Use the new `relative-in' form to make imports
resolve correctly when they are shifted among modules.

original commit: 0c95475f4ffbc343291e5529a6f4b32a91159ef1
2012-05-15 20:03:41 -06:00
Matthew Flatt
24acfab0ad implement scribble/srcdoc' via submodules instead of expand'
Also add a `for-doc' require form, make `proc-doc' et al. provide
forms, make `provide/doc' an alias for `provide'.

original commit: 964020f288a73340052b471327bfe873d804eea8
2012-05-12 01:37:50 -06:00
Jay McCarthy
757b462154 Better error messages, plus fix for the tag syntax
original commit: 93d8e89b66a3e1f659a6c4e59a6d8086debe0d0a
2012-05-11 20:13:29 -06:00
Jay McCarthy
ec73f42c1b scribble/lp on racket/base vs scheme/base
original commit: f675514a2b47fdf3cb1b1c9447c96bea468a401c
2012-05-10 10:36:29 -06:00
Matthew Flatt
681837dc32 scribble/eval: add eval:result' and eval:results'
original commit: 2d027e7ee5885b8c70e720db968f348df7fa2949
2012-05-09 19:11:21 -06:00
Eli Barzilay
bad524ff54 Do the xref test only if "doc/reference/out.sxref" exists/
(Since the nightly build includes the documentation only on the main
machine.)

original commit: a4381dd1f62f701227ead8efa6be15d5b950dc7d
2012-05-07 09:12:00 -04:00
Eli Barzilay
36eea932a8 A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
2012-05-06 12:06:00 -04:00
Eli Barzilay
dcb28604ca Use the new `wrap-line' in the scribble text renderer.
Looks like it's not making any changes in the current tests (which use
the text renderer), but with words that are longer than the width the
old version would stop wrapping afetr these words.  Added a test file
that fails with that and succeeds with the new one.  If anyone cares
about this, it's easy to make hyphenate words that are too long for a
line.

(Also fixed some redundant frustration in the bib test...)

original commit: 084f1dcea7707adc83d180f79e6c68149dc03644
2012-05-06 08:17:36 -04:00
Eli Barzilay
6bec5dbd28 Some racketization (and outdent).
original commit: 34ec39119442c4202e3779a929b8406aee58e524
2012-05-06 06:29:18 -04:00
Eli Barzilay
c3d02f1416 Use the new wrap-line' in scribble/eval'.
This might have output that is a little better in cases where the
wrapped string is longer than `maxlen', for example, with an input of:

  "    x xxxxxxxxxxxxxxxx..."

and wrapping at 10 characters, the output was

  "    x\nxxxxxxxxxx\nxxxxxx..."

and now it's

  "    x xxxx\nxxxxxxxxxx\nxx..."

original commit: efda1706d87045cbe2882c9c4b77b34a72e3594b
2012-05-06 06:15:04 -04:00
Eli Barzilay
63427f262e Streamline all scribble tests.
original commit: 36394500e552b1f00fca97b2e99fc674cd3a5857
2012-05-06 05:53:19 -04:00
Eli Barzilay
283bcc6ff5 New wrap-line' function in a new scribble/text/wrap' module.
This should probably become documented if it's stable enough.  For now
it's intended for building wrapping functions, so it's only documented
in comments the file.

original commit: 89b9ad0dde5298516934f4df016c27b60e10f86d
2012-05-06 05:38:04 -04:00
Robby Findler
95575d09b0 fix proc-doc/names documentation
closes PR 12739

original commit: f2816e72b4a106399ea075988d337c6ab0f38076
2012-05-03 11:36:09 -05:00
Asumu Takikawa
c89374a441 Add an example to scriblib/autobib docs.
original commit: 420b66ca4e4ab0a06ba4b620f8ce729c4a5dd083
2012-05-02 22:39:06 -04:00
Matthew Flatt
bca4c000ba racket/sandbox: change syntax-object wrappers generated for locations
Generate wrappers consistent with a reader-level absence of `.'s,
instead of wrapping every pair. This change fixes the `syntax-e'
example in the Guide's description of syntax objects.

original commit: 54a6ba8d363f441d0bf3d4b15df0170215b84b8e
2012-05-01 16:48:15 -06:00
Matthew Flatt
548627c404 scribble/eval: change string or byte-string expression handling
Use `datum->syntax' instead of `begin' to protect the string or byte
string. Danny Yoo suggested this change.

original commit: 23296615ec7cddb34257486b62094048b085ff6e
2012-05-01 16:48:15 -06:00
Matthew Flatt
2c0f9c9480 scribble: for Latex, pick tt encoding of <, >, and | explicitly
original commit: 393a1f441ac1cab46000c72ea0901c3adac163e2
2012-04-29 11:23:37 -06:00