Skip to content

Commit bc5a53d

Browse files
committed
Update documentation with more cross references
1 parent 6cdd81b commit bc5a53d

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed

docs/source/config_files.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Below is a list of supported configuration files (roughly in the order of build
2323
:local:
2424
:depth: 1
2525

26-
.. _environment-yml:
26+
.. _environment.yml:
2727

2828
``environment.yml`` - Install a Python environment
2929
==================================================
@@ -50,6 +50,7 @@ Python in the file. ``conda`` supports Python versions 3.6, 3.5, 3.4, and 2.7.
5050
If you include a Python version in a ``runtime.txt`` file in addition to your
5151
``environment.yml``, your ``runtime.txt`` will be ignored.
5252

53+
.. _requirements.txt:
5354

5455
``requirements.txt`` - Install a Python environment
5556
===================================================
@@ -67,6 +68,7 @@ To install your repository like a Python package, you may include a
6768
``setup.py`` file. repo2docker installs ``setup.py`` files by running
6869
``pip install -e .``.
6970

71+
.. _REQUIRE:
7072

7173
``REQUIRE`` - Install a Julia environment
7274
=========================================

docs/source/faq.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ What versions of Python (or R or Julia...) are supported?
1717
Python
1818
~~~~~~
1919

20-
Repo2docker officially supports the following versions of Python (specified in environment.yml or runtime.txt):
20+
Repo2docker officially supports the following versions of Python
21+
(specified in your :ref:`environment.yml <environment.yml>` or
22+
:ref:`runtime.txt <runtime.txt>` file):
2123

2224
- 3.7 (added in 0.7)
2325
- 3.6 (default)
2426
- 3.5
27+
- 2.7
2528

2629
Additional versions may work, as long as the
2730
`base environment <https://github.com/jupyter/repo2docker/blob/master/repo2docker/buildpacks/conda/environment.yml>`_
@@ -31,14 +34,15 @@ in the base environment is not packaged for your Python,
3134
either because the version of the package is too new and your chosen Python is too old,
3235
or vice versa.
3336

34-
Additionally, if Python 2.7 is specified,
35-
a separate environment for the kernel will be installed with Python 2.
36-
The notebook server will run in the default Python 3.6 environment.
37+
I Python 2.7 is specified, a separate environment for the kernel will be
38+
installed with Python 2. The notebook server will run in the default Python 3.6
39+
environment.
3740

3841
Julia
3942
~~~~~
4043

41-
The following versions of Julia are supported (specified in REQUIRE):
44+
The following versions of Julia are supported (specified in the
45+
:ref:`REQUIRE <REQUIRE>` configuration file):
4246

4347
- 1.0 (added in 0.7)
4448
- 0.7 (added in 0.7)
@@ -61,7 +65,11 @@ a subsequent build step.)
6165
How do I set environment variables?
6266
-----------------------------------
6367

64-
Use the ``-e`` or ``--env`` flag for each variable that you want to define.
68+
To configure environment variables for all users of a repository use the
69+
:ref:`start <start>` configuration file.
70+
71+
When running repo2docker locally you can use the ``-e`` or ``--env`` command-line
72+
flag for each variable that you want to define.
6573

6674
For example ``jupyter-repo2docker -e VAR1=val1 -e VAR2=val2 ...``
6775

docs/source/index.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ jupyter-repo2docker
55
images from source code repositories** that run via a Jupyter server.
66

77
``repo2docker`` fetches a repository
8-
(e.g., from GitHub or other locations) and builds a container image
8+
(from GitHub, GitLab or other locations) and builds a container image
99
based on the configuration files found in the repository. It can be
1010
used to explore a repository locally by building and executing the
1111
constructed image of the repository, or as a means of building images that
1212
are pushed to a Docker registry.
1313

14+
``repo2docker`` is the tool used by `BinderHub <https://binderhub.readthedocs.io>`_
15+
to build images on demand.
16+
1417
Please report `Bugs <https://github.com/jupyter/repo2docker/issues>`_,
1518
`ask questions <https://gitter.im/jupyterhub/binder>`_ or
1619
`contribute to the project <https://github.com/jupyter/repo2docker/blob/master/CONTRIBUTING.md>`_.
@@ -25,16 +28,11 @@ Please report `Bugs <https://github.com/jupyter/repo2docker/issues>`_,
2528

2629
.. toctree::
2730
:maxdepth: 2
28-
:caption: How-To: User interfaces and environments
31+
:caption: How-To guides
2932

3033
howto/user_interface
3134
howto/languages
3235
howto/lab_workspaces
33-
34-
.. toctree::
35-
:maxdepth: 2
36-
:caption: How-To: Deployment and administration
37-
3836
howto/jupyterhub_images
3937
howto/deploy
4038

docs/source/usage.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Pasting the URL into your browser will open Jupyter Notebook with the
5555
dependencies and contents of the source repository in the built image.
5656

5757

58-
Building a specific branch / commit / tag
58+
Building a specific branch, commit or tag
5959
=========================================
6060

6161
To build a particular branch and commit, use the argument ``--ref`` and
@@ -64,7 +64,7 @@ specify the ``branch-name`` or ``commit-hash``. For example::
6464
jupyter-repo2docker --ref 9ced85dd9a84859d0767369e58f33912a214a3cf https://github.com/norvig/pytudes
6565

6666
.. tip::
67-
For reproducible research, we recommend specifying a commit-hash to
67+
For reproducible builds, we recommend specifying a commit-hash to
6868
deterministically build a fixed version of a repository. Not specifying a
6969
commit-hash will result in the latest commit of the repository being built.
7070

@@ -78,7 +78,10 @@ Where to put configuration files
7878
* The root directory of the repository.
7979

8080
If the folder ``binder/`` is located at the top level of the repository,
81-
**only configuration files in the** ``binder/`` **folder will be considered**.
81+
only configuration files in the ``binder/`` folder will be considered.
82+
83+
Check the complete list of :ref:`configuration files <config-files>` supported
84+
by ``repo2docker`` to see how to configure the build process.
8285

8386
.. note::
8487

0 commit comments

Comments
 (0)