move contracts section of guide into its own subdirectory
This commit is contained in:
parent
84de4fd8e3
commit
56f9fdc8f3
|
@ -34,11 +34,11 @@ update string-pad-center to show examples via REPL notation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@include-section["contracts-intro.scrbl"]
|
@include-section["contracts/intro.scrbl"]
|
||||||
@include-section["contracts-simple-function.scrbl"]
|
@include-section["contracts/simple-function.scrbl"]
|
||||||
@include-section["contracts-general-function.scrbl"]
|
@include-section["contracts/general-function.scrbl"]
|
||||||
@include-section["contracts-first-extended-example.scrbl"]
|
@include-section["contracts/first-extended-example.scrbl"]
|
||||||
@include-section["contracts-structure.scrbl"]
|
@include-section["contracts/structure.scrbl"]
|
||||||
@include-section["contracts-exists.scrbl"]
|
@include-section["contracts/exists.scrbl"]
|
||||||
@include-section["contracts-examples.scrbl"]
|
@include-section["contracts/examples.scrbl"]
|
||||||
@include-section["contracts-gotchas.scrbl"]
|
@include-section["contracts/gotchas.scrbl"]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval "guide-utils.rkt" "contracts-utils.rkt"
|
@(require scribble/manual scribble/eval "utils.rkt"
|
||||||
(for-label racket/contract racket/gui))
|
(for-label racket/contract racket/gui))
|
||||||
|
|
||||||
@title[#:tag "contracts-examples"]{Additional Examples}
|
@title[#:tag "contracts-examples"]{Additional Examples}
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval "guide-utils.rkt" "contracts-utils.rkt"
|
@(require scribble/manual scribble/eval "utils.rkt"
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
||||||
@title[#:tag "contracts-exists"]{Abstract Contracts using @racket[#:exists] and @racket[#:∃]}
|
@title[#:tag "contracts-exists"]{Abstract Contracts using @racket[#:exists] and @racket[#:∃]}
|
|
@ -1,7 +1,7 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
|
|
||||||
@(require scribble/manual scribble/core scribble/eval
|
@(require scribble/manual scribble/core scribble/eval
|
||||||
"guide-utils.rkt" "contracts-utils.rkt"
|
"utils.rkt"
|
||||||
(only-in racket/list argmax)
|
(only-in racket/list argmax)
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval "guide-utils.rkt" "contracts-utils.rkt"
|
@(require scribble/manual scribble/eval "utils.rkt"
|
||||||
(for-label framework/framework racket/contract racket/gui))
|
(for-label framework/framework racket/contract racket/gui))
|
||||||
|
|
||||||
@title[#:tag "contracts-general-functions"]{Contracts on Functions in General}
|
@title[#:tag "contracts-general-functions"]{Contracts on Functions in General}
|
|
@ -1,6 +1,6 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval racket/sandbox
|
@(require scribble/manual scribble/eval racket/sandbox
|
||||||
"guide-utils.rkt" "contracts-utils.rkt"
|
"utils.rkt"
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
||||||
@title[#:tag "contracts-gotchas"]{Gotchas}
|
@title[#:tag "contracts-gotchas"]{Gotchas}
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval "guide-utils.rkt" "contracts-utils.rkt"
|
@(require scribble/manual scribble/eval "utils.rkt"
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
||||||
@title[#:tag "contract-boundaries"]{Contracts and Boundaries}
|
@title[#:tag "contract-boundaries"]{Contracts and Boundaries}
|
|
@ -2,7 +2,7 @@
|
||||||
@(require scribble/manual scribble/eval
|
@(require scribble/manual scribble/eval
|
||||||
scribble/core racket/list
|
scribble/core racket/list
|
||||||
scribble/racket
|
scribble/racket
|
||||||
"guide-utils.rkt" "contracts-utils.rkt"
|
"../guide-utils.rkt" "utils.rkt"
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
||||||
@title[#:tag "contract-func"]{Simple Contracts on Functions}
|
@title[#:tag "contract-func"]{Simple Contracts on Functions}
|
|
@ -1,5 +1,5 @@
|
||||||
#lang scribble/doc
|
#lang scribble/doc
|
||||||
@(require scribble/manual scribble/eval "guide-utils.rkt" "contracts-utils.rkt"
|
@(require scribble/manual scribble/eval "../guide-utils.rkt" "utils.rkt"
|
||||||
(for-label racket/contract))
|
(for-label racket/contract))
|
||||||
|
|
||||||
@title[#:tag "contracts-struct"]{Contracts on Structures}
|
@title[#:tag "contracts-struct"]{Contracts on Structures}
|
|
@ -54,7 +54,7 @@
|
||||||
(define-syntax (external-file stx)
|
(define-syntax (external-file stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
[(_ filename)
|
[(_ filename)
|
||||||
#`(include/reader #,(format "contracts-examples/~a.rkt" (syntax-e #'filename))
|
#`(include/reader #,(format "examples/~a.rkt" (syntax-e #'filename))
|
||||||
comment-racketmod-reader)]))
|
comment-racketmod-reader)]))
|
||||||
|
|
||||||
(define contract-eval (make-base-eval))
|
(define contract-eval (make-base-eval))
|
Loading…
Reference in New Issue
Block a user