Skip to content

Commit b16772c

Browse files
docs: reorganize sphinx docs for better discoverability
1 parent 2e276cb commit b16772c

Some content is hidden

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

57 files changed

+583
-600
lines changed

docs/cli.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Command line interface (CLI)
2+
============================
3+
4+
How do I navigate Tutor's command-line interface?
5+
-------------------------------------------------
6+
7+
Tutor commands are structured in an easy-to-follow hierarchy. At the top level, there are command trees for image and configuration management::
8+
9+
tutor config ...
10+
tutor images ...
11+
12+
as well as command trees for each mode in which Tutor can run::
13+
14+
tutor local ... # Commands for managing a local Open edX deployment.
15+
tutor k8s ... # Commands for managing a Kubernetes Open edX deployment.
16+
tutor dev ... # Commands for hacking on Open edX in development mode.
17+
18+
Within each mode, Tutor has subcommands for managing that type of Open edX instance. Many of them are common between modes, such as ``launch``, ``start``, ``stop``, ``exec``, and ``logs``. For example::
19+
20+
tutor local logs # View logs of a local deployment.
21+
tutor k8s logs # View logs of a Kubernetes-managed deployment.
22+
tutor dev logs # View logs of a development platform.
23+
24+
Many commands can be further parameterized to specify their target and options, for example::
25+
26+
tutor local logs cms # View logs of the CMS container in a local deployment.
27+
tutor k8s logs mysql # View logs of MySQL in Kubernetes-managed deployment.
28+
tutor dev logs lms --tail 10 # View ten lines of logs of the LMS container in development mode.
29+
30+
And that's it! You do not need to understand Tutor's entire command-line interface to get started. Using the ``--help`` option that's availble on every command, it is easy to learn as you go. For an in-depth guide, you can also explore the :ref:`CLI Reference <cli_reference>`.

docs/concepts/openedx.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _openedx:
2+
3+
Open edX
4+
========
5+
6+
What is Open edX?
7+
-----------------
8+
9+
`Open edX <http://open.edx.org/>`_ is a thriving open source project, backed by a great community, for running an online learning platform at scale. Open edX comes with an LMS (Learning Management System) where students access course contents, a CMS (Content Management System) that course staff uses to design courses, and a few other components to provide more services to students, course staff, and platform administrators.
10+
11+
Should I use Open edX?
12+
----------------------
13+
14+
Open edX competitors include `Moodle <https://moodle.org/>`__, `Instructure's Canvas <https://www.instructure.com/>`__, `Blackboard's Open LMS <https://www.blackboard.com>`__, as well as a slew of hosted, closed source alternatives. Open edX is the only online learning system that satisfies all following properties:
15+
16+
* Open source software to avoid vendor lock-in
17+
* Scales well in all directions (number of users and courses)
18+
* Multiple extension points for comprehensive customization
19+
* Modern, intuitive user interface to keep students engaged
20+
21+
Open edX is a safe bet: it is backed by edX.org, a US-based non-profit that is committed to open source and which runs Open edX to service its millions of learners. With Open edX you can be sure that the features you need will be available. If it's good enough for Harvard, the MIT, or the French government, then it will probably also work for you.

docs/concepts/tutor.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. _tutor_concepts:
2+
3+
Tutor
4+
=====
5+
6+
What is Tutor?
7+
--------------
8+
9+
Tutor is an open source distribution of `Open edX <https://open.edx.org>`_. It uses the original code from the various Open edX repositories, such as `edx-platform <https://github.com/openedx/edx-platform/>`_, `cs_comments_service <https://github.com/openedx/cs_comments_service>`_, etc. and packages everything in a way that makes it very easy to install, administer and upgrade Open edX. In particular, all services are run inside Docker containers.
10+
11+
Tutor makes it possible to deploy Open edX locally, with `docker-compose <https://docs.docker.com/compose/overview/>`_ or on an existing `Kubernetes cluster <http://kubernetes.io/>`_.
12+
13+
What is the purpose of Tutor?
14+
-----------------------------
15+
16+
To make it possible to deploy, administer and upgrade Open edX anywhere, easily.

docs/configuration.rst

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Configuration and customisation
66
Tutor offers plenty of possibilities for platform customisation out of the box. There are two main ways in which the base Open edX installation can be customised:
77

88
a. Modifying the Tutor :ref:`configuration parameters <configuration>`.
9-
b. Modifying the :ref:`Open edX docker image <customise>` that runs the Open edX platform.
9+
b. Modifying the :ref:`Open edX docker image <custom_openedx_docker_image>` that runs the Open edX platform.
1010

11-
This section does not cover :ref:`plugin development <plugins>`. For simple changes, such as modifying the ``*.env.yml`` files or the edx-platform settings, *you should not fork edx-platform or tutor*! Instead, you should create a simple :ref:`plugin for Tutor <plugins_yaml>`.
11+
This section does not cover :ref:`plugin development <plugin_development>`. For simple changes, such as modifying the ``*.env.yml`` files or the edx-platform settings, *you should not fork edx-platform or tutor*! Instead, you should create a simple :ref:`plugin for Tutor <plugin_development_tutorial>`.
1212

1313
.. _configuration:
1414

