Commit Graph

7295 Commits (859abd1140dfbe70223f5023b4ae1ee3fa6a3fad)

Author SHA1 Message Date
Eric Holscher f9d1738cdc Merge pull request #2575 from rtfd/revert-conf-changes
Revert "conf.py.tmpl; Use absolute URL for doc versions"
2017-01-09 17:33:08 -08:00
Luke GB 3de27742cb Update build status even on exception (#2573)
* Never call update_build from a BuildEnvironment

* Fix broken celery test

This is really a design decision thing. Either projects should be marked
as having valid clones even if record is off, or they shouldn't.

Personally, I believe the former behavior is better, since we will have
actually cloned the repo at that point (in the setup_env), but this does
mean that record will record *some* data in the database, which might
not be desirable.

* Catch all exceptions when exiting BuildEnvironment

This removes the special handling of BuildEnvironmentError, and
logs and catches all exceptions which aren't subclasses of
BuildEnvironmentWarning.

This simplifies exception handling for users of BuildEnvironments,
but may have some unexpected effects if, for instance,
SystemExit, StopIteration or KeyboardInterrupt is raised while
inside a BuildEnvironment.

* Don't surface the exception message to the end user

* Raise BuildEnvironmentError on error parsing YAML
2017-01-06 15:12:01 -08:00
Luke GB 21e1f341b3 Document the environment variables set during builds (#2577)
These might come in handy, and since people are relying on them already
it's well worth documenting them.
2017-01-06 15:04:18 -08:00
Anthony Johnson 602f08c858 Revert "conf.py.tmpl; Use absolute URL for doc versions"
This reverts commit 95bc81d2fa.

This commit introduced a bug with our builders, as the builders do not have
access to our database. The methods used in this commit rely on the database,
and must be added to the api return instead.
2017-01-04 22:23:58 -08:00
Eric Holscher 1bb0e8fbce Merge pull request #2568 from gr2m/patch-1
remove dummy content
2017-01-04 17:41:35 -08:00
Eric Holscher 71acc78ecd Merge pull request #2574 from rtfd/fix-translation-model
Stop cascading delete on translation deletion
2017-01-04 17:39:30 -08:00
Anthony d6aa24bff7 Alter usage of message extends (#2567)
* Alter usage of message extends

Instead of using the messages.add method directly, add message for the message
notification backend using the storage adapter directly. This also removes the
limitation on the storage backend that requires a request.user is authenticated,
as we are likely going to be mostly adding messages through celery or other
request-less mechanisms.

* Fix tests

* Make sure we can't add messages for anonymous users and fix tests
2017-01-04 17:32:58 -08:00
Anthony Johnson 63d9cea7e4 Expand tests, make sure they are correct 2017-01-04 12:44:20 -08:00
Anthony Johnson 168c9e35b5 Stop cascading delete on translation deletion
These shouldn't cascade to the child translation project.
2017-01-03 23:57:03 -08:00
Gregor Martynus fef69e3eb2 remove dummy content 2016-12-29 19:58:26 -08:00
Eric Holscher 38e73cd73e Make email required 2016-12-21 17:20:14 -08:00
Eric Holscher 3148af075e Merge pull request #2559 from rtfd/oauth-debug
Add debugging to webhook output
2016-12-20 12:21:58 -08:00
Anthony Johnson 55912f8c8c Fix typo 2016-12-20 12:19:50 -08:00
Anthony Johnson 79b71102c6 Add debugging to webhook output
We're getting non 200/201 responses from GitHub and aren't logging any
information on the failure.
2016-12-20 12:12:09 -08:00
Eric Holscher 2a54e3adf4 Merge pull request #2534 from rtfd/doc-cleanup
Docs cleanup
2016-12-09 13:36:59 -08:00
Eric Holscher 7c0983b678 Merge pull request #2536 from sanscore/fix_conf_py_tmpl_versions
conf.py.tmpl; Use absolute URL for doc versions
2016-12-09 13:36:24 -08:00
Eric Holscher 0384faf59f Clean up ratios 2016-12-01 13:02:20 -08:00
Eric Holscher 69461a64eb Fix percentage 2016-12-01 12:54:53 -08:00
Grant Welch 95bc81d2fa conf.py.tmpl; Use absolute URL for doc versions
Replaced the relative URL construction for document versions with
`version.get_absolute_url`.
2016-11-30 21:45:53 -08:00
Eric Holscher 869e1c79af Add a docs page 2016-11-30 14:35:38 -08:00
Eric Holscher e1bf4a0052 Add doc on building docs 2016-11-30 14:35:13 -08:00
Eric Holscher 105c56658e Remove unused and outdated ops docs 2016-11-30 14:31:29 -08:00
Eric Holscher 2159c146b5 Fix silly double header 2016-11-30 14:30:39 -08:00
Eric Holscher 4d35ce9cbd Add total clicks metric 2016-11-30 09:50:09 -08:00
Eric Holscher d7abdd6352 Merge pull request #2501 from rpkilby/upgrade-django-filter
Upgrade django filter
2016-11-28 15:01:22 -08:00
Eric Holscher aacec83473 Merge pull request #2527 from sanscore/singlehtml_fix_2526
SingleHtmlBuilder; impl __init__ to fix singlehtml
2016-11-28 15:00:35 -08:00
Eric Holscher c17f5b6940 Merge pull request #2528 from sanscore/rm_sphinx_rtd_theme_submodule
Remove submodule docs/_themes/sphinx_rtd_theme
2016-11-28 14:59:56 -08:00
Eric Holscher 78d51536ec Merge pull request #2530 from jkloetzke/patch-1
Fix infinite recursion in FAQ mocking example
2016-11-28 14:59:35 -08:00
Eric Holscher 3235fe22d8 Make all ratio's percentages 2016-11-23 10:25:28 -08:00
Jan Klötzke 0ae616071d Fix infinite recursion in FAQ mocking example 2016-11-23 17:49:38 +01:00
Ryan P Kilby b8ba17e106 Lock django-filter version requirement 2016-11-23 03:53:42 -05:00
Ryan P Kilby d077b23a27 Add missing ul tag 2016-11-23 03:48:18 -05:00
Ryan P Kilby 0a3f3d13ca Replace `lookup_type` with `lookup_expr` 2016-11-23 03:48:18 -05:00
Ryan P Kilby 0951652d58 Fix django-filter 1.0 template deprecations 2016-11-23 03:48:18 -05:00
Grant Welch d3bf3fadf4 .gitmodules; removed as it is now redundent. 2016-11-22 21:07:34 -08:00
Grant Welch 4ba0fae9c8 Remove submodule docs/_themes/sphinx_rtd_theme
The submodule was only relevant for a short time and its continued
existance is a distraction for new contributors.

See: https://github.com/snide/sphinx_rtd_theme/pull/342

Using git-blame, I was able to pinpoint which commite introduced the
submodule, but I wanted to be certain that it was no loger in use. So, I
manually inspected parts of the source code, ran `git grep ...`,
reviewed open and closed issues, and PRs, but found nothing conclusive
about its existance. Ultimately, git-log is what gave me the most
confidence that it is no longer necessary. As you can see, it was
introduced in October of 2013 and then made obsolete a month later.

From git-log:
  bash$ git log -G '_themes/sphinx_rtd_theme'
  commit 50619d1bc5
  Author: Eric Holscher <eric@ericholscher.com>
  Date:   Fri Nov 8 18:55:06 2013 -0800

      Rejigger theme stuff in our own conf

  commit d9829a2d81
  Author: Eric Holscher <eric@ericholscher.com>
  Date:   Thu Oct 17 13:26:19 2013 -0700

      Add new theme
2016-11-22 20:55:36 -08:00
Grant Welch 822897a83a SingleHtmlBuilder; impl __init__ to fix singlehtml
In a previous commit, an __init__ method was added to HtmlBuilder and to
HtmlDirBuilder, however the SingleHtmlBuilder was unmodified. Since
SingleHtmlBuilder inherits from HtmlBuilder, HtmlBuilder.init is
executed which sets the instance variable "sphinx_builder" to either
"readthedocs" or "readthedocs-comments".

This instance variable from HtmlBuilder makes it impossible to get the
correct value from SingleHtmlBuilder's class variable "shpinx_builder"
"readthedocssinglehtml".

The fix is to implement the __init__ method for SingleHtmlBuilder and
set self.sphinx_builder accurately.
2016-11-22 20:08:39 -08:00
Eric Holscher 8a2db05f3b Default ordering to a saner thing. 2016-11-21 13:08:05 -08:00
Eric Holscher ddd7908bc6 Don't show empty days 2016-11-21 13:03:33 -08:00
Eric Holscher 4bbeec4271 Fix sorting and division by 0 2016-11-21 12:58:58 -08:00
Eric Holscher 6c8ae7c1b8 Output promo text with safe 2016-11-21 12:56:38 -08:00
Eric Holscher ed21473354 Use percentages 2016-11-21 12:53:06 -08:00
Eric Holscher 64cd0d9c2e Merge pull request #2525 from rtfd/upgrade-django
Upgrade to latest point release
2016-11-21 09:37:04 -08:00
Eric Holscher dfe175f5aa Upgrade to latest point release 2016-11-21 09:20:50 -08:00
Eric Holscher 9068d863ac Merge pull request #2519 from rtfd/scrub-search-results
Scrub search results from ES
2016-11-21 09:19:16 -08:00
Anthony Johnson a5330cf751 Scrub search results from ES
This scrubs the HTML we display from ES to avoid script injection.
2016-11-18 14:21:28 -08:00
Eric Holscher 4b4c98cc2b Merge pull request #2486 from rtfd/import-updates
Add caching to repo language data
2016-11-17 08:53:40 -08:00
Eric Holscher f217870819 Fix lint 2016-11-17 08:52:30 -08:00
Eric Holscher e8c951db21 Use DJango cache 2016-11-17 08:52:30 -08:00
Eric Holscher ab5872c953 Remember ot set the cache 2016-11-17 08:52:30 -08:00