Skip to content

Commit 6fb49da

Browse files
authored
Merge pull request #194 from singularityhub/update/docs-spelling
adding spell checker and updating docs to have current api
2 parents 5fa39e6 + 605be97 commit 6fb49da

File tree

129 files changed

+4677
-14899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+4677
-14899
lines changed

.docs/requirements.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sphinx
2+
sphinxcontrib-napoleon
3+
sphinx-argparse
4+
sphinx_rtd_theme
5+
docutils==0.12
6+
recommonmark
7+
configargparse
8+
appdirs

.github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16+
- name: Check Spelling
17+
uses: crate-ci/typos@592b36d23c62cb378f6097a292bc902ee73f93ef # version 1.0.4
18+
with:
19+
files: ./spython ./.docs ./README.md
20+
1621
- name: Setup black linter
1722
run: conda create --quiet --name black pyflakes
1823

docs/api/_sources/changelog.md.txt

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ The client here will eventually be released as "spython" (and eventually to
1717
singularity on pypi), and the versions here will coincide with these releases.
1818

1919
## [master](https://github.com/singularityhub/singularity-cli/tree/master)
20+
- version checks removed to support Singularity 3.x and above (0.2.0)
21+
- adding support for SIF (oras pull) (0.1.18)
22+
- updating CI/tests and fixing deprecations (warnings) (0.1.17)
23+
- fixing bug with defining comments earlier (0.1.16)
24+
- ensure options and args from instance init are honored (0.1.15)
25+
- choose output for stream_command (0.1.14)
26+
- adding support to pull from a url (0.1.13)
27+
- add more verbosity to instance start/stop (0.1.12)
28+
- adding more verbosity to running commands (0.1.11)
29+
- log error paths are optional (0.1.1)
2030
- instance list doesn't always include container_image (0.1.0)
2131
- add sudo_options option to Instance.start/stop and Client.execute (0.0.85)
2232
- add environ option to Instance.start and Client.execute for passing env variables

docs/api/assets/basic.css

+82-32
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -130,7 +130,7 @@ ul.search li a {
130130
font-weight: bold;
131131
}
132132

