summaryrefslogtreecommitdiff
path: root/sphinx/cmd
Commit message (Collapse)AuthorAgeFilesLines
* Fix #8298: sphinx-quickstart: Add :option:`sphinx-quickstart --no-sep` optionTakeshi KOMIYA2020-10-261-1/+3
|
* Resolve with absolute path casting.Álvaro Mondéjar2020-05-161-2/+1
|
* Fix py35 incompatibility with PosixPathÁlvaro Mondéjar2020-05-111-1/+1
|
* Fix multiple directory creation on quickstart script called with nested ↵Álvaro Mondéjar2020-05-101-0/+2
| | | | relative path.
* Fix double space inconsistences in code, CHANGES and translations.Álvaro Mondéjar2020-05-092-4/+4
|
* Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
|
* refactor: Import libraries at the top of script (if no reason)Takeshi KOMIYA2020-03-211-3/+2
|
* Ignore bdb.BdbQuit when handling exceptionsDaniel Hahler2020-03-101-0/+5
| | | | | | | | | | | `bdb.BdbQuit` is used when quitting the debugger. It should not a) cause the debugger to be started (with `-P` / `--pdb`), and b) not a "crash" to be logged. This helps when using `pdb.set_trace()` manually, and quitting it with `q`. It gets used in `build_main`, and `BuildDoc.run` (distutils command).
* build: start description lower-casedRafael Fontenelle2020-03-081-1/+1
|
* Merge branch '2.0'Takeshi KOMIYA2020-01-014-4/+4
|\
| * A happy new year!Takeshi KOMIYA2020-01-014-4/+4
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-12-221-5/+5
|\ \ | |/
| * Replace `a and b or c` by the more legible `b if a or c`.Antony Lee2019-12-211-5/+5
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-10-061-1/+1
|\ \ | |/
| * Fix mypy violations (for mypy-0.730)Takeshi KOMIYA2019-10-061-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-07-131-1/+1
|\ \ | |/
| * Fix #6549: sphinx-build: Escaped characters in error messagesTakeshi KOMIYA2019-07-061-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-07-013-85/+40
|\ \ | |/
| * Migrate to py3 style type annotation: sphinx.cmd.make_modeTakeshi KOMIYA2019-06-301-25/+11
| |
| * Migrate to py3 style type annotation: sphinx.cmd.quickstartTakeshi KOMIYA2019-06-301-44/+22
| |
| * Migrate to py3 style type annotation: sphinx.cmd.buildTakeshi KOMIYA2019-06-301-16/+7
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-06-151-1/+1
|\ \ | |/
| * Fix #6464: updated invalid links of language codes in quickstart and all ↵Bingyao Liu2019-06-091-1/+1
| | | | | | | | locale po files
* | Merge branch '2.0'Takeshi KOMIYA2019-06-022-2/+2
|\ \ | |/
| * Merge branch '2.0.2' into 2.0Takeshi KOMIYA2019-06-022-2/+2
| |\
| | * Fix capitalization to match other messagesjfbu2019-04-171-1/+1
| | |
| | * Fix the string in quickstart for 'path' argument of parserjfbu2019-04-141-1/+1
| | |
| | * Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-191-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* | | Merge branch '2.0'Takeshi KOMIYA2019-04-141-0/+8
|\ \ \ | |/ /
| * | Fix #6271: make clean is catastrophically broken if building into '.'Takeshi KOMIYA2019-04-131-0/+8
| | |
* | | refactor quickstartTakeshi KOMIYA2019-04-011-80/+76
|/ /
* | code snippet should not be a translation targetTakayuki SHIMIZUKAWA2019-03-251-1/+1
| |
* | Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-171-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* | Support --keep-going with BuildDoc setup command (#6180)Daniel Hahler2019-03-171-1/+1
|/ | | | | * Support --keep-going with BuildDoc setup command This allows for `tox -e docs -- -n -W --keep-going`.
* Closes #4148: quickstart: some questions are removedTakeshi KOMIYA2019-02-121-12/+12
|
* refactor: Move terminal_safe() to sphinx.util.consoleTakeshi KOMIYA2019-02-111-2/+1
|
* Remove unused template variablesTakeshi KOMIYA2019-02-111-13/+1
|
* refactor: Use repr() to make escaped string in template for conf.pyTakeshi KOMIYA2019-01-031-7/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-024-4/+4
|\
| * A happy new year!Takeshi KOMIYA2019-01-024-4/+4
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-182-9/+6
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Merge branch '1.8'Takeshi KOMIYA2018-12-182-2/+2
|\ \ | |/
| * Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is emptyTakeshi KOMIYA2018-12-172-2/+2
| |
* | Deprecate quickstart.term_decode() and remove internal usesJon Dufresne2018-12-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per the Python 3 docs, input() always returns a string: https://docs.python.org/3/library/functions.html#input > The function then reads a line from input, converts it to a > string (stripping a trailing newline), and returns that. The stubs from typeshed say the same: https://github.com/python/typeshed/blob/5c69373890dfaf4f07f0638766fb0a4903352892/stdlib/3/builtins.pyi#L835 Here is the implementation from CPython with also shows a call to PyUnicode_Decode on the result: https://github.com/python/cpython/blob/3.7/Python/bltinmodule.c#L1960-L2143 As the value is always a string, there is nothing to decode. Therefore the call to term_decode() unnecessary and can safely be removed. With this in mind, must adjust quickstart tests to be more representative.
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-164-4/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-2/+2
| |
* | Merge pull request #5803 from jdufresne/encoding-utf8Takeshi KOMIYA2018-12-161-1/+1
|\ \ | | | | | | Avoid respecifying default encoding for .encode()/.decode() calls
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.