Commit Graph

3214 Commits (df48c59b616a8e95f71af490d7fb515ba42f4696)

Author SHA1 Message Date
Eric Holscher c4833b92f0 Remove "beta" from search and add HTML_ONLY_PROJECTS 2013-11-19 19:51:23 -08:00
Eric Holscher 8ee7e2e205 Merge pull request #548 from codedstructure/patch-1
Update hg.py to fix #547
2013-11-19 19:37:02 -08:00
Ben Bass 7f808dd3b2 correct docstring for hg parse_tags() 2013-11-20 00:49:24 +00:00
Ben Bass 195d3b5672 clean up code, add comment 2013-11-19 22:20:26 +00:00
Ben Bass 4ea75ce279 Update hg.py to fix #547
support spaces in hg tag names
2013-11-19 21:41:09 +00:00
Eric Holscher d9942a3528 Merge pull request #543 from imom0/master
Add cursor style to submit button
2013-11-19 11:09:30 -08:00
Eric Holscher a48e0bb7ae Add screencast to docs 2013-11-18 09:15:22 -08:00
Tom Offermann 748fb85d84 Add more tests to test_redirects.py. 2013-11-17 15:16:03 -08:00
Tom Offermann 90ace4d684 Remove subdomain_handler() in core.views. 2013-11-17 15:16:03 -08:00
Tom Offermann c44c2b24ed Actually follow redirects in test_redirects.py. 2013-11-17 15:16:02 -08:00
Tom Offermann 354080cc7a Tweak comments in serve_docs(). 2013-11-17 15:16:02 -08:00
Tom Offermann 4bf8f6932e Remove redirect logic from serve_docs().
All redirect logic is now handled in redirect_* views.
2013-11-17 15:16:02 -08:00
Tom Offermann d6d31dcba3 Handle redirects for /page/<filename> URLs. 2013-11-17 15:16:02 -08:00
Tom Offermann 88cc1d00eb Handle redirects for project_slug. 2013-11-17 15:16:02 -08:00
Tom Offermann fea58d268b Handle redirects for version_slug. 2013-11-17 15:16:02 -08:00
Tom Offermann 1e7cf54541 Rename default_version_kwargs to default_docs_kwargs.
Also, add docstrings.
2013-11-17 15:16:02 -08:00
Tom Offermann 61a8aa58e3 redirect_lang_slug() works for subdomains.
redirect_lang_slug() will redirect to either:
    subdomain URL -> pip.readthedocs.org/en/latest/
OR
    RTD URL -> readthedocs.org/docs/pip/en/latest/

In redirect_lang_slug(), the call to reverse(serve_docs, **kwargs)
determines which URL to redirect to.

The function default_version_kwargs() sets up kwargs for default view,
and includes 'project_slug' key if redirecting to RTD URL. If redirecting
to subdomain URL, it doesn't include 'project_slug'.
2013-11-17 15:16:02 -08:00
Tom Offermann d1528ca399 Handle redirect logic for lang_slug in new view.
Add redirect_lang_slug() view. First of new views to refactor
redirect logic out of urls.py and serve_docs() view and into
separate redirect views.

Only works for /docs/<project_slug>/<lang_slug> views. Doesn't
work for subdomain views.
2013-11-17 15:16:01 -08:00
Tom Offermann 7fc0569f14 Fix lang_slug URL redirect. 2013-11-17 15:16:01 -08:00
Tom Offermann 1f5608daeb Handle more redirects and handle them consistently.
Previously, behavior for the following URL patterns was
inconsistent for subdomain URLS (pip.readthedocs.org/) and
RTD domain URLs (readthedocs.org/docs/pip/).

Below, I list the URL pattern, and the response status codes as they
worked prior to this commit:

/<version_slug>
Subdomain:  302 to /<default_lang>/<version_slug>/
RTD domain: 404

/<lang_slug>
Subdomain:  404
RTD domain: 404

This commit changes the redirect behavior as follows:

