Commit Graph

8268 Commits (46890a95b98b9f9d1307a0ac4034b5e851f9b46d)

Author SHA1 Message Date
Anthony 46890a95b9
Drop readthedocs- prefix to submodule (#3916)
* Drop readthedocs- prefix to submodule

This may require git submodule sync locally

* Relink files
2018-04-05 22:00:58 -06:00
Anthony b3686ca08a
This fixes two bugs apparent in nesting of translations in subprojects (#3909)
* This fixes two bugs apparent in nesting of translations in subprojects

The canonical domain was not searching as deep as we support. We support
translations nested in subprojects, and vice versa, this was previously only
searching for translation or subproject, so no nesting at all.

The path was also a similar problem, but instead of a heavy refactor that reused
the canonical domain lookup, I just altered the logic a little here. The pattern
was required to support both superproject as a translation project and
subproject as a translation project.

* Add resolver tests

Also lints our test file
2018-04-05 19:38:02 -06:00
Manuel Kaufmann 2c9e62d745 Save Docker image data in JSON file only for DockerBuildEnvironment (#3897) 2018-04-05 17:07:29 -06:00
Manuel Kaufmann 5cb3ba6b7b Organize logging levels (#3893)
* Organize logging levels

Log only what we need as ERROR when it's something that we need/want
to take a look that something could be a bug/issue.

There are some ERROR that were replaced by WARNING since they are some
failures but that we don't need to take a look and the message shown
to the user should be enough for them.

* Fix lint issues

* Use the proper exc_info instead of custom formatting
2018-04-05 16:57:30 -06:00
Manuel Kaufmann f504d9da16 Use a proper default for `docker` attribute on UpdateDocsTask (#3907) 2018-04-05 16:45:25 -06:00
Manuel Kaufmann 77b7c280fa Use new django celery beat scheduler (#3908) 2018-04-05 15:07:14 -06:00
Eric Holscher d557fee903
Merge pull request #3905 from davidfischer/fix-3892
Handle errors from publish_parts
2018-04-05 16:27:55 +08:00
Eric Holscher 775709dfe9
Merge pull request #3902 from stsewd/little-improve-sync-versions
Little improve on sync_versions
2018-04-05 16:26:35 +08:00
Eric Holscher c83b17a726
Merge pull request #3896 from davidfischer/analytics-dynamic-include
Single analytics file for all builders
2018-04-05 12:56:34 +08:00
Eric Holscher 77268c5d66 Commit changelog for 2.3.5 2018-04-05 11:24:55 +08:00
Eric Holscher a476f2197d Modified static files 2018-04-05 11:24:03 +08:00
Anthony 857750edbc
Add ref links for easier intersphinx on yaml config page (#3877)
* Add ref links for easier intersphinx on yaml config page

Also recomments a block that we should probably move but I'm not going to worry
about. Comment block could be lost on editors that remove whitespace on lines
before.

* Fix ref for build.image
2018-04-04 18:20:32 -06:00
Anthony 776ddfa879
Drop pdbpp from testing requirements (#3904)
This was causing errors running tests with py36 and pdb set_trace
2018-04-04 18:13:08 -06:00
David Fischer 91ba549860
Merge pull request #3895 from davidfischer/fixed-footer-ads-part-deux
Fixed footer ads again
2018-04-04 15:23:51 -07:00
Anthony Johnson 30342e219e
Make invoke prepare since optional argument 2018-04-04 16:11:33 -06:00
Anthony b211ddc7bb
Resolve subproject correctly in the case of single version (#3901)
We weren't doing anything with the query result
2018-04-04 16:03:01 -06:00
David Fischer fd5ddf111d
Handle errors from publish_parts
- Fixes: #3892
2018-04-04 14:49:52 -07:00
Santos Gallegos 9fb8aa53fa Faster lookup for key 2018-04-04 14:08:30 -05:00
Manuel Kaufmann 786edd46d5
Merge pull request #3740 from italia/mockconffile
tests: mock test_conf_file_not_found filesystem access
2018-04-03 20:53:46 -05:00
David Fischer 1a62d5de51
Separate analytics file for all builders 2018-04-03 16:37:53 -07:00
David Fischer 53fd600f64
Fixed footer ads again 2018-04-03 15:15:36 -07:00
David Fischer db111a4e2c
Merge pull request #3889 from davidfischer/alabaster-ad-position-fix
Fix an Alabaster ad positioning issue
2018-04-02 16:14:36 -07:00
David Fischer 15c9d673ac
Push the alabaster ad down even more 2018-04-02 14:35:05 -07:00
David Fischer fc2b0c764d
Fix an Alabaster positioning issue 2018-04-02 12:26:22 -07:00
Manuel Kaufmann 393e31ad3a Save Docker image hash in RTD environment.json file (#3880)
* Save docker image hash to consider when auto wiping the environment (#3793)

* Remove obsolete code

Now, we can access `self.config.build_image` directly.

* Move container_image selection to the init

At initialization time we have the project and we already know if the
project has the build image override so we can decide at that point
and save it as a instance attribute.

Then we can use this values from other places inside the same class.

* Save Docker Image hash in readthedocs-environment.json

The hash is used to know if the environment is obsolete and auto-wipe
it if necessary.

* Simplify the class naming

* Save the image hash in the json file

* Lint

* Remove invalid properties from YAML config in tests

* Add test for save_environment_json

* Improve docstring

* Handle obsolete cases better

* when the file is corrupted or we don't have access, we return that
  it's OBSOLETE

* when there is a new setting that we need to compare and it's not in
  the JSON file, we return OBSOLETE

* Test case for build image in the config but not in the JSON
2018-03-30 18:22:52 -06:00
Anthony 7aa6f4d41a
Use gitpython to find a commit reference (#3843)
* Use gitpython to find a commit reference

Fixes #3842

* Add more exception handling

* Fix issue with a merge
2018-03-29 17:51:48 -06:00
Anthony 873108be03
Fix up some of the logic around repo and submodule URLs (#3860)
* Fix up some of the logic around repo and submodule URLs

* Add conditional logic for submodule relative urls
* Break down logic a bit more
* Add test case for relative url submodule
* Broke test case for invalid url submodule

Fixes #3857

* Lint fix
2018-03-29 17:00:56 -06:00
Raju Jha 4b2832535f #3718: Added date to changelog (#3788)
* #3718: Added date to changelog

* modified for proper reST use
2018-03-29 10:23:58 -06:00
Eric Holscher 2fd1958336
Merge pull request #3872 from rajujha373/typo-correction
Typo correction in docs/features.rst
2018-03-29 18:38:59 +07:00
Eric Holscher af4e06ddbf
Merge pull request #3868 from gaborbernat/tox
add description for tox tasks
2018-03-28 17:41:54 +07:00
Bernat Gabor 4e43cafada
add description for tox tasks
For example:
default environments:
py27     -> run test suite for the application with python2.7
py36     -> run test suite for the application with python3.6
lint     -> run linter (prospector) to ensure the source code
corresponds to our coding standards
docs     -> build readthedocs documentation

additional environments:
coverage -> run test suite with code coverage for the application with
/usr/bin/python
eslint   -> run the JavaScript linter (requires gulp installed)
2018-03-28 11:15:55 +01:00
Raju Jha f10e7459e4 deleted unintended file 2018-03-27 16:55:37 +05:30
Raju Jha ca6bcd1ad1 corrected typo in features.rst 2018-03-27 16:52:24 +05:30
Raju Jha 53f4124693 updated official links for JDK 2018-03-27 15:00:34 +05:30
Raju Jha 84aea29b6d added links for installation of JDK 2018-03-27 14:58:16 +05:30
Raju Jha 54cc39f166 written guide for elasticsearch 2018-03-27 14:58:16 +05:30
Eric Holscher adb5392c47
Merge pull request #3862 from davidfischer/sustain-cors-hotfix
Another CORS hotfix for the sustainability API
2018-03-27 11:40:21 +07:00
David Fischer f2ac3cc3aa
Another CORS hotfix for the sustainability API 2018-03-26 21:07:13 -07:00
Anthony Johnson f4e645dcd5
Release 2.3.4 2018-03-26 18:46:06 -06:00
Anthony Johnson 735a633d60
Update static assets 2018-03-26 17:54:16 -06:00
Anthony Johnson bed1828de3
Release 2.3.3 2018-03-26 17:22:12 -06:00
Anthony Johnson d8f603c1a4
Revert "Save docker image hash to consider when auto wiping the environment (#3793)"
This reverts commit 7ac7dfc88f.
2018-03-26 17:14:14 -06:00
David Fischer 5a3938580d
Merge pull request #3813 from davidfischer/remove-pinned-cssselect
Remove pinned CSS Select version
2018-03-26 11:34:53 -07:00
David Fischer dcd998b8d9
Merge branch 'master' into remove-pinned-cssselect 2018-03-26 11:22:17 -07:00
David Fischer 7125a88d8d
Merge pull request #3855 from davidfischer/fix-linting-errors
Fix linting errors in tests
2018-03-26 11:12:12 -07:00
David Fischer 6d32b25920
Fix linting errors in tests 2018-03-26 10:54:02 -07:00
David Fischer 4b3fd71370
Merge branch 'master' into remove-pinned-cssselect 2018-03-26 10:11:16 -07:00
David Fischer ca35951ab5
Merge pull request #3789 from davidfischer/sustainability-api-jsonp
Use JSONP for sustainability API
2018-03-26 10:09:02 -07:00
Manuel Kaufmann 7b8efe3309 Fix linting issues (#3838)
* Fix linting issues

* Small lint fix
2018-03-24 01:14:23 -06:00
Anthony Johnson 8a34d5e932
Add validation for submodule URLs as well 2018-03-24 01:10:13 -06:00