Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file v2 docs #4451

Merged
merged 53 commits into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
76af98a
Rename docs from v1
stsewd Jul 19, 2018
d09b3c2
Add docs for v2
stsewd Jul 30, 2018
61eff39
Add docs for sphinx.buider
stsewd Jul 30, 2018
b2823be
Typos
stsewd Jul 31, 2018
3d61b5c
Use same name
stsewd Jul 31, 2018
702ee70
List all filenames in index
stsewd Jul 31, 2018
1a840ac
Fix ref
stsewd Jul 31, 2018
f50b033
Better sentence
stsewd Aug 2, 2018
8b67757
Don't mention the deprecation yet
stsewd Aug 2, 2018
aa9455d
Link the filename to just one place
stsewd Aug 2, 2018
a4544d9
Change bullet list to definition list
stsewd Aug 2, 2018
c1f34a9
Typo
stsewd Aug 2, 2018
66f53f8
Typo
stsewd Aug 3, 2018
8273f74
Point to correct docker version for stable
stsewd Aug 3, 2018
233eb92
Add supportedversions role
stsewd Aug 6, 2018
358737b
Fix old links to yaml-config
stsewd Aug 6, 2018
37d5829
Update link to configuration file
stsewd Aug 10, 2018
00edff4
Link to specific conda docs
stsewd Aug 10, 2018
f2d47f3
New advatage
stsewd Aug 15, 2018
362be88
Use tip instead of note
stsewd Aug 15, 2018
93a89f2
Update note about using v2 instead of v1
stsewd Aug 15, 2018
239201b
Add example word
stsewd Aug 15, 2018
2af7cdf
Better sentences
stsewd Aug 15, 2018
dc70b5f
Add default value
stsewd Aug 15, 2018
8ca9c2d
Link to official docs
stsewd Aug 15, 2018
2b2a95a
Style
stsewd Aug 15, 2018
b9f4365
Rename role
stsewd Aug 15, 2018
e601db2
Include list of global settings
stsewd Aug 15, 2018
f1d60de
Add note about ignoring submodules.recursive
stsewd Aug 16, 2018
0d6ee5c
Link to specific sections
stsewd Aug 16, 2018
c584485
Update link
stsewd Aug 22, 2018
1f07a17
Update link
stsewd Aug 22, 2018
4954238
Update link
stsewd Aug 30, 2018
48b1a4d
Ref to build environment
stsewd Aug 30, 2018
9193e07
Notes about stric validation
stsewd Oct 4, 2018
264a693
Merge branch 'master' into config-file-v2-docs
stsewd Jan 2, 2019
f8e61e8
Merge branch 'master' into config-file-v2-docs
stsewd Jan 14, 2019
8db81f1
Merge branch 'master' into config-file-v2-docs
stsewd Jan 22, 2019
90ee844
Update docs to new schema
stsewd Jan 22, 2019
ebf3b0d
Update migration guide
stsewd Jan 22, 2019
d08283c
Reword
stsewd Jan 22, 2019
2607216
Merge branch 'master' into config-file-v2-docs
stsewd Jan 22, 2019
b13a5b6
Fix link
stsewd Jan 22, 2019
d6c9e40
Update extension
stsewd Jan 22, 2019
c512420
Clean up
stsewd Jan 22, 2019
9fe4a1d
Update docs/config-file/v2.rst
ericholscher Jan 23, 2019
f5d3ec4
Feedback
stsewd Jan 23, 2019
7f520a4
Be more explicit about python.install default
stsewd Jan 23, 2019
5e0b771
More generic description for submodules
stsewd Jan 23, 2019
329286f
Fix broken link
stsewd Jan 23, 2019
54ffc0e
Merge branch 'master' into config-file-v2-docs
stsewd Jan 25, 2019
eb1cd4e
Merge branch 'master' into config-file-v2-docs
stsewd Jan 29, 2019
f4a5f07
Update versions
stsewd Jan 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/.rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[rstcheck]
ignore_directives=automodule,http:get,tabs,tab,prompt
ignore_roles=djangosetting,setting
ignore_roles=djangosetting,setting,buildpyversions
ignore_messages=(Duplicate implicit target name: ".*")|(Hyperlink target ".*" is not referenced)
2 changes: 1 addition & 1 deletion docs/builds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ The build environment

The build process is executed inside Docker containers,
by default the image used is ``readthedocs/build:2.0``,
but you can change that using a :doc:`configuration file <yaml-config>`.
but you can change that using a :doc:`config-file/index`.

.. note::

Expand Down
10 changes: 1 addition & 9 deletions docs/conda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ This work was funded by `Clinical Graphics`_ -- many thanks for their support of
Activating Conda
----------------

Conda Support is the first feature enabled with :doc:`yaml-config`.
You can enable it by creating a `readthedocs.yml` file in the root of your
repository with the contents:

.. code-block:: yaml

conda:
file: environment.yml
Conda support is avalible using a :doc:`config-file/index`, see :ref:`config-file/v2:conda`.

This Conda environment will also have Sphinx and other build time dependencies installed.
It will use the same order of operations that we support currently:
Expand All @@ -42,4 +35,3 @@ we can't safely install it as a normal dependency into the normal Python virtual

.. _issue: https://github.com/rtfd/readthedocs.org/issues
.. _Clinical Graphics: https://www.clinicalgraphics.com/

28 changes: 28 additions & 0 deletions docs/config-file/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Configuration File
==================

In addition to using the admin panel of your project to configure your project,
you can use a configuration file in the root of your project.
stsewd marked this conversation as resolved.
Show resolved Hide resolved
The configuration file can be named as:

- ``readthedocs.yml``
- ``readthedocs.yaml``
- ``.readthedocs.yml``
- ``.readthedocs.yaml``

The main advantages of using a configuration file over the web interface are:

- Some settings are only available using a configuration file
- The settings are per version rather than per project.
- The settings live in your VCS.
- Reproducible build environments over time.

stsewd marked this conversation as resolved.
Show resolved Hide resolved
.. tip::

Using a configuration file is the recommended way of using Read the Docs.

.. toctree::
:maxdepth: 3

Version 2 <v2>
Version 1 <v1>
24 changes: 18 additions & 6 deletions docs/yaml-config.rst → docs/config-file/v1.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Read the Docs YAML Config
=========================
Configuration File V1
=====================

Read the Docs now has support for configuring builds with a YAML file.
The file, ``readthedocs.yml``, must be in the root directory of your project.
:doc:`The Read the Docs file <index>` must be in the root directory of your project.
stsewd marked this conversation as resolved.
Show resolved Hide resolved

.. warning:: This feature is in a beta state.
Please file an `issue`_ if you find anything wrong.
.. warning::

Version 1 shouldn't be used.
The version 2 of the configuration file is now avaliable.
See the :ref:`new features <config-file/v2:New>`
and :ref:`how to migrate from v1 <config-file/v2:Migrating from v1>`.

Here is an example of what this file looks like:

Expand All @@ -25,6 +28,15 @@ Here is an example of what this file looks like:
Supported settings
------------------

version
~~~~~~~

* Default: 1

.. code-block:: yaml

version: 1

.. _yaml__formats:

formats
Expand Down Expand Up @@ -161,7 +173,7 @@ python.use_system_site_packages
* Type: Boolean

When true, it gives the virtual environment access to the global site-packages directory.
Depending on the :ref:`yaml-config:build.image`,
Depending on the :ref:`config-file/v1:build.image`,
Read the Docs includes some libraries like scipy, numpy, etc.
See :ref:`builds:The build environment` for more details.

Expand Down
Loading