-
-
Notifications
You must be signed in to change notification settings - Fork 98
Refactor blueboxes name to signature-box #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
nloadholtes
wants to merge
3
commits into
racket:master
Choose a base branch
from
nloadholtes:nloadholtes/signature-box
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#lang scribble/doc | ||
@(require scribble/manual "utils.rkt" | ||
(for-label scribble/core | ||
scribble/signature-box | ||
racket/contract | ||
setup/xref)) | ||
|
||
@title[#:tag "signature-box"]{Blue Boxes Utilities} | ||
|
||
@defmodule[scribble/signature-box]{ | ||
The @racketmodname[scribble/signature-box] provides access | ||
to the content of the ``blue boxes'' that describe | ||
some module's export (but without any styling).} | ||
|
||
@defproc[(fetch-signature-box-strs [tag tag?] | ||
[#:signature-box-cache signature-box-cache | ||
signature-box-cache? | ||
(make-signature-box-cache #t)]) | ||
(or/c #f (non-empty-listof string?))]{ | ||
Returns a list of strings that show the content of the blue box | ||
(without any styling information) for the documentation referenced | ||
by @racket[tag]. | ||
|
||
The first string in the list describes the export (e.g. @racket["procedure"] | ||
when @racket[defproc] is used, or @racket["syntax"] when @racket[defform] | ||
was used to document the export). | ||
} | ||
|
||
@defproc[(fetch-signature-box-method-tags [method-name symbol?] | ||
[#:signature-box-cache signature-box-cache | ||
signature-box-cache? | ||
(make-signature-box-cache #t)]) | ||
(listof method-tag?)]{ | ||
Returns the list of tags for all methods that are documented in the documentation | ||
in @racket[signature-box-cache]. | ||
|
||
@history[#:added "1.11"] | ||
} | ||
|
||
@defproc[(make-signature-box-cache | ||
[populate? boolean?] | ||
[#:signature-box-dirs signature-box-dirs (listof path?) (get-doc-search-dirs)]) | ||
signature-box-cache?]{ | ||
Constructs a new (mutable) signature-box cache. | ||
|
||
If @racket[populate?] is @racket[#f], the cache is initially | ||
unpopulated, in which case it is filled in the first time the cache | ||
is passed to @racket[fetch-bluebxoes-strs]. Otherwise, the cache is | ||
populated immediately. | ||
|
||
The @racket[signature-box-dirs] argument is a list of directories that are | ||
looked inside for @filepath{signature-box.rktd} files. The default value | ||
is only an approximation for where those files usually reside. See | ||
also @racket[get-rendered-doc-directories]. | ||
} | ||
|
||
@defproc[(signature-box-cache? [v any/c]) boolean?]{ | ||
Determines if @racket[v] is a signature-box cache. | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ble-lib/scribble/valid-blueboxes-info.rkt → ...lib/scribble/valid-signature-box-info.rkt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.