Skip to content

Design doc: collect data about builds #8124

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

Merged
merged 12 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 18 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,34 @@ version: 2.1
jobs:
tests:
docker:
- image: 'cimg/python:3.6'
- image: 'cimg/python:3.8'
environment:
TOX_POSARGS: ''
- image: 'docker.elastic.co/elasticsearch/elasticsearch:7.9.2'
- image: 'docker.elastic.co/elasticsearch/elasticsearch:7.14.0'
name: search
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xms750m -Xmx750m
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: pip install --user tox
- run: tox -e py36,codecov
- run: tox -e py38,codecov

tests-embedapi:
docker:
- image: 'cimg/python:3.8'
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: pip install --user tox
- run: tox -c tox.embedapi.ini

checks:
docker:
- image: 'cimg/python:3.6'
- image: 'cimg/python:3.8'
environment:
NODE_VERSION: 10.17.0
steps:
Expand All @@ -34,9 +45,11 @@ jobs:
echo 'export PATH=~/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
- run: tox -e migrations
- run: tox -e pre-commit
- run: tox -e lint
- run: tox -e docs-lint
- run: tox -e docs
- run: tox -e docs-dev
- run: tox -e eslint

workflows:
Expand All @@ -45,3 +58,4 @@ workflows:
jobs:
- checks
- tests
- tests-embedapi
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* @readthedocs/backend

/docs/ @readthedocs/advocacy
13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Bug report
about: Report some incorrect or unexpected behavior
---

## Details

* Read the Docs project URL: https://readthedocs.org/projects/{your_project_slug}/
* Build URL (if applicable): https://readthedocs.org/projects/{your_project_slug}/builds/{build_id}/
* Read the Docs username (if applicable): https://readthedocs.org/profiles/{your_rtd_username}/

## Expected Result

*A description of what you wanted to happen*

## Actual Result

*A description of what actually happened*
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: User support
url: https://readthedocs.org/support/
about: |
If you need a specific request for your project or account,
like more resources, a specific feature flag,
change of the project slug or username, etc
15 changes: 9 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
version: 2

formats: all

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: requirements/pip.txt
- requirements: requirements/docs.txt

build:
os: ubuntu-20.04
tools:
python: "3.8"

search:
ignore:
# Internal documentation
- development/design/*
- search.html
- 404.html
ranking:
# Deprecated content
api/v1.html: -1
config-file/v1.html: -1
config-file/v1.html: -5

# Useful content, but not something we want most users finding
changelog.html: -6
1 change: 0 additions & 1 deletion .style.yapf

This file was deleted.

795 changes: 775 additions & 20 deletions CHANGELOG.rst

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

ARG GITHUB_TOKEN

Expand Down Expand Up @@ -50,6 +50,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /tmp

COPY requirements/pip.txt pip.txt
COPY requirements/debug.txt debug.txt
COPY requirements/docker.txt docker.txt
RUN pip3 install --no-cache-dir -r docker.txt

Expand Down
16 changes: 16 additions & 0 deletions dockerfiles/nginx/proxito.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,26 @@ server {
add_header X-RTD-Project-Method $rtd_project_method always;
set $rtd_redirect $upstream_http_x_rtd_redirect;
add_header X-RTD-Redirect $rtd_redirect always;
set $cdn_cache_control $upstream_http_cdn_cache_control;
add_header CDN-Cache-Control $cdn_cache_control always;
set $cache_tag $upstream_http_cache_tag;
add_header Cache-Tag $cache_tag always;
set $referrer_policy $upstream_http_referrer_policy;
add_header Referrer-Policy $referrer_policy always;
set $permissions_policy $upstream_http_permissions_policy;
add_header Permissions-Policy $permissions_policy always;
set $feature_policy $upstream_http_feature_policy;
add_header Feature-Policy $feature_policy always;
set $access_control_allow_origin $upstream_http_access_control_allow_origin;
add_header Access-Control-Allow-Origin $access_control_allow_origin always;
set $access_control_allow_headers $upstream_http_access_control_allow_headers;
add_header Access-Control-Allow-Headers $access_control_allow_headers always;
set $x_frame_options $upstream_http_x_frame_options;
add_header X-Frame-Options $x_frame_options always;
# Minio sets this header on the response, and we don't want to copy it to the response
proxy_hide_header Content-Security-Policy;
set $content_security_policy $upstream_http_content_security_policy;
add_header Content-Security-Policy $content_security_policy always;
}

# Serve 404 pages here
Expand Down
2 changes: 1 addition & 1 deletion docs/.rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[rstcheck]
ignore_directives=automodule,http:get,tabs,tab,prompt,http:patch,http:post,http:put,http:delete
ignore_roles=djangosetting,setting,featureflags,buildpyversions
ignore_substitutions=org_brand,com_brand,:smile:
ignore_substitutions=org_brand,com_brand,:smile:,:arrows_counterclockwise:,:heavy_plus_sign:,:tada:,:heart:,:pencil2:
# This error needs to be ignored for now
# See: https://github.com/myint/rstcheck/issues/19
ignore_messages=(Hyperlink target ".*" is not referenced)
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
BUILDDIR = _build/$(RTD_DOCSET)

# Do not use local Django settings during the docs build
export DJANGO_SETTINGS_SKIP_LOCAL = True
Expand Down
11 changes: 11 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.team-roster a img {
border-radius: 50%;
box-shadow: 0 0 0 7px #fff, 0 0 0 8px #cecece;
margin: 9px 17px 9px 3px;
}


/* Center the RTD placement when not wide enough to float */
#rtd-stickybox-container {
text-align: center;
}
3 changes: 3 additions & 0 deletions docs/_templates/ethicalads.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div id="rtd-stickybox-container">
<div class="raised" data-ea-publisher="readthedocs" data-ea-type="image" data-ea-style="stickybox"></div>
</div>
8 changes: 8 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "!layout.html" %}


{% block document %}
{{ super() }}

{% include "ethicalads.html" %}
{% endblock document %}
24 changes: 0 additions & 24 deletions docs/analytics.rst

This file was deleted.

47 changes: 0 additions & 47 deletions docs/choosing-a-site.rst

This file was deleted.

Loading