@@ -293,8 +293,6 @@ If you would like to perform SSL/TLS termination with your own custom certificat
293293

294294
.. _customise:
295295

296-
.. _custom_openedx_docker_image:
297-
298296
Kubernetes
299297
~~~~~~~~~~
300298

@@ -313,6 +311,8 @@ This configuration parameter sets the Contact Email.
313311

314312
This configuration parameter sets the Platform Name.
315313

314+
.. _custom_openedx_docker_image:
315+
316316
Custom Open edX docker image
317317
----------------------------
318318

@@ -497,3 +497,83 @@ In these situations, you can set ``--docker-arg`` flag in the ``tutor images bui
497497
--docker-arg="docker.io/myusername/openedx:mytag"
498498

499499
This will result in passing the ``--cache-from`` option with the value ``docker.io/myusername/openedx:mytag`` to the docker build command.
500+
501+
502+
Modifying ``edx-platform`` settings
503+
-----------------------------------
504+
505+
The default settings module loaded by ``edx-platform`` is ``tutor.production`` in production and ``tutor.development`` in development. The folders ``$(tutor config printroot)/env/apps/openedx/settings/lms`` and ``$(tutor config printroot)/env/apps/openedx/settings/cms`` are mounted as ``edx-platform/lms/envs/tutor`` and ``edx-platform/cms/envs/tutor`` inside the docker containers. To modify these settings you must create a plugin that implements one or more of the patch statements in those setting files. See the :ref:`plugin_development_tutorial` tutorial for more information on how to create a plugin.
506+
507+
508+
.. _theming:
509+
510+
Installing a custom theme
511+
-------------------------
512+
513+
Comprehensive theming is enabled by default, but only the default theme is compiled. `Indigo <https://github.com/overhangio/indigo>`__ is a better, ready-to-run theme that you can start using today.
514+
515+
To compile your own theme, add it to the ``env/build/openedx/themes/`` folder::
516+
517+
git clone https://github.com/me/myopenedxtheme.git \
518+
"$(tutor config printroot)/env/build/openedx/themes/myopenedxtheme"
519+
520+
The ``themes`` folder should have the following structure::
521+
522+
openedx/themes/
523+
mycustomtheme1/
524+
cms/
525+
...
526+
lms/
527+
...
528+
mycustomtheme2/
529+
...
530+
531+
Then you must rebuild the openedx Docker image::
532+
533+
tutor images build openedx
534+
535+
Finally, you should enable your theme with the :ref:`settheme command <settheme>`.
536+
537+
538+
Using Google Mail as an SMTP server
539+
-----------------------------------
540+
541+
By default, Tutor comes with a simple SMTP server for sending emails. Such a server has an important limitation: it does not implement mailing good practices, such as DKIM or SPF. As a consequence. the emails you send might be flagged as spam by their recipients. Thus, you might want to disable the SMTP server and run your own, for instance using your Google Mail account.
542+
543+
.. warning::
544+
Google Mail SMTP servers come with their own set of limitations. For instance, you are limited to sending 500 emails a day. Reference: https://support.google.com/mail/answer/22839
545+
546+
You should authorize third-party to access your Google Mail account. In your Google Mail account, select "Manage Account", "Security", and turn on "Less Secure App Access". Check the Google documentation for more information on "less secure apps": https://support.google.com/accounts/answer/6010255
547+
548+
Then, check that you can reach the Google Mail SMTP service from your own server::
549+
550+
$ telnet smtp.gmail.com 587
551+
552+
If you get ``Connected to smtp.gmail.com.`` then it means that you can successfully reach the Google Mail SMTP servers. If not, you will have to reconfigure your firewall.
553+
554+
To exit the ``telnet`` shell, type ``ctrl+]``, then ``ctrl+d``.
555+
556+
Then, disable the SMTP server that comes with Tutor::
557+
558+
$ tutor config save --set RUN_SMTP=false
559+
560+
Configure credentials to access your SMTP server::
561+
562+
$ tutor config save \
563+
--set SMTP_HOST=smtp.gmail.com \
564+
--set SMTP_PORT=587 \
565+
--set SMTP_USE_SSL=false \
566+
--set SMTP_USE_TLS=true \
567+
568+
--set SMTP_PASSWORD='YOURPASSWORD'
569+
570+
Don't forget to replace your email address and password in the prompt above. If your email password contains special characters, you might have to escape them.
571+
572+
Then, restart your platform::
573+
574+
$ tutor local launch
575+
576+
That's it! You can send a test email with the following command::
577+
578+
$ tutor local run --no-deps lms ./manage.py lms shell -c \
579+
"from django.core.mail import send_mail; send_mail('test subject', 'test message', '[email protected]', ['[email protected]'])"

docs/deployment.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _deployment:
2+
3+
Deploying Tutor
4+
===============
5+
6+
.. toctree::
7+
:maxdepth: 2
8+
9+
local
10+
k8s
File renamed without changes.

docs/plugins/v0/index.rst renamed to docs/developing/legacy/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
=============
2-
Legacy v0 API
3-
=============
1+
=====================
2+
Plugins Legacy v0 API
3+
=====================
44

55
.. include:: legacy.rst
66

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)