/<version_slug>
Subdomain:  302 to /<default_lang>/<version_slug>/
RTD domain: 302 to /<default_lang>/<version_slug>/

/<lang_slug>
Subdomain:  302 to /<lang_slug>/<default_version>/
RTD domain: 302 to /<lang_slug>/<default_version>/

/<nonexistent_slug>
Subdomain:  404
RTD domain: 404
2013-11-17 15:16:01 -08:00
Tom Offermann 6c694a8cca Moved test to keep grouping consistent. 2013-11-17 15:16:01 -08:00
Tom Offermann 51a9f8ebd9 Add tests to test_redirects.py. 2013-11-17 15:16:01 -08:00
Tom Offermann 0c2f301898 Rename test in test_redirects.py. 2013-11-17 15:16:01 -08:00
Eric Holscher 657e61c8ae Bump theme 2013-11-16 08:11:05 -08:00
imom0 e0e827cc0e Add cursor style to submit button 2013-11-15 11:33:27 +08:00
Eric Holscher 073141971b Bump theme 2013-11-12 14:38:01 -08:00
Eric Holscher 6bd2d196c6 Cleanup 2013-11-12 11:04:14 -08:00
Dave Snider 9e7ff0a31d Update theme.rst
Clarification on contribution to the theme.
2013-11-11 16:38:14 -08:00
Dave Snider 33012b2c2f Merge pull request #540 from martijnvermaat/patch-1
Fix typo in docs/theme.rst
2013-11-11 13:13:02 -08:00
Martijn Vermaat 9eeb80eb09 Fix typo in docs/theme.rst 2013-11-11 22:11:35 +01:00
Eric Holscher 54e3b3e331 Remove conflicting content variable in indexing 2013-11-10 16:57:33 -08:00
Eric Holscher 8c8383ae9b Only index h2's, and add a basic test for it. 2013-11-10 16:55:56 -08:00
Eric Holscher c04217a5c4 Need a better solution to this. 2013-11-10 16:27:03 -08:00
Eric Holscher 96cc2b52da Add hot fire 2013-11-10 13:46:58 -08:00
Eric Holscher b89d581a17 Lower search size and reset on search miss 2013-11-10 13:32:12 -08:00
Eric Holscher bf21009367 BEtter use of indexof 2013-11-10 00:25:10 -08:00
Eric Holscher 265373da7b Hide topics that don't exist 2013-11-10 00:22:09 -08:00
Eric Holscher 801496addd Clear out the bits before refreshing 2013-11-10 00:08:57 -08:00
Eric Holscher 0b2ace04f2 Build out a somewhat reasonable UI. 2013-11-09 23:43:37 -08:00
Rob Hudson 7e6a897efb Updated routing to use slug instead of pk 2013-11-09 18:29:00 -08:00
Rob Hudson 53d42356f3 Route to project if project_slug provided 2013-11-09 18:16:18 -08:00
Rob Hudson 1eee7a9dbe Update search indexing to add routing for sections 2013-11-09 17:54:30 -08:00
Eric Holscher cca21bd1b9 Fix indexing 2013-11-09 17:44:06 -08:00
Eric Holscher c111465408 Display things properly 2013-11-09 17:41:34 -08:00
Eric Holscher a07cbe8e2e Replace subsections with clickable results 2013-11-09 17:31:20 -08:00
Eric Holscher 32ea9a75f4 Add better bitbucket logging. Refs #498 2013-11-09 15:19:37 -08:00
Eric Holscher fbab4e8d1d Clean up indexing content 2013-11-09 14:49:54 -08:00
Eric Holscher 717c61a2e9 Merge pull request #537 from chebee7i/docstyle
Add information about support for legible docstrings.
2013-11-09 13:50:39 -08:00
Eric Holscher e1e24fda76 Fix JS to not be hilarious. 2013-11-08 22:12:54 -08:00
Eric Holscher 1d5b49e331 Hook up initial section search. 2013-11-08 22:01:21 -08:00