Skip to content

Commit

Permalink
Merge branch 'master' into humitos/allow-extend-domain-create
Browse files Browse the repository at this point in the history
  • Loading branch information
agjohnson authored Sep 19, 2019
2 parents 500f4a2 + 9125deb commit b0b1a47
Show file tree
Hide file tree
Showing 43 changed files with 1,516 additions and 321 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
Version 3.7.4
-------------

:Date: September 05, 2019

* `@ericholscher <http://github.com/ericholscher>`__: Remove paid support callout (`#6140 <https://github.com/readthedocs/readthedocs.org/pull/6140>`__)
* `@ericholscher <http://github.com/ericholscher>`__: Fix IntegrationAdmin with raw_id_fields for Projects (`#6136 <https://github.com/readthedocs/readthedocs.org/pull/6136>`__)
* `@ericholscher <http://github.com/ericholscher>`__: Fix link to html_extra_path (`#6135 <https://github.com/readthedocs/readthedocs.org/pull/6135>`__)
* `@stsewd <http://github.com/stsewd>`__: Move out authorization from FooterHTML view (`#6133 <https://github.com/readthedocs/readthedocs.org/pull/6133>`__)
* `@agjohnson <http://github.com/agjohnson>`__: Add setting for always cleaning the build post-build (`#6132 <https://github.com/readthedocs/readthedocs.org/pull/6132>`__)
* `@pyup-bot <http://github.com/pyup-bot>`__: pyup: Scheduled weekly dependency update for week 35 (`#6129 <https://github.com/readthedocs/readthedocs.org/pull/6129>`__)
* `@stsewd <http://github.com/stsewd>`__: Refactor footer_html view to class (`#6125 <https://github.com/readthedocs/readthedocs.org/pull/6125>`__)
* `@ericholscher <http://github.com/ericholscher>`__: Use raw_id_fields in the TokenAdmin (`#6116 <https://github.com/readthedocs/readthedocs.org/pull/6116>`__)
* `@davidfischer <http://github.com/davidfischer>`__: Fixed footer ads supported on all themes (`#6115 <https://github.com/readthedocs/readthedocs.org/pull/6115>`__)
* `@stsewd <http://github.com/stsewd>`__: Don't log BuildEnvironmentWarning as error (`#6112 <https://github.com/readthedocs/readthedocs.org/pull/6112>`__)
* `@pllim <http://github.com/pllim>`__: Use the force when fetching with Git (`#6109 <https://github.com/readthedocs/readthedocs.org/pull/6109>`__)
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Record search queries smartly (`#6088 <https://github.com/readthedocs/readthedocs.org/pull/6088>`__)
* `@stsewd <http://github.com/stsewd>`__: Add move method to automation rule (`#5998 <https://github.com/readthedocs/readthedocs.org/pull/5998>`__)
* `@dojutsu-user <http://github.com/dojutsu-user>`__: Index more domain data into elasticsearch (`#5979 <https://github.com/readthedocs/readthedocs.org/pull/5979>`__)

Version 3.7.3
-------------

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions docs/_static/security/pgpkey.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - http://gpgtools.org

mQINBFqNz1ABEADvgtp3LT1pV5wuTyBPaKrbWBFj10eKyQ15wfgyc2RR6Ix5QnBo
6BcJ4fpgBhSwlngsrm0WU5kI/jH7ySwzbDpYCRiLvGJx+pEYLuBBOSm6r5M1N+FV
xq3ShT4mHXhwPS1mKf9Xe+KlMdYa2e5TlBEr+TxGAmFFrOLjPxw6IDHgP3MVidr2
iHA2PAATl6H9ZYvNzLkI2sP7h0V1/ADd43YpAK4yk6gdVjype5ez8lmoxDKNabMt
dSfdOup8zy/fbC5KlxqrT9hHBkYfQWDLWXWcDW111q+ZvncujCrpONaY86bcQ3nn
QgkeWCwj254vvqsrygEU93reC2onWaROUKoLlX1/1m2k2X3qze/hJRFZaljXVPKH
jV/5q88EbjSUDgY5v9mdX8jhJAukx9HkOFdkMSh3RBgu1r+UPnCNd9K4T2nN0LBL
c9NTG0HW7Di5ivEVq74SqDIeiVeOrfY/B6pRuUm/kNPcvZ+ZQPeNk6JUMqEemO9Q
h0VHSkgkhCPWPO9c9wWJz7O6y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D6CP43seYv3JaPyVP7+IkhtH/RDm8q3vs0qLpEBrJIb
vBYBXLtyoGHxTkWueou0Ur1j2lLUMqnQkq5NAsckSfHtZEdPDy6T3NHMfVRmnXnW
m/GM3BDE7DFe5BBYb+vJS4/JHNDoSpk+jNezaf3hdx9+fh2DIoL84fs1FRRAl3Od
6LWPAt3twOQLS0KsQh0GSIZ+zdJf3xvlZ4ixAaPB4iAF8bXYzvsODN3LRQIGhet2
NzjD41f5IrAlG/qFiC6s/YLj1DWanLw2nTzSi4x3v0Gc4DEXPebB3KvaNEmqoKGP
5aXa9IPbvzEVCX82qjeqCPYAsYVOBQnFEAcnkrQ76363oJTeTHxK7kgewS2YCVyy
7wVinR8eyrs+3AWrZ5Op817HgxGvAVDGOEK+1OX9g1wt+IdxX00s85/T+Zk9RF6H
wtRaD9li
=LjIC
-----END PGP PUBLIC KEY BLOCK-----
35 changes: 29 additions & 6 deletions docs/commercial/sharing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,42 @@ Sharing
-------