133-
ul.search li div.context {
133+
ul.search li p.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -277,25 +277,25 @@ p.rubric {
277277
font-weight: bold;
278278
}
279279

280-
img.align-left, .figure.align-left, object.align-left {
280+
img.align-left, figure.align-left, .figure.align-left, object.align-left {
281281
clear: left;
282282
float: left;
283283
margin-right: 1em;
284284
}
285285

286-
img.align-right, .figure.align-right, object.align-right {
286+
img.align-right, figure.align-right, .figure.align-right, object.align-right {
287287
clear: right;
288288
float: right;
289289
margin-left: 1em;
290290
}
291291

292-
img.align-center, .figure.align-center, object.align-center {
292+
img.align-center, figure.align-center, .figure.align-center, object.align-center {
293293
display: block;
294294
margin-left: auto;
295295
margin-right: auto;
296296
}
297297

298-
img.align-default, .figure.align-default {
298+
img.align-default, figure.align-default, .figure.align-default {
299299
display: block;
300300
margin-left: auto;
301301
margin-right: auto;
@@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
319319

320320
/* -- sidebars -------------------------------------------------------------- */
321321

322-
div.sidebar {
322+
div.sidebar,
323+
aside.sidebar {
323324
margin: 0 0 0.5em 1em;
324325
border: 1px solid #ddb;
325326
padding: 7px;
@@ -377,12 +378,14 @@ div.body p.centered {
377378
/* -- content of sidebars/topics/admonitions -------------------------------- */
378379

379380
div.sidebar > :last-child,
381+
aside.sidebar > :last-child,
380382
div.topic > :last-child,
381383
div.admonition > :last-child {
382384
margin-bottom: 0;
383385
}
384386

385387
div.sidebar::after,
388+
aside.sidebar::after,
386389
div.topic::after,
387390
div.admonition::after,
388391
blockquote::after {
@@ -455,20 +458,22 @@ td > :last-child {
455458

456459
/* -- figures --------------------------------------------------------------- */
457460

458-
div.figure {
461+
div.figure, figure {
459462
margin: 0.5em;
460463
padding: 0.5em;
461464
}
462465

463-
div.figure p.caption {
466+
div.figure p.caption, figcaption {
464467
padding: 0.3em;
465468
}
466469

467-
div.figure p.caption span.caption-number {
470+
div.figure p.caption span.caption-number,
471+
figcaption span.caption-number {
468472
font-style: italic;
469473
}
470474

471-
div.figure p.caption span.caption-text {
475+
div.figure p.caption span.caption-text,
476+
figcaption span.caption-text {
472477
}
473478

474479
/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +508,63 @@ table.hlist td {
503508
vertical-align: top;
504509
}
505510

511+
/* -- object description styles --------------------------------------------- */
512+
513+
.sig {
514+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
515+
}
516+
517+
.sig-name, code.descname {
518+
background-color: transparent;
519+
font-weight: bold;
520+
}
521+
522+
.sig-name {
523+
font-size: 1.1em;
524+
}
525+
526+
code.descname {
527+
font-size: 1.2em;
528+
}
529+
530+
.sig-prename, code.descclassname {
531+
background-color: transparent;
532+
}
533+
534+
.optional {
535+
font-size: 1.3em;
536+
}
537+
538+
.sig-paren {
539+
font-size: larger;
540+
}
541+
542+
.sig-param.n {
543+
font-style: italic;
544+
}
545+
546+
/* C++ specific styling */
547+
548+
.sig-inline.c-texpr,
549+
.sig-inline.cpp-texpr {
550+
font-family: unset;
551+
}
552+
553+
.sig.c .k, .sig.c .kt,
554+
.sig.cpp .k, .sig.cpp .kt {
555+
color: #0033B3;
556+
}
557+
558+
.sig.c .m,
559+
.sig.cpp .m {
560+
color: #1750EB;
561+
}
562+
563+
.sig.c .s, .sig.c .sc,
564+
.sig.cpp .s, .sig.cpp .sc {
565+
color: #067D17;
566+
}
567+
506568

507569
/* -- other body styles ----------------------------------------------------- */
508570

@@ -629,14 +691,6 @@ dl.glossary dt {
629691
font-size: 1.1em;
630692
}
631693

632-
.optional {
633-
font-size: 1.3em;
634-
}
635-
636-
.sig-paren {
637-
font-size: larger;
638-
}
639-
640694
.versionmodified {
641695
font-style: italic;
642696
}
@@ -677,8 +731,9 @@ dl.glossary dt {
677731

678732
.classifier:before {
679733
font-style: normal;
680-
margin: 0.5em;
734+
margin: 0 0.5em;
681735
content: ":";
736+
display: inline-block;
682737
}
683738

684739
abbr, acronym {
@@ -702,6 +757,7 @@ span.pre {
702757
-ms-hyphens: none;
703758
-webkit-hyphens: none;
704759
hyphens: none;
760+
white-space: nowrap;
705761
}
706762

707763
div[class*="highlight-"] {
@@ -765,8 +821,12 @@ div.code-block-caption code {
765821

766822
table.highlighttable td.linenos,
767823
span.linenos,
768-
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
769-
user-select: none;
824+
div.highlight span.gp { /* gp: Generic.Prompt */
825+
user-select: none;
826+
-webkit-user-select: text; /* Safari fallback only */
827+
-webkit-user-select: none; /* Chrome/Safari */
828+
-moz-user-select: none; /* Firefox */
829+
-ms-user-select: none; /* IE10+ */
770830
}
771831

772832
div.code-block-caption span.caption-number {
@@ -781,16 +841,6 @@ div.literal-block-wrapper {
781841
margin: 1em 0;
782842
}
783843

784-
code.descname {
785-
background-color: transparent;
786-
font-weight: bold;
787-
font-size: 1.2em;
788-
}
789-
790-
code.descclassname {
791-
background-color: transparent;
792-
}
793-
794844
code.xref, a code {
795845
background-color: transparent;
796846
font-weight: bold;

docs/api/assets/css/theme.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/assets/doctools.js

+62-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for all documentation.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -29,9 +29,14 @@ if (!window.console || !console.firebug) {
2929

3030
/**
3131
* small helper function to urldecode strings
32+
*
33+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
3234
*/
3335
jQuery.urldecode = function(x) {
34-
return decodeURIComponent(x).replace(/\+/g, ' ');
36+
if (!x) {
37+
return x
38+
}
39+
return decodeURIComponent(x.replace(/\+/g, ' '));
3540
};
3641

3742
/**
@@ -149,9 +154,7 @@ var Documentation = {
149154
this.fixFirefoxAnchorBug();
150155
this.highlightSearchWords();
151156
this.initIndexTable();
152-
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
153-
this.initOnKeyListeners();
154-
}
157+
this.initOnKeyListeners();
155158
},
156159

157160
/**
@@ -259,6 +262,16 @@ var Documentation = {
259262
hideSearchWords : function() {
260263
$('#searchbox .highlight-link').fadeOut(300);
261264
$('span.highlighted').removeClass('highlighted');
265+
var url = new URL(window.location);
266+
url.searchParams.delete('highlight');
267+
window.history.replaceState({}, '', url);
268+
},
269+
270+
/**
271+
* helper function to focus on search bar
272+
*/
273+
focusSearchBar : function() {
274+
$('input[name=q]').first().focus();
262275
},
263276

264277
/**
@@ -283,25 +296,54 @@ var Documentation = {
283296
},
284297

285298
initOnKeyListeners: function() {
299+
// only install a listener if it is really needed
300+
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
301+
!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
302+
return;
303+
286304
$(document).keydown(function(event) {
287305
var activeElementType = document.activeElement.tagName;
288306
// don't navigate when in search box, textarea, dropdown or button
289307
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290-
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
291-
&& !event.shiftKey) {
292-
switch (event.keyCode) {
293-
case 37: // left
294-
var prevHref = $('link[rel="prev"]').prop('href');
295-
if (prevHref) {
296-
window.location.href = prevHref;
297-
return false;
298-
}
299-
case 39: // right
300-
var nextHref = $('link[rel="next"]').prop('href');
301-
if (nextHref) {
302-
window.location.href = nextHref;
303-
return false;
304-
}
308+
&& activeElementType !== 'BUTTON') {
309+
if (event.altKey || event.ctrlKey || event.metaKey)
310+
return;
311+
312+
if (!event.shiftKey) {
313+
switch (event.key) {
314+
case 'ArrowLeft':
315+
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS)
316+
break;
317+
var prevHref = $('link[rel="prev"]').prop('href');
318+
if (prevHref) {
319+
window.location.href = prevHref;
320+
return false;
321+
}
322+
break;
323+
case 'ArrowRight':
324+
if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS)
325+
break;
326+
var nextHref = $('link[rel="next"]').prop('href');
327+
if (nextHref) {
328+
window.location.href = nextHref;
329+
return false;
330+
}
331+
break;
332+
case 'Escape':
333+
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
334+
break;
335+
Documentation.hideSearchWords();
336+
return false;
337+
}
338+
}
339+
340+
// some keyboard layouts may need Shift to get /
341+
switch (event.key) {
342+
case '/':
343+
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
344+
break;
345+
Documentation.focusSearchBar();
346+
return false;
305347
}
306348
}
307349
});

0 commit comments

Comments
 (0)