Skip to content

Commit

Permalink
Update documentation (Issue #5252)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Feb 20, 2018
1 parent 19186c8 commit 699fe02
Show file tree
Hide file tree
Showing 12 changed files with 1,096 additions and 414 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -8,6 +8,7 @@ Changes in CUPS v2.3rc1
- Star Micronics printers need the "unidir" USB quirk rule (Issue #5251)
- The scheduler now supports using temporary print queues for older IPP/1.1
print queues like those shared by CUPS 1.3 and earlier (Issue #5241)
- Documentation fixes (Issue #5252)


Changes in CUPS v2.3b3
Expand Down
4 changes: 2 additions & 2 deletions cups/dest.c
Expand Up @@ -564,7 +564,7 @@ _cupsAppleSetUseLastPrinter(


/*
* 'cupsConnectDest()' - Open a conection to the destination.
* 'cupsConnectDest()' - Open a connection to the destination.
*
* Connect to the destination, returning a new @code http_t@ connection object
* and optionally the resource path to use for the destination. These calls
Expand All @@ -573,7 +573,7 @@ _cupsAppleSetUseLastPrinter(
* returns 0. The caller is responsible for calling @link httpClose@ on the
* returned connection.
*
* Starting with CUPS 2.2.4, the caller can pass @code CUPS_DEST_FLAGS_DEVICE@
* Starting with CUPS 2.2.4, the caller can pass @code CUPS_DEST_FLAGS_DEVICE@
* for the "flags" argument to connect directly to the device associated with
* the destination. Otherwise, the connection is made to the CUPS scheduler
* associated with the destination.
Expand Down
187 changes: 136 additions & 51 deletions doc/help/api-admin.html
Expand Up @@ -27,9 +27,19 @@
font-family: monaco, courier, monospace;
}

PRE.command {
border: dotted thin #7f7f7f;
margin-left: 36pt;
BLOCKQUOTE {
border-left: solid 2px #777;
margin: 1em 0;
padding: 10px;
}

BLOCKQUOTE OL LI {
margin-left: -1em;
}

PRE.command, PRE.example {
background: #eee;
margin: 0 36pt;
padding: 10px;
}

Expand All @@ -54,13 +64,6 @@
margin: 0;
}

PRE.example {
background: #eeeeee;
border: dotted thin #999999;
margin-left: 36pt;
padding: 10pt;
}

PRE.command EM, PRE.example EM {
font-family: lucida grande, geneva, helvetica, arial, sans-serif;
}
Expand All @@ -75,12 +78,6 @@
margin-left: 36pt;
}

BLOCKQUOTE {
background: #eeeeee;
border: solid thin #999999;
padding: 10pt;
}

A IMG {
border: none;
}
Expand Down Expand Up @@ -136,7 +133,7 @@

DIV.table TABLE TD {
border: solid thin #cccccc;
padding-top: 5pt;
padding: 5pt 10pt 0;
}

DIV.table TABLE TH {
Expand Down Expand Up @@ -284,26 +281,120 @@

/* API documentation styles... */
div.body h1 {
font-size: 250%;
font-weight: bold;
margin: 0;
}
div.body h2 {
font-size: 250%;
margin-top: 1.5em;
}
div.body h3, div.body h4, div.body h5 {
div.body h3 {
font-size: 150%;
margin-bottom: 0.5em;
margin-top: 1.5em;
}
.class, .enumeration, .function, .struct, .typedef, .union {
border-bottom: solid thin #999999;
margin-bottom: 0;
margin-top: 2em;
div.body h4 {
font-size: 110%;
margin-bottom: 0.5em;
margin-top: 1.5em;
}
div.body h5 {
font-size: 100%;
margin-bottom: 0.5em;
margin-top: 1.5em;
}
div.contents {
background: #e8e8e8;
border: solid thin black;
padding: 10px;
}
div.contents h1 {
font-size: 110%;
}
div.contents h2 {
font-size: 100%;
}
div.contents ul.contents {
font-size: 80%;
}
.class {
border-bottom: solid 2px gray;
}
.constants {
}
.description {
margin-top: 0.5em;
}
code, p.code, pre, ul.code li {
font-family: monaco, courier, monospace;
.discussion {
}
.enumeration {
border-bottom: solid 2px gray;
}
.function {
border-bottom: solid 2px gray;
margin-bottom: 0;
}
.members {
}
.method {
}
.parameters {
}
.returnvalue {
}
.struct {
border-bottom: solid 2px gray;
}
.typedef {
border-bottom: solid 2px gray;
}
.union {
border-bottom: solid 2px gray;
}
.variable {
}
h1, h2, h3, h4, h5, h6 {
page-break-inside: avoid;
}
blockquote {
border: solid thin gray;
box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
padding: 0px 10px;
page-break-inside: avoid;
}
p code, li code, p.code, pre, ul.code li {
background: rgba(127,127,127,0.1);
border: thin dotted gray;
font-family: monospace;
font-size: 90%;
hyphens: manual;
-webkit-hyphens: manual;
page-break-inside: avoid;
}
p.code, pre, ul.code li {
padding: 10px;
}
p code, li code {
padding: 2px 5px;
}
a:link, a:visited {
text-decoration: none;
}
span.info {
background: black;
border: solid thin black;
color: white;
font-size: 80%;
font-style: italic;
font-weight: bold;
white-space: nowrap;
}
h3 span.info, h4 span.info {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
float: right;
padding: 3px 6px;
}
ul.code, ul.contents, ul.subcontents {
list-style-type: none;
Expand All @@ -319,37 +410,31 @@
ul.contents li ul.code, ul.contents li ul.subcontents {
padding-left: 2em;
}
div.body dl {
margin-left: 0;
margin-top: 0;
}
div.body dt {
font-style: italic;
margin-left: 0;
margin-top: 0;
}
div.body dd {
margin-bottom: 0.5em;
}

/* This is just for the HTML files generated with the framedhelp target */
div.contents {
background: #e8e8e8;
border: solid thin black;
padding: 10px;
table.list {
border-collapse: collapse;
width: 100%;
}
table.list tr:nth-child(even) {
background: rgba(127,127,127,0.1);]n}
table.list th {
border-right: 2px solid gray;
font-family: monospace;
padding: 5px 10px 5px 2px;
text-align: right;
vertical-align: top;
}
div.contents h1 {
font-size: 110%;
table.list td {
padding: 5px 2px 5px 10px;
text-align: left;
vertical-align: top;
}
div.contents h2 {
font-size: 100%;
h1.title {
}
div.contents ul.contents {
font-size: 80%;
h2.title {
border-bottom: solid 2px black;
}
div.contents ul.subcontents li {
margin-left: 1em;
text-indent: -1em;
h3.title {
border-bottom: solid 2px black;
}
--></style>
</head>
Expand Down

0 comments on commit 699fe02

Please sign in to comment.