.. note::
This feature only exists on `Read the Docs for Business <https://readthedocs.com/>`_.

You can share your project with users outside of your company.
There are two ways to do this:
This feature only exists on `Read the Docs for Business <https://readthedocs.com/>`__.

You can share your project with users outside of your company:

* by sending them a *secret link*,
* by giving them a *password*.

These methods will allow them to view a specific project inside your company.

Additionally, you can use a HTTP Authorization Header.
This is useful to have access from a script.

Enabling
~~~~~~~~

* Go into your *Project Admin* page and to the *Sharing* menu.
* Under the *Share with someone new* heading, select the way you prefer (secret link or password), add an expiration date and a *Description* so you remember who you're sharing it with.
* Under the *Share with someone new* heading, select the way you prefer (secret link, password, or HTTP header token),
add an expiration date and a *Description* so you remember who you're sharing it with.
* Click *Share!* to create.
* Get the info needed to share your documentation with other users:

* If you have selected secret link, copy the link that is generated
* In case of password, copy the link and password
* For HTTP header token, you need to pass the ``Authorization`` header in your HTTP request.

* Give that information to the person who you want to give access.

.. note:: You can always revoke access in the same panel.
.. note::

You can always revoke access in the same panel.

.. note::

Sharing using a password and a HTTP header token are currently in beta.
If you want access to these features, email us to [email protected].

Effects
~~~~~~~
Expand All @@ -40,6 +52,17 @@ Password
********

Once the person you send the link to clicks on the link, they will see
a *Authorization required* page asking them for the password you
an *Authorization required* page asking them for the password you
generated. When the user enters the password, they will have access to
view your project.

HTTP Authorization Header
*************************

You need to send the ``Authorization`` header with the token on each HTTP request.
The header has the form ``Authorization: Token <ACCESS_TOKEN>``.
For example:

.. prompt:: bash $

curl -H "Authorization: Token 19okmz5k0i6yk17jp70jlnv91v" https://docs.example.com/en/latest/example.html
5 changes: 2 additions & 3 deletions docs/custom_installs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ It has those features and more!

.. warning::
These documents are maintained by the community, and might not be up to date.
Read the Docs developers do not support custom installs of our software
in our public issue tracker. For additional support of a custom installation,
please see our `paid support plans <https://readthedocs.com/services/#open-source-support>`_.
Read the Docs developers do not support custom installs of our software,
as mentioned in our :doc:`/open-source-philosophy`.

.. toctree::
:maxdepth: 2
Expand Down
24 changes: 15 additions & 9 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ To accomplish this, you can add a ``robots.txt`` file to your documentation's ro


Minimal example of ``robots.txt``
+++++++++++++++++++++++++++++++++
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

Expand All @@ -270,22 +270,28 @@ Minimal example of ``robots.txt``
See `Google's docs`_ for its full syntax.

This file has to be served as is under ``/robots.txt``.
Depending if you are using Sphinx or MkDocs, you will need a different configuration for this.

Setup
~~~~~

Sphinx
~~~~~~
The ``robots.txt`` file will be served from the **default version** of your Project.
This is because the ``robots.txt`` file is served at the top-level of your domain,
so we must choose a version to find the file in.
The **default version** is the best place to look for it.

