mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-16 21:30:24 +00:00
RTD settings
This commit is contained in:
parent
a47f296cee
commit
1de84a8e83
5 changed files with 20 additions and 3 deletions
|
|
@ -11,13 +11,13 @@ repos:
|
|||
- id: trailing-whitespace
|
||||
|
||||
- repo: https://github.com/timothycrosley/isort
|
||||
rev: 5.7.0
|
||||
rev: 5.12.0
|
||||
hooks:
|
||||
- id: isort
|
||||
additional_dependencies: [toml]
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 2d0c14989dca41676fc83fb36f2d652cf93fad58
|
||||
rev: 23.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
|
|
|
|||
16
.readthedocs.yaml
Normal file
16
.readthedocs.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
version: 2
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.10"
|
||||
# You can also specify other tool versions:
|
||||
# nodejs: "16"
|
||||
|
||||
# Build documentation in the docs/ directory with Sphinx
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
|
||||
# Dependencies required to build your docs
|
||||
python:
|
||||
install:
|
||||
- requirements: docs/requirements.txt
|
||||
|
|
@ -118,6 +118,7 @@ todo_include_todos = False
|
|||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
# html_theme = 'sphinx_rtd_theme'
|
||||
html_theme = "sphinx_book_theme"
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
|
|
|
|||
1
docs/requirements.txt
Normal file
1
docs/requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
sphinx-book-theme
|
||||
|
|
@ -683,7 +683,6 @@ class TranslationFileDownload(RosettaFileLevelMixin, View):
|
|||
|
||||
@user_passes_test(lambda user: can_translate(user), LoginURL())
|
||||
def translate_text(request):
|
||||
|
||||
language_from = request.GET.get("from", None)
|
||||
language_to = request.GET.get("to", None)
|
||||
text = request.GET.get("text", None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue