Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
testbed-manual
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emulab
testbed-manual
Commits
87efb81c
Commit
87efb81c
authored
Jun 08, 2014
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for screenshots in @instructionsteps
parent
f97c8904
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
defs.rkt
defs.rkt
+24
-3
getting-started.scrbl
getting-started.scrbl
+11
-1
screenshots/instantiate-empty.png
screenshots/instantiate-empty.png
+0
-0
No files found.
defs.rkt
View file @
87efb81c
#
lang
racket/base
(
require
scribble/base
)
(
require
scribble/decode
)
(
require
racket/class
)
(
require
racket/draw
)
(
provide
(
all-defined-out
))
(
define
(
apturl
page
)
(
string-append
"https://www.aptlab.net/"
page
))
(
define
apt-base-url
"https://www.aptlab.net/"
)
(
define
screenshot-width
650
)
(
define
apturl
(
case-lambda
[()
apt-base-url
]
[(
page
)
(
string-append
apt-base-url
page
)]))
(
define
(
TODO
.
what
)
(
bold
"TODO: "
what
))
(
bold
"TODO: "
(
decode-content
what
)
))
(
define
nodetype
(
lambda
(
typename
howmany
.
properties
)
...
...
@@ -16,3 +25,15 @@
(
list
(
bold
typename
)
(
string-append
(
number->string
howmany
)
" nodes"
))
properties
))))
(
define
(
instructionstep
step
#:screenshot
[
screenshot
#f
]
.
body
)
(
item
(
bold
(
decode-content
(
list
step
)))
(
linebreak
)
(
if
screenshot
(
let*
([
path
(
string-append
"screenshots/"
screenshot
)]
[
b
(
make-object
bitmap%
path
)]
[
width
(
send
b
get-width
)]
[
scale-factor
(
/
screenshot-width
width
)])
(
list
(
image
#:scale
scale-factor
path
screenshot
)
(
linebreak
)))
(
void
))
(
decode-content
body
)))
getting-started.scrbl
View file @
87efb81c
...
...
@@ -4,4 +4,14 @@
@title
[
#:tag
"getting-started"
]{
Getting
Started
}
@TODO
{
This
Section
To
Be
Written!
}
This
chapter
will
walk
you
through
running
a
simple
experiment
on
Apt
and
introduce
you
to
some
of
its
basic
concepts
.
Start
by
pointing
your
browser
to
@url
[(
apturl
)]
.
@itemlist
[
#:style
'ordered
@instructionstep
[
"Enter
your
email
address
and
pick
a
username"
#:screenshot
"instantiate-empty.png"
]{
Do
things
}
]
screenshots/instantiate-empty.png
0 → 100644
View file @
87efb81c
338 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment