slides/modules/help.html

202 lines
8.8 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<title>Help</title>
<meta name="description" content="How to get help">
<meta name="author" content="The DataLad Team">
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<!-- Original reveal JS stylesheets-->
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
<!-- custom styles, e.g., imgcredit -->
<link rel="stylesheet" href="../custom/css/main.css" id="theme">
<script src="../custom/js/printpdf.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section>
<h1>Help!<br><small>A short guide</small></h1>
</section>
<section data-markdown><script type="text/template">
<h2> Terminal survival guide</h2><!-- .element: style="margin-top:0px" -->
<table width="100%" style="line-height:1.0;padding:0px">
<tr><th>Everywhere</th><th>But on Windows <code >cmd.exe</code></th></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Which directory am I in?</td></tr>
<tr><td style="padding:0px"><pre><code>pwd</code></pre></td><td style="padding:0px"><pre><code>cd</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Show (sub)directory tree structure</td></tr>
<tr><td style="padding:0px"><pre><code>tree</code></pre></td><td style="padding:0px"><pre><code>tree</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Change into a directory; parent directory</td></tr>
<tr><td style="padding:0px"><pre><code>cd PATH; cd ..</code></pre></td><td style="padding:0px"><pre><code>cd PATH; cd ..</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Go back into the HOME directory</td></tr>
<tr><td style="padding:0px"><pre><code>cd</code></pre></td><td style="padding:0px"><pre><code>cd %userprofile%</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">List the content of a directory</td></tr>
<tr><td style="padding:0px"><pre><code>ls [PATH]</code></pre></td><td style="padding:0px"><pre><code>dir [PATH]</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Show the content of a file</td></tr>
<tr><td style="padding:0px"><pre><code>cat PATH</code></pre></td><td style="padding:0px"><pre><code>type PATH</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Print something to the terminal</td></tr>
<tr><td style="padding:0px"><pre><code>echo "some text"</code></pre></td><td style="padding:0px"><pre><code>echo some text</code></pre></td></tr>
<tr><td colspan=2 style="text-align:left;font-size:70%">Write something to a file</td></tr>
<tr><td style="padding:0px"><pre><code>echo "some text" &gt; PATH</code></pre></td><td style="padding:0px"><pre><code>echo some text &gt; PATH</code></pre></td></tr>
</table>
</script></section>
<section data-transition="None" style="text-align:left">
<h2>Help is at your fingertips</h2>
Overview of the main <code>datalad</code> command, available subcommands:
<pre><code class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">$ datalad --help</code></pre>
<pre><code>Usage: datalad [global-opts] command [command-opts]
Comprehensive data management solution
DataLad provides a unified data distribution system built on the Git
and Git-annex. DataLad command line tools allow to manipulate (obtain,
create, update, publish, etc.) datasets and provide a comprehensive
toolbox for joint management of data and code. [...]</code></pre>
</section>
<section data-transition="None" style="text-align:left">
<h2>Help is at your fingertips</h2>
Get comprehensive help (on a subcommand):
<pre><code class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">$ datalad create --help</code></pre>
<pre><code>Usage: datalad create [-h] [-f] [-D DESCRIPTION] [-d DATASET] [--no-annex]
[--fake-dates] [-c PROC] [--version]
[PATH] ...
Create a new dataset from scratch.
This command initializes a new dataset at a given location, or the
current directory. [...] </code></pre>
</section>
<section data-transition="None" style="text-align:left">
<h2>Help is at your fingertips</h2>
Get a short overview (on a subcommand):
<pre><code class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">$ datalad create -h</code></pre>
<pre><code>Usage: datalad create [-h] [-f] [-D DESCRIPTION] [-d DATASET] [--no-annex]
[--fake-dates] [-c PROC] [--version]
[PATH] ...
Use '--help' to get more comprehensive information.</code></pre>
</section>
<section >
<h2>Online Documentation</h2>
DataLad core library: <br>
<a href="http://docs.datalad.org/en/stable/">docs.datalad.org</a><br><br>
Extension documentation:<br>
<a href="http://docs.datalad.org/projects/next/" target="_blank">docs.datalad.org/projects/[EXTENSION-NAME]</a>
</section>
<section style="text-align: left;">
<h3>Using datalad via its Python API</h3>
Open a Python environment:
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
ipython</code></pre>
Import and start using:
<pre style="margin-left: 0;"><code data-trim class="language-python" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
import datalad.api as dl
dl.create(path='mydataset')
</code></pre>
Exit the Python environment:
<pre style="margin-left: 0;"><code data-trim class="language-python" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">
exit
</code></pre>
</section>
<section id="contact">
<h2>DataLad contact and more information</h2>
<table>
<tr><td>Website</td>
<td><a href="https://datalad.org" target="_blank">http://datalad.org</a> </td>
</tr><tr><td>Project Overview</td>
<td><a href="https://project.datalad.org" target="_blank">https://project.datalad.org</a></td>
</tr><tr><td>Handbook</td>
<td><a href="https://handbook.datalad.org" target="_blank">http://handbook.datalad.org</a></td>
</tr><tr><td>Talks and tutorials</td>
<td><a href="https://youtube.com/datalad" target="_blank">https://youtube.com/datalad</a></td>
</tr><tr><td>Development</td>
<td><a href="https://github.com/datalad" target="_blank">http://github.com/datalad</a></td>
</tr><tr><td>Support</td>
<td><a href="https://matrix.to/#/#datalad:matrix.org" target="_blank">https://matrix.to/#/#datalad:matrix.org</a></td>
</tr><tr><td>Open data</td>
<td><a href="https://datasets.datalad.org" target="_blank">http://datasets.datalad.org</a></td>
</tr>
</tr><tr><td>Mastodon</td>
<td><a href="https://fosstodon.org/@datalad" target="_blank">@datalad@fosstodon.org</a></td>
</tr>
</table>
</section>
</section>
</div> <!-- /.slides -->
</div> <!-- /.reveal -->
<script src="../reveal.js/dist/reveal.js"></script>
<script src="../reveal.js/plugin/notes/notes.js"></script>
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
<script src="../custom/js/copy-code.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 1280,
height: 960,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.0,
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
</script>
<!-- A footer with a "1" and "home" button to get back to the first slide and the index page
<div id="hidden" style="display:none;">
<div id="header">
<div id="footer-left"><a href="#0">1️⃣</a></div>
<div id="footer-right"><a href="../index.html">🏠</a></div>
</div>
</div> -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="../custom/js/headerandfooter.js"></script>
</body>
</html>