Skip to content

Commit f19476f

Browse files
authored
Merge branch 'master' into humitos/django-upgrade-2.2
2 parents c6bd190 + 4b0c0e8 commit f19476f

File tree

112 files changed

+3998
-2592
lines changed

Some content is hidden

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

112 files changed

+3998
-2592
lines changed

.dockerignore

+3-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
1-
common
2-
logs
3-
bower_components
4-
5-
.git
6-
*.db*
7-
*.sql
8-
.tox
9-
.cache
10-
.pytest_cache
11-
celerybeat*
12-
debug.log
13-
14-
**/__pycache__
15-
16-
bower_components
17-
contrib
18-
datasets
19-
docs
20-
docker/azurite
21-
docker/search
22-
media/epub
23-
media/htmlzip
24-
media/json
25-
media/pdf
26-
node_modules
27-
private_cname_project
28-
private_cname_root
29-
private_web_root
30-
public_cname_project
31-
public_cname_root
32-
public_cnames
33-
public_symlinks
34-
public_web_root
35-
static
36-
spam-data
37-
user_builds
1+
# We only use the requirements folder in the Dockerfile
2+
*
3+
!requirements/

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMPOSE_PROJECT_NAME=community

.travis.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ python:
33
- 3.6
44
dist: xenial
55

6-
env:
7-
global:
8-
- NODE_VERSION=10.17.0
9-
10-
matrix:
6+
jobs:
117
include:
128
- python: 3.6
139
env: TOXENV=py36,codecov ES_VERSION=6.2.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
@@ -19,7 +15,7 @@ matrix:
1915
env: TOXENV=lint
2016
script: tox
2117
- python: 3.6
22-
env: TOXENV=eslint
18+
env: TOXENV=eslint NODE_VERSION=10.17.0
2319
- python: 3.6
2420
env: TOXENV=migrations
2521
cache:
@@ -29,14 +25,8 @@ cache:
2925
- ~/.npm
3026
install:
3127
- ./scripts/travis/install_elasticsearch.sh
28+
- ./scripts/travis/install_node.sh
3229
- pip install tox-travis
33-
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
34-
- source ~/.nvm/nvm.sh
35-
- nvm install $NODE_VERSION
36-
- nvm use $NODE_VERSION
37-
- npm install -g bower
38-
- npm install
39-
- bower install
4030
script:
4131
- ./scripts/travis/run_tests.sh
4232
notifications:

AUTHORS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Read the Docs Team
22
==================
33

4-
The core Read the Docs team is described at http://docs.readthedocs.io/en/latest/team.html
4+
The core Read the Docs team is described at https://docs.readthedocs.io/en/latest/team.html
55

66
Original Authors
77
===============

CHANGELOG.rst

+1,663-1,621
Large diffs are not rendered by default.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Bazaar_, Git_, and Mercurial_ repositories.
1212
Then we build documentation and host it for you.
1313
Think of it as *Continuous Documentation*.
1414

15-
.. _Read the docs: http://readthedocs.org/
15+
.. _Read the docs: https://readthedocs.org/
1616
.. _Sphinx: http://www.sphinx-doc.org/
1717
.. _reStructuredText: http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
1818
.. _Subversion: http://subversion.tigris.org/
@@ -36,7 +36,7 @@ You can find information about getting in touch with Read the Docs at our `Contr
3636
Contributing
3737
------------
3838

39-
You can find information about contributing to Read the Docs at our `Contribution page <http://docs.readthedocs.io/en/latest/contribute.html>`_.
39+
You can find information about contributing to Read the Docs at our `Contribution page <https://docs.readthedocs.io/en/latest/contribute.html>`_.
4040

4141
Quickstart for GitHub-Hosted Projects
4242
-------------------------------------

contrib/changelog.hbs

-7
This file was deleted.

docker-compose-search.yml

-42
This file was deleted.

docker-compose.override.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# docker-compose.override.yml file to launch a full instance of Read the Docs.
2+
#
3+
# Read the Docs' Core team is using docker-compose internally.
4+
# We do not offer support on this file and configuration at this point.
5+
# DO NOT USE DOCKER-COMPOSE SETUP FOR PRODUCTION OR CUSTOM INSTALLATION.
6+
7+
# We create this network here to be able to use a static IP for NGINX.
8+
# This is needed because hitting `community.dev.readthedocs.io` from
9+
# any service will fail since it will resolve to 127.0.0.1, but
10+
# instead we need to hit NGINX's IP (this is used on Embed API from
11+
# -ext for example) Setting a static IP for NGINX, allow us to
12+
# override /etc/hosts with this IP.
13+
version: '3'
14+
15+
networks:
16+
readthedocs:
17+
driver: bridge
18+
ipam:
19+
config:
20+
- subnet: 10.10.0.0/16
21+
22+
services:
23+
24+
server:
25+
build:
26+
args:
27+
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
28+
29+
nginx:
30+
networks:
31+
readthedocs:
32+
ipv4_address: 10.10.0.100
33+
34+
proxito:
35+
image: community_server:latest
36+
volumes:
37+
- ${PWD}:/usr/src/app/checkouts/readthedocs.org
38+
- ${PWD}/dockerfiles/settings/proxito.py:/usr/src/app/checkouts/readthedocs.org/readthedocs/settings/proxito.py
39+
environment:
40+
- DJANGO_SETTINGS_MODULE=readthedocs.settings.proxito
41+
42+
web:
43+
image: community_server:latest
44+
volumes:
45+
- ${PWD}:/usr/src/app/checkouts/readthedocs.org
46+
- ${PWD}/dockerfiles/settings/web.py:/usr/src/app/checkouts/readthedocs.org/readthedocs/settings/web.py
47+
environment:
48+
- DJANGO_SETTINGS_MODULE=readthedocs.settings.web
49+
extra_hosts:
50+
- "community.dev.readthedocs.io:10.10.0.100"
51+
52+
celery:
53+
image: community_server:latest
54+
volumes:
55+
- ${PWD}:/usr/src/app/checkouts/readthedocs.org
56+
- ${PWD}/dockerfiles/settings/celery.py:/usr/src/app/checkouts/readthedocs.org/readthedocs/settings/celery.py
57+
environment:
58+
- DJANGO_SETTINGS_MODULE=readthedocs.settings.celery
59+
- CELERY_APP_NAME=readthedocs
60+
61+
build:
62+
image: community_server:latest
63+
volumes:
64+
- ${PWD}:/usr/src/app/checkouts/readthedocs.org
65+
- ${PWD}/dockerfiles/settings/build.py:/usr/src/app/checkouts/readthedocs.org/readthedocs/settings/build.py
66+
environment:
67+
- DJANGO_SETTINGS_MODULE=readthedocs.settings.build
68+
- CELERY_APP_NAME=readthedocs
69+
70+
storage:
71+
image: mcr.microsoft.com/azure-storage/azurite:latest
72+
volumes:
73+
- storage_data:/data
74+
ports:
75+
- "10000:10000"
76+
networks:
77+
readthedocs:
78+
command: ["azurite-blob", "--silent", "--blobPort", "10000", "--blobHost", "0.0.0.0", "--location", "/data"]
79+
80+
azure-cli:
81+
image: microsoft/azure-cli
82+
volumes:
83+
- ${PWD}/common/dockerfiles/scripts/create-containers.sh:/usr/local/bin/create-containers.sh
84+
links:
85+
- storage
86+
depends_on:
87+
- storage
88+
networks:
89+
readthedocs:
90+
command: ["/usr/local/bin/create-containers.sh"]

0 commit comments

Comments
 (0)