Sphinx and Mkdocs both have different ways of outputting static files in the build:

Sphinx uses `html_extra`_ option to add static files to the output.
You need to create a ``robots.txt`` file and put it under the path defined in ``html_extra``.
Sphinx
++++++

Sphinx uses `html_extra_path`_ option to add static files to the output.
You need to create a ``robots.txt`` file and put it under the path defined in ``html_extra_path``.

MkDocs
~~~~~~
++++++

MkDocs needs the ``robots.txt`` to be at the directory defined at `docs_dir`_ config.


.. _Google's docs: https://support.google.com/webmasters/answer/6062608
.. _html_extra: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_extra_path
.. _html_extra_path: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_extra_path
.. _docs_dir: https://www.mkdocs.org/user-guide/configuration/#docs_dir
19 changes: 0 additions & 19 deletions docs/gsoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,6 @@ This could include:
* Taking a swagger YAML file and generating HTML properly with Sphinx
* Integration with our existing API to generate Swagger output

Autobuild docs for Pull Requests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It would be great to automatically build docs for Pull Requests in GitHub repos that our users have.
Currently we don't support this,
and it's one of our most requested features.

This would include:

* Modeling Pull Requests as a type of version alongside Tags and Branches
* Modifying how we upload HTML docs to store them in a place like S3 for long term storage
* Build integration with GitHub to send the status notifications when a PR is building and complete

More info here:

* https://github.com/readthedocs/readthedocs.org/issues/1340
* https://github.com/readthedocs/readthedocs.org/issues/2465


Build a new Sphinx theme
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
52 changes: 52 additions & 0 deletions docs/guides/autobuild-docs-for-pull-requests.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Autobuild Documentation for Pull Requests
=========================================

Read the Docs allows autobuilding documentation for pull/merge requests for GitHub or GitLab projects.
This feature is currently available under a :doc:`Feature Flag </guides/feature-flags>`.
So, you can enable this feature by sending us an `email <mailto:[email protected]>`__ including your project URL.

Features
========

- **Build on Pull/Merge Request Event:** We create an external version and trigger a build for that version
when we receive pull/merge request open event from the webhook.
We also trigger a new build when a new commit has been pushed to the Pull/Merge Request.

- **Warning Banner for Pull/Merge Request Documentation:** While building documentation for pull/merge requests
we add a warning banner at the top of those documentations to let the users know that
this documentation was generated from pull/merge requests and is not the main documentation for the project.

- **Send Build Status Notification:** We send build status reports to the status API of the provider (e.g. GitHub, GitLab).
When a build is triggered for a pull/merge request we send build pending notification with the build URL
and after the build has finished we send success notification if the build succeeded without any error
or failure notification if the build failed.

.. figure:: ../_static/images/guides/github-build-status-reporting.gif
:align: center
:alt: GitHub Build Status Reporting for Pull Requests.
:figwidth: 80%
:target: ../_static/images/guides/github-build-status-reporting.gif

GitHub Build Status Reporting for Pull Requests

Troubleshooting
===============

After the feature is enabled on your project if everything does not work as expected,
some common causes might be:

#. Project repository should be from GitHub or GitLab. This feature is only available for GitHub or GitLab.

#. Social Account (GitHub, Gitlab) is not connected with Read the Docs account.
If your project repository provider is GitHub or GitLab you need to make sure
that you Read the Docs account is connected with that providers social account.
You can check this by going to your `profile settings`_.

#. Webhook is not properly setup. You need to make sure your webhook is properly setup
to handle events. You can setup or ``re-sync`` the webhook from you projects admin dashboard.
Learn more about setting up webhooks from our :doc:`Webhook Documentation </webhooks>`.

If you have tried all the above troubleshooting and still getting issues,
please let us know by sending us an `email <mailto:[email protected]>`__.

.. _profile settings: https://readthedocs.org/accounts/social/connections/
2 changes: 2 additions & 0 deletions docs/guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ These guides will help you customize or tune aspects of the Read the Docs build
.. toctree::
:maxdepth: 1

autobuild-docs-for-pull-requests
build-notifications
build-using-too-many-resources
technical-docs-seo-guide
Expand All @@ -40,6 +41,7 @@ These guides will help you customize or tune aspects of the Read the Docs build
environment-variables
feature-flags
google-analytics
searching-with-readthedocs
sitemaps
specifying-dependencies
wipe-environment
Loading

0 comments on commit b0b1a47

Please sign in